PageRenderTime 54ms CodeModel.GetById 25ms RepoModel.GetById 0ms app.codeStats 0ms

/configuration/org.eclipse.osgi/bundles/322/1/.cp/Resources/language/php5.4/Core.php

https://bitbucket.org/2GAndre/myeclipse4php
PHP | 1188 lines | 197 code | 126 blank | 865 comment | 0 complexity | 1108206b186447731355ce02f379e673 MD5 | raw file
Possible License(s): LGPL-2.1, Apache-2.0, BSD-3-Clause
  1. <?php
  2. // Start of Core v.5.4.0RC6
  3. class stdClass {
  4. }
  5. interface Traversable {
  6. }
  7. interface IteratorAggregate extends Traversable {
  8. abstract public function getIterator () {}
  9. }
  10. interface Iterator extends Traversable {
  11. abstract public function current () {}
  12. abstract public function next () {}
  13. abstract public function key () {}
  14. abstract public function valid () {}
  15. abstract public function rewind () {}
  16. }
  17. interface ArrayAccess {
  18. /**
  19. * @param offset
  20. */
  21. abstract public function offsetExists ($offset) {}
  22. /**
  23. * @param offset
  24. */
  25. abstract public function offsetGet ($offset) {}
  26. /**
  27. * @param offset
  28. * @param value
  29. */
  30. abstract public function offsetSet ($offset, $value) {}
  31. /**
  32. * @param offset
  33. */
  34. abstract public function offsetUnset ($offset) {}
  35. }
  36. interface Serializable {
  37. abstract public function serialize () {}
  38. /**
  39. * @param serialized
  40. */
  41. abstract public function unserialize ($serialized) {}
  42. }
  43. class Exception {
  44. protected $message;
  45. private $string;
  46. protected $code;
  47. protected $file;
  48. protected $line;
  49. private $trace;
  50. private $previous;
  51. final private function __clone () {}
  52. /**
  53. * @param message[optional]
  54. * @param code[optional]
  55. * @param previous[optional]
  56. */
  57. public function __construct ($message = null, $code = null, $previous = null) {}
  58. final public function getMessage () {}
  59. final public function getCode () {}
  60. final public function getFile () {}
  61. final public function getLine () {}
  62. final public function getTrace () {}
  63. final public function getPrevious () {}
  64. final public function getTraceAsString () {}
  65. public function __toString () {}
  66. }
  67. class ErrorException extends Exception {
  68. protected $message;
  69. protected $code;
  70. protected $file;
  71. protected $line;
  72. protected $severity;
  73. /**
  74. * @param message[optional]
  75. * @param code[optional]
  76. * @param severity[optional]
  77. * @param filename[optional]
  78. * @param lineno[optional]
  79. * @param previous[optional]
  80. */
  81. public function __construct ($message = null, $code = null, $severity = null, $filename = null, $lineno = null, $previous = null) {}
  82. final public function getSeverity () {}
  83. final private function __clone () {}
  84. final public function getMessage () {}
  85. final public function getCode () {}
  86. final public function getFile () {}
  87. final public function getLine () {}
  88. final public function getTrace () {}
  89. final public function getPrevious () {}
  90. final public function getTraceAsString () {}
  91. public function __toString () {}
  92. }
  93. final class Closure {
  94. private function __construct () {}
  95. /**
  96. * @param closure
  97. * @param newthis
  98. * @param newscope[optional]
  99. */
  100. public static function bind ($closure, $newthis, $newscope = null) {}
  101. /**
  102. * @param newthis
  103. * @param newscope[optional]
  104. */
  105. public function bindTo ($newthis, $newscope) {}
  106. }
  107. /**
  108. * Gets the version of the current Zend engine
  109. * @link http://www.php.net/manual/en/function.zend-version.php
  110. * @return string the Zend Engine version number, as a string.
  111. */
  112. function zend_version () {}
  113. /**
  114. * Returns the number of arguments passed to the function
  115. * @link http://www.php.net/manual/en/function.func-num-args.php
  116. * @return int the number of arguments passed into the current user-defined
  117. * function.
  118. */
  119. function func_num_args () {}
  120. /**
  121. * Return an item from the argument list
  122. * @link http://www.php.net/manual/en/function.func-get-arg.php
  123. * @param arg_num int <p>
  124. * The argument offset. Function arguments are counted starting from
  125. * zero.
  126. * </p>
  127. * @return mixed the specified argument, or false on error.
  128. */
  129. function func_get_arg ($arg_num) {}
  130. /**
  131. * Returns an array comprising a function's argument list
  132. * @link http://www.php.net/manual/en/function.func-get-args.php
  133. * @return array an array in which each element is a copy of the corresponding
  134. * member of the current user-defined function's argument list.
  135. */
  136. function func_get_args () {}
  137. /**
  138. * Get string length
  139. * @link http://www.php.net/manual/en/function.strlen.php
  140. * @param string string <p>
  141. * The string being measured for length.
  142. * </p>
  143. * @return int The length of the string on success,
  144. * and 0 if the string is empty.
  145. */
  146. function strlen ($string) {}
  147. /**
  148. * Binary safe string comparison
  149. * @link http://www.php.net/manual/en/function.strcmp.php
  150. * @param str1 string <p>
  151. * The first string.
  152. * </p>
  153. * @param str2 string <p>
  154. * The second string.
  155. * </p>
  156. * @return int &lt; 0 if str1 is less than
  157. * str2; &gt; 0 if str1
  158. * is greater than str2, and 0 if they are
  159. * equal.
  160. */
  161. function strcmp ($str1, $str2) {}
  162. /**
  163. * Binary safe string comparison of the first n characters
  164. * @link http://www.php.net/manual/en/function.strncmp.php
  165. * @param str1 string <p>
  166. * The first string.
  167. * </p>
  168. * @param str2 string <p>
  169. * The second string.
  170. * </p>
  171. * @param len int <p>
  172. * Number of characters to use in the comparison.
  173. * </p>
  174. * @return int &lt; 0 if str1 is less than
  175. * str2; &gt; 0 if str1
  176. * is greater than str2, and 0 if they are
  177. * equal.
  178. */
  179. function strncmp ($str1, $str2, $len) {}
  180. /**
  181. * Binary safe case-insensitive string comparison
  182. * @link http://www.php.net/manual/en/function.strcasecmp.php
  183. * @param str1 string <p>
  184. * The first string
  185. * </p>
  186. * @param str2 string <p>
  187. * The second string
  188. * </p>
  189. * @return int &lt; 0 if str1 is less than
  190. * str2; &gt; 0 if str1
  191. * is greater than str2, and 0 if they are
  192. * equal.
  193. */
  194. function strcasecmp ($str1, $str2) {}
  195. /**
  196. * Binary safe case-insensitive string comparison of the first n characters
  197. * @link http://www.php.net/manual/en/function.strncasecmp.php
  198. * @param str1 string <p>
  199. * The first string.
  200. * </p>
  201. * @param str2 string <p>
  202. * The second string.
  203. * </p>
  204. * @param len int <p>
  205. * The length of strings to be used in the comparison.
  206. * </p>
  207. * @return int &lt; 0 if str1 is less than
  208. * str2; &gt; 0 if str1 is
  209. * greater than str2, and 0 if they are equal.
  210. */
  211. function strncasecmp ($str1, $str2, $len) {}
  212. /**
  213. * Return the current key and value pair from an array and advance the array cursor
  214. * @link http://www.php.net/manual/en/function.each.php
  215. * @param array array <p>
  216. * The input array.
  217. * </p>
  218. * @return array the current key and value pair from the array
  219. * array. This pair is returned in a four-element
  220. * array, with the keys 0, 1,
  221. * key, and value. Elements
  222. * 0 and key contain the key name of
  223. * the array element, and 1 and value
  224. * contain the data.
  225. * </p>
  226. * <p>
  227. * If the internal pointer for the array points past the end of the
  228. * array contents, each returns
  229. * false.
  230. */
  231. function each (array &$array) {}
  232. /**
  233. * Sets which PHP errors are reported
  234. * @link http://www.php.net/manual/en/function.error-reporting.php
  235. * @param level int[optional] <p>
  236. * The new error_reporting
  237. * level. It takes on either a bitmask, or named constants. Using named
  238. * constants is strongly encouraged to ensure compatibility for future
  239. * versions. As error levels are added, the range of integers increases,
  240. * so older integer-based error levels will not always behave as expected.
  241. * </p>
  242. * <p>
  243. * The available error level constants and the actual
  244. * meanings of these error levels are described in the
  245. * predefined constants.
  246. * </p>
  247. * @return int the old error_reporting
  248. * level or the current level if no level parameter is
  249. * given.
  250. */
  251. function error_reporting ($level = null) {}
  252. /**
  253. * Defines a named constant
  254. * @link http://www.php.net/manual/en/function.define.php
  255. * @param name string <p>
  256. * The name of the constant.
  257. * </p>
  258. * @param value mixed <p>
  259. * The value of the constant; only scalar and null values are allowed.
  260. * Scalar values are integer,
  261. * float, string or boolean values. It is
  262. * possible to define resource constants, however it is not recommended
  263. * and may cause unpredictable behavior.
  264. * </p>
  265. * @param case_insensitive bool[optional] <p>
  266. * If set to true, the constant will be defined case-insensitive.
  267. * The default behavior is case-sensitive; i.e.
  268. * CONSTANT and Constant represent
  269. * different values.
  270. * </p>
  271. * <p>
  272. * Case-insensitive constants are stored as lower-case.
  273. * </p>
  274. * @return bool Returns true on success or false on failure.
  275. */
  276. function define ($name, $value, $case_insensitive = null) {}
  277. /**
  278. * Checks whether a given named constant exists
  279. * @link http://www.php.net/manual/en/function.defined.php
  280. * @param name string <p>
  281. * The constant name.
  282. * </p>
  283. * @return bool true if the named constant given by name
  284. * has been defined, false otherwise.
  285. */
  286. function defined ($name) {}
  287. /**
  288. * Returns the name of the class of an object
  289. * @link http://www.php.net/manual/en/function.get-class.php
  290. * @param object object[optional] <p>
  291. * The tested object. This parameter may be omitted when inside a class.
  292. * </p>
  293. * @return string the name of the class of which object is an
  294. * instance. Returns false if object is not an
  295. * object.
  296. * </p>
  297. * <p>
  298. * If object is omitted when inside a class, the
  299. * name of that class is returned.
  300. */
  301. function get_class ($object = null) {}
  302. /**
  303. * the "Late Static Binding" class name
  304. * @link http://www.php.net/manual/en/function.get-called-class.php
  305. * @return string the class name. Returns false if called from outside a class.
  306. */
  307. function get_called_class () {}
  308. /**
  309. * Retrieves the parent class name for object or class
  310. * @link http://www.php.net/manual/en/function.get-parent-class.php
  311. * @param object mixed[optional] <p>
  312. * The tested object or class name
  313. * </p>
  314. * @return string the name of the parent class of the class of which
  315. * object is an instance or the name.
  316. * </p>
  317. * <p>
  318. * If the object does not have a parent or a non-existent class name is
  319. * given, false will be returned.
  320. * </p>
  321. * <p>
  322. * If called without parameter outside object, this function returns false.
  323. */
  324. function get_parent_class ($object = null) {}
  325. /**
  326. * Checks if the class method exists
  327. * @link http://www.php.net/manual/en/function.method-exists.php
  328. * @param object mixed <p>
  329. * An object instance or a class name
  330. * </p>
  331. * @param method_name string <p>
  332. * The method name
  333. * </p>
  334. * @return bool true if the method given by method_name
  335. * has been defined for the given object, false
  336. * otherwise.
  337. */
  338. function method_exists ($object, $method_name) {}
  339. /**
  340. * Checks if the object or class has a property
  341. * @link http://www.php.net/manual/en/function.property-exists.php
  342. * @param class mixed <p>
  343. * The class name or an object of the class to test for
  344. * </p>
  345. * @param property string <p>
  346. * The name of the property
  347. * </p>
  348. * @return bool true if the property exists, false if it doesn't exist or
  349. * &null; in case of an error.
  350. */
  351. function property_exists ($class, $property) {}
  352. /**
  353. * Checks if the class has been defined
  354. * @link http://www.php.net/manual/en/function.class-exists.php
  355. * @param class_name string <p>
  356. * The class name. The name is matched in a case-insensitive manner.
  357. * </p>
  358. * @param autoload bool[optional] <p>
  359. * Whether or not to call &link.autoload; by default.
  360. * </p>
  361. * @return bool true if class_name is a defined class,
  362. * false otherwise.
  363. */
  364. function class_exists ($class_name, $autoload = null) {}
  365. /**
  366. * Checks if the interface has been defined
  367. * @link http://www.php.net/manual/en/function.interface-exists.php
  368. * @param interface_name string <p>
  369. * The interface name
  370. * </p>
  371. * @param autoload bool[optional] <p>
  372. * Whether to call &link.autoload; or not by default.
  373. * </p>
  374. * @return bool true if the interface given by
  375. * interface_name has been defined, false otherwise.
  376. */
  377. function interface_exists ($interface_name, $autoload = null) {}
  378. /**
  379. * Checks if the trait exists
  380. * @link http://www.php.net/manual/en/function.trait-exists.php
  381. * @param traitname string <p>
  382. * Name of the trait to check
  383. * </p>
  384. * @param autoload bool[optional] <p>
  385. * Whether to autoload if not already loaded.
  386. * </p>
  387. * @return bool true if trait exists, false if not, &null; in case of an error.
  388. */
  389. function trait_exists ($traitname, $autoload = null) {}
  390. /**
  391. * Return &true; if the given function has been defined
  392. * @link http://www.php.net/manual/en/function.function-exists.php
  393. * @param function_name string <p>
  394. * The function name, as a string.
  395. * </p>
  396. * @return bool true if function_name exists and is a
  397. * function, false otherwise.
  398. * </p>
  399. * <p>
  400. * This function will return false for constructs, such as
  401. * include_once and echo.
  402. */
  403. function function_exists ($function_name) {}
  404. /**
  405. * Creates an alias for a class
  406. * @link http://www.php.net/manual/en/function.class-alias.php
  407. * @param original string[optional] <p>
  408. * The original class.
  409. * </p>
  410. * @param alias string[optional] <p>
  411. * The alias name for the class.
  412. * </p>
  413. * @return bool Returns true on success or false on failure.
  414. */
  415. function class_alias ($original = null, $alias = null) {}
  416. /**
  417. * Returns an array with the names of included or required files
  418. * @link http://www.php.net/manual/en/function.get-included-files.php
  419. * @return array an array of the names of all files.
  420. * </p>
  421. * <p>
  422. * The script originally called is considered an "included file," so it will
  423. * be listed together with the files referenced by
  424. * include and family.
  425. * </p>
  426. * <p>
  427. * Files that are included or required multiple times only show up once in
  428. * the returned array.
  429. */
  430. function get_included_files () {}
  431. /**
  432. * &Alias; <function>get_included_files</function>
  433. * @link http://www.php.net/manual/en/function.get-required-files.php
  434. */
  435. function get_required_files () {}
  436. /**
  437. * Checks if the object has this class as one of its parents
  438. * @link http://www.php.net/manual/en/function.is-subclass-of.php
  439. * @param object mixed <p>
  440. * A class name or an object instance
  441. * </p>
  442. * @param class_name string <p>
  443. * The class name
  444. * </p>
  445. * @param allow_string bool[optional] <p>
  446. * Whether to call autoloader if the class doesn't exist.
  447. * </p>
  448. * @return bool This function returns true if the object object,
  449. * belongs to a class which is a subclass of
  450. * class_name, false otherwise.
  451. */
  452. function is_subclass_of ($object, $class_name, $allow_string = null) {}
  453. /**
  454. * Checks if the object is of this class or has this class as one of its parents
  455. * @link http://www.php.net/manual/en/function.is-a.php
  456. * @param object object <p>
  457. * The tested object
  458. * </p>
  459. * @param class_name string <p>
  460. * The class name
  461. * </p>
  462. * @param allow_string bool[optional] <p>
  463. * Whether to call autoloader if the class doesn't exist.
  464. * </p>
  465. * @return bool true if the object is of this class or has this class as one of
  466. * its parents, false otherwise.
  467. */
  468. function is_a ($object, $class_name, $allow_string = null) {}
  469. /**
  470. * Get the default properties of the class
  471. * @link http://www.php.net/manual/en/function.get-class-vars.php
  472. * @param class_name string <p>
  473. * The class name
  474. * </p>
  475. * @return array an associative array of declared properties visible from the
  476. * current scope, with their default value, or false if the
  477. * class_name refers to a non-existent class.
  478. * The resulting array elements are in the form of
  479. * varname => value.
  480. */
  481. function get_class_vars ($class_name) {}
  482. /**
  483. * Gets the properties of the given object
  484. * @link http://www.php.net/manual/en/function.get-object-vars.php
  485. * @param object object <p>
  486. * An object instance.
  487. * </p>
  488. * @return array an associative array of defined object accessible non-static properties
  489. * for the specified object in scope. If a property have
  490. * not been assigned a value, it will be returned with a &null; value.
  491. */
  492. function get_object_vars ($object) {}
  493. /**
  494. * Gets the class methods' names
  495. * @link http://www.php.net/manual/en/function.get-class-methods.php
  496. * @param class_name mixed <p>
  497. * The class name or an object instance
  498. * </p>
  499. * @return array an array of method names defined for the class specified by
  500. * class_name. In case of an error, it returns &null;.
  501. */
  502. function get_class_methods ($class_name) {}
  503. /**
  504. * Generates a user-level error/warning/notice message
  505. * @link http://www.php.net/manual/en/function.trigger-error.php
  506. * @param error_msg string <p>
  507. * The designated error message for this error. It's limited to 1024
  508. * characters in length. Any additional characters beyond 1024 will be
  509. * truncated.
  510. * </p>
  511. * @param error_type int[optional] <p>
  512. * The designated error type for this error. It only works with the E_USER
  513. * family of constants, and will default to E_USER_NOTICE.
  514. * </p>
  515. * @return bool This function returns false if wrong error_type is
  516. * specified, true otherwise.
  517. */
  518. function trigger_error ($error_msg, $error_type = null) {}
  519. /**
  520. * Alias of <function>trigger_error</function>
  521. * @link http://www.php.net/manual/en/function.user-error.php
  522. * @param message
  523. * @param error_type[optional]
  524. */
  525. function user_error ($message, $error_type) {}
  526. /**
  527. * Sets a user-defined error handler function
  528. * @link http://www.php.net/manual/en/function.set-error-handler.php
  529. * @param error_handler callback <p>
  530. * The user function needs to accept two parameters: the error code, and a
  531. * string describing the error. Then there are three optional parameters
  532. * that may be supplied: the filename in which the error occurred, the
  533. * line number in which the error occurred, and the context in which the
  534. * error occurred (an array that points to the active symbol table at the
  535. * point the error occurred). The function can be shown as:
  536. * </p>
  537. * <p>
  538. * handler
  539. * interrno
  540. * stringerrstr
  541. * stringerrfile
  542. * interrline
  543. * arrayerrcontext
  544. * errno
  545. * The first parameter, errno, contains the
  546. * level of the error raised, as an integer.
  547. * @param error_types int[optional] <p>
  548. * Can be used to mask the triggering of the
  549. * error_handler function just like the error_reporting ini setting
  550. * controls which errors are shown. Without this mask set the
  551. * error_handler will be called for every error
  552. * regardless to the setting of the error_reporting setting.
  553. * </p>
  554. * @return mixed a string containing the previously defined error handler (if any). If
  555. * the built-in error handler is used &null; is returned. &null; is also returned
  556. * in case of an error such as an invalid callback. If the previous error handler
  557. * was a class method, this function will return an indexed array with the class
  558. * and the method name.
  559. */
  560. function set_error_handler ($error_handler, $error_types = null) {}
  561. /**
  562. * Restores the previous error handler function
  563. * @link http://www.php.net/manual/en/function.restore-error-handler.php
  564. * @return bool This function always returns true.
  565. */
  566. function restore_error_handler () {}
  567. /**
  568. * Sets a user-defined exception handler function
  569. * @link http://www.php.net/manual/en/function.set-exception-handler.php
  570. * @param exception_handler callback <p>
  571. * Name of the function to be called when an uncaught exception occurs.
  572. * This function must be defined before calling
  573. * set_exception_handler. This handler function
  574. * needs to accept one parameter, which will be the exception object that
  575. * was thrown.
  576. * </p>
  577. * <p>
  578. * &null; may be passed instead, to reset this handler to its
  579. * default state.
  580. * </p>
  581. * @return callback the name of the previously defined exception handler, or &null; on error. If
  582. * no previous handler was defined, &null; is also returned. If &null; is passed,
  583. * resetting the handler to its default state, true is returned.
  584. */
  585. function set_exception_handler ($exception_handler) {}
  586. /**
  587. * Restores the previously defined exception handler function
  588. * @link http://www.php.net/manual/en/function.restore-exception-handler.php
  589. * @return bool This function always returns true.
  590. */
  591. function restore_exception_handler () {}
  592. /**
  593. * Returns an array with the name of the defined classes
  594. * @link http://www.php.net/manual/en/function.get-declared-classes.php
  595. * @return array an array of the names of the declared classes in the current
  596. * script.
  597. * </p>
  598. * <p>
  599. * Note that depending on what extensions you have compiled or
  600. * loaded into PHP, additional classes could be present. This means that
  601. * you will not be able to define your own classes using these
  602. * names. There is a list of predefined classes in the Predefined Classes section of
  603. * the appendices.
  604. */
  605. function get_declared_classes () {}
  606. /**
  607. * Returns an array of all declared traits
  608. * @link http://www.php.net/manual/en/function.get-declared-traits.php
  609. * @return array an array with names of all declared traits in values.
  610. * Returns &null; in case of a failure.
  611. */
  612. function get_declared_traits () {}
  613. /**
  614. * Returns an array of all declared interfaces
  615. * @link http://www.php.net/manual/en/function.get-declared-interfaces.php
  616. * @return array an array of the names of the declared interfaces in the current
  617. * script.
  618. */
  619. function get_declared_interfaces () {}
  620. /**
  621. * Returns an array of all defined functions
  622. * @link http://www.php.net/manual/en/function.get-defined-functions.php
  623. * @return array an multidimensional array containing a list of all defined
  624. * functions, both built-in (internal) and user-defined. The internal
  625. * functions will be accessible via $arr["internal"], and
  626. * the user defined ones using $arr["user"] (see example
  627. * below).
  628. */
  629. function get_defined_functions () {}
  630. /**
  631. * Returns an array of all defined variables
  632. * @link http://www.php.net/manual/en/function.get-defined-vars.php
  633. * @return array A multidimensional array with all the variables.
  634. */
  635. function get_defined_vars () {}
  636. /**
  637. * Create an anonymous (lambda-style) function
  638. * @link http://www.php.net/manual/en/function.create-function.php
  639. * @param args string <p>
  640. * The function arguments.
  641. * </p>
  642. * @param code string <p>
  643. * The function code.
  644. * </p>
  645. * @return string a unique function name as a string, or false on error.
  646. */
  647. function create_function ($args, $code) {}
  648. /**
  649. * Returns the resource type
  650. * @link http://www.php.net/manual/en/function.get-resource-type.php
  651. * @param handle resource <p>
  652. * The evaluated resource handle.
  653. * </p>
  654. * @return string If the given handle is a resource, this function
  655. * will return a string representing its type. If the type is not identified
  656. * by this function, the return value will be the string
  657. * Unknown.
  658. * </p>
  659. * <p>
  660. * This function will return false and generate an error if
  661. * handle is not a resource.
  662. */
  663. function get_resource_type ($handle) {}
  664. /**
  665. * Returns an array with the names of all modules compiled and loaded
  666. * @link http://www.php.net/manual/en/function.get-loaded-extensions.php
  667. * @param zend_extensions bool[optional] <p>
  668. * Only return Zend extensions, if not then regular extensions, like
  669. * mysqli are listed. Defaults to false (return regular extensions).
  670. * </p>
  671. * @return array an indexed array of all the modules names.
  672. */
  673. function get_loaded_extensions ($zend_extensions = null) {}
  674. /**
  675. * Find out whether an extension is loaded
  676. * @link http://www.php.net/manual/en/function.extension-loaded.php
  677. * @param name string <p>
  678. * The extension name.
  679. * </p>
  680. * <p>
  681. * You can see the names of various extensions by using
  682. * phpinfo or if you're using the
  683. * CGI or CLI version of
  684. * PHP you can use the -m switch to
  685. * list all available extensions:
  686. * </p>
  687. * @return bool true if the extension identified by name
  688. * is loaded, false otherwise.
  689. */
  690. function extension_loaded ($name) {}
  691. /**
  692. * Returns an array with the names of the functions of a module
  693. * @link http://www.php.net/manual/en/function.get-extension-funcs.php
  694. * @param module_name string <p>
  695. * The module name.
  696. * </p>
  697. * <p>
  698. * This parameter must be in lowercase.
  699. * </p>
  700. * @return array an array with all the functions, or false if
  701. * module_name is not a valid extension.
  702. */
  703. function get_extension_funcs ($module_name) {}
  704. /**
  705. * Returns an associative array with the names of all the constants and their values
  706. * @link http://www.php.net/manual/en/function.get-defined-constants.php
  707. * @param categorize bool[optional] <p>
  708. * Causing this function to return a multi-dimensional
  709. * array with categories in the keys of the first dimension and constants
  710. * and their values in the second dimension.
  711. * ]]>
  712. * &example.outputs.similar;
  713. * Array
  714. * (
  715. * [E_ERROR] => 1
  716. * [E_WARNING] => 2
  717. * [E_PARSE] => 4
  718. * [E_NOTICE] => 8
  719. * [E_CORE_ERROR] => 16
  720. * [E_CORE_WARNING] => 32
  721. * [E_COMPILE_ERROR] => 64
  722. * [E_COMPILE_WARNING] => 128
  723. * [E_USER_ERROR] => 256
  724. * [E_USER_WARNING] => 512
  725. * [E_USER_NOTICE] => 1024
  726. * [E_ALL] => 2047
  727. * [TRUE] => 1
  728. * )
  729. * [pcre] => Array
  730. * (
  731. * [PREG_PATTERN_ORDER] => 1
  732. * [PREG_SET_ORDER] => 2
  733. * [PREG_OFFSET_CAPTURE] => 256
  734. * [PREG_SPLIT_NO_EMPTY] => 1
  735. * [PREG_SPLIT_DELIM_CAPTURE] => 2
  736. * [PREG_SPLIT_OFFSET_CAPTURE] => 4
  737. * [PREG_GREP_INVERT] => 1
  738. * )
  739. * [user] => Array
  740. * (
  741. * [MY_CONSTANT] => 1
  742. * )
  743. * )
  744. * ]]>
  745. * </p>
  746. * @return array
  747. */
  748. function get_defined_constants ($categorize = null) {}
  749. /**
  750. * Generates a backtrace
  751. * @link http://www.php.net/manual/en/function.debug-backtrace.php
  752. * @param options int[optional] <p>
  753. * As of 5.3.6, this parameter is a bitmask for the following options:
  754. * <table>
  755. * debug_backtrace options
  756. * <tr valign="top">
  757. * <td>DEBUG_BACKTRACE_PROVIDE_OBJECT</td>
  758. * <td>
  759. * Whether or not to populate the "object" index.
  760. * </td>
  761. * </tr>
  762. * <tr valign="top">
  763. * <td>DEBUG_BACKTRACE_IGNORE_ARGS</td>
  764. * <td>
  765. * Whether or not to omit the "args" index, and thus all the function/method arguments,
  766. * to save memory.
  767. * </td>
  768. * </tr>
  769. * </table>
  770. * Before 5.3.6, the only values recognized are true or false, which are the same as
  771. * setting or not setting the DEBUG_BACKTRACE_PROVIDE_OBJECT option respectively.
  772. * </p>
  773. * @param limit int[optional] <p>
  774. * As of 5.4.0, this parameter can be used to limit the number of stack frames returned.
  775. * By default (limit=0) it returns all stack frames.
  776. * </p>
  777. * @return array an array of associative arrays. The possible returned elements
  778. * are as follows:
  779. * </p>
  780. * <p>
  781. * <table>
  782. * Possible returned elements from debug_backtrace
  783. * <tr valign="top">
  784. * <td>&Name;</td>
  785. * <td>&Type;</td>
  786. * <td>&Description;</td>
  787. * </tr>
  788. * <tr valign="top">
  789. * <td>function</td>
  790. * <td>string</td>
  791. * <td>
  792. * The current function name. See also
  793. * __FUNCTION__.
  794. * </td>
  795. * </tr>
  796. * <tr valign="top">
  797. * <td>line</td>
  798. * <td>integer</td>
  799. * <td>
  800. * The current line number. See also
  801. * __LINE__.
  802. * </td>
  803. * </tr>
  804. * <tr valign="top">
  805. * <td>file</td>
  806. * <td>string</td>
  807. * <td>
  808. * The current file name. See also
  809. * __FILE__.
  810. * </td>
  811. * </tr>
  812. * <tr valign="top">
  813. * <td>class</td>
  814. * <td>string</td>
  815. * <td>
  816. * The current class name. See also
  817. * __CLASS__
  818. * </td>
  819. * </tr>
  820. * <tr valign="top">
  821. * <td>object</td>
  822. * <td>object</td>
  823. * <td>
  824. * The current object.
  825. * </td>
  826. * </tr>
  827. * <tr valign="top">
  828. * <td>type</td>
  829. * <td>string</td>
  830. * <td>
  831. * The current call type. If a method call, "->" is returned. If a static
  832. * method call, "::" is returned. If a function call, nothing is returned.
  833. * </td>
  834. * </tr>
  835. * <tr valign="top">
  836. * <td>args</td>
  837. * <td>array</td>
  838. * <td>
  839. * If inside a function, this lists the functions arguments. If
  840. * inside an included file, this lists the included file name(s).
  841. * </td>
  842. * </tr>
  843. * </table>
  844. */
  845. function debug_backtrace ($options = null, $limit = null) {}
  846. /**
  847. * Prints a backtrace
  848. * @link http://www.php.net/manual/en/function.debug-print-backtrace.php
  849. * @param options int[optional] <p>
  850. * As of 5.3.6, this parameter is a bitmask for the following options:
  851. * <table>
  852. * debug_print_backtrace options
  853. * <tr valign="top">
  854. * <td>DEBUG_BACKTRACE_IGNORE_ARGS</td>
  855. * <td>
  856. * Whether or not to omit the "args" index, and thus all the function/method arguments,
  857. * to save memory.
  858. * </td>
  859. * </tr>
  860. * </table>
  861. * </p>
  862. * @param limit int[optional] <p>
  863. * As of 5.4.0, this parameter can be used to limit the number of stack frames printed.
  864. * By default (limit=0) it prints all stack frames.
  865. * </p>
  866. * @return void
  867. */
  868. function debug_print_backtrace ($options = null, $limit = null) {}
  869. /**
  870. * Forces collection of any existing garbage cycles
  871. * @link http://www.php.net/manual/en/function.gc-collect-cycles.php
  872. * @return int number of collected cycles.
  873. */
  874. function gc_collect_cycles () {}
  875. /**
  876. * Returns status of the circular reference collector
  877. * @link http://www.php.net/manual/en/function.gc-enabled.php
  878. * @return bool true if the garbage collector is enabled, false otherwise.
  879. */
  880. function gc_enabled () {}
  881. /**
  882. * Activates the circular reference collector
  883. * @link http://www.php.net/manual/en/function.gc-enable.php
  884. * @return void
  885. */
  886. function gc_enable () {}
  887. /**
  888. * Deactivates the circular reference collector
  889. * @link http://www.php.net/manual/en/function.gc-disable.php
  890. * @return void
  891. */
  892. function gc_disable () {}
  893. /**
  894. * Fatal run-time errors. These indicate errors that can not be
  895. * recovered from, such as a memory allocation problem.
  896. * Execution of the script is halted.
  897. * @link http://www.php.net/manual/en/errorfunc.constants.php
  898. */
  899. define ('E_ERROR', 1);
  900. /**
  901. * Catchable fatal error. It indicates that a probably dangerous error
  902. * occured, but did not leave the Engine in an unstable state. If the error
  903. * is not caught by a user defined handle (see also
  904. * set_error_handler), the application aborts as it
  905. * was an E_ERROR.
  906. * @link http://www.php.net/manual/en/errorfunc.constants.php
  907. */
  908. define ('E_RECOVERABLE_ERROR', 4096);
  909. /**
  910. * Run-time warnings (non-fatal errors). Execution of the script is not
  911. * halted.
  912. * @link http://www.php.net/manual/en/errorfunc.constants.php
  913. */
  914. define ('E_WARNING', 2);
  915. /**
  916. * Compile-time parse errors. Parse errors should only be generated by
  917. * the parser.
  918. * @link http://www.php.net/manual/en/errorfunc.constants.php
  919. */
  920. define ('E_PARSE', 4);
  921. /**
  922. * Run-time notices. Indicate that the script encountered something that
  923. * could indicate an error, but could also happen in the normal course of
  924. * running a script.
  925. * @link http://www.php.net/manual/en/errorfunc.constants.php
  926. */
  927. define ('E_NOTICE', 8);
  928. /**
  929. * Enable to have PHP suggest changes
  930. * to your code which will ensure the best interoperability
  931. * and forward compatibility of your code.
  932. * @link http://www.php.net/manual/en/errorfunc.constants.php
  933. */
  934. define ('E_STRICT', 2048);
  935. /**
  936. * Run-time notices. Enable this to receive warnings about code
  937. * that will not work in future versions.
  938. * @link http://www.php.net/manual/en/errorfunc.constants.php
  939. */
  940. define ('E_DEPRECATED', 8192);
  941. /**
  942. * Fatal errors that occur during PHP's initial startup. This is like an
  943. * E_ERROR, except it is generated by the core of PHP.
  944. * @link http://www.php.net/manual/en/errorfunc.constants.php
  945. */
  946. define ('E_CORE_ERROR', 16);
  947. /**
  948. * Warnings (non-fatal errors) that occur during PHP's initial startup.
  949. * This is like an E_WARNING, except it is generated
  950. * by the core of PHP.
  951. * @link http://www.php.net/manual/en/errorfunc.constants.php
  952. */
  953. define ('E_CORE_WARNING', 32);
  954. /**
  955. * Fatal compile-time errors. This is like an E_ERROR,
  956. * except it is generated by the Zend Scripting Engine.
  957. * @link http://www.php.net/manual/en/errorfunc.constants.php
  958. */
  959. define ('E_COMPILE_ERROR', 64);
  960. /**
  961. * Compile-time warnings (non-fatal errors). This is like an
  962. * E_WARNING, except it is generated by the Zend
  963. * Scripting Engine.
  964. * @link http://www.php.net/manual/en/errorfunc.constants.php
  965. */
  966. define ('E_COMPILE_WARNING', 128);
  967. /**
  968. * User-generated error message. This is like an
  969. * E_ERROR, except it is generated in PHP code by
  970. * using the PHP function trigger_error.
  971. * @link http://www.php.net/manual/en/errorfunc.constants.php
  972. */
  973. define ('E_USER_ERROR', 256);
  974. /**
  975. * User-generated warning message. This is like an
  976. * E_WARNING, except it is generated in PHP code by
  977. * using the PHP function trigger_error.
  978. * @link http://www.php.net/manual/en/errorfunc.constants.php
  979. */
  980. define ('E_USER_WARNING', 512);
  981. /**
  982. * User-generated notice message. This is like an
  983. * E_NOTICE, except it is generated in PHP code by
  984. * using the PHP function trigger_error.
  985. * @link http://www.php.net/manual/en/errorfunc.constants.php
  986. */
  987. define ('E_USER_NOTICE', 1024);
  988. /**
  989. * User-generated warning message. This is like an
  990. * E_DEPRECATED, except it is generated in PHP code by
  991. * using the PHP function trigger_error.
  992. * @link http://www.php.net/manual/en/errorfunc.constants.php
  993. */
  994. define ('E_USER_DEPRECATED', 16384);
  995. /**
  996. * All errors and warnings, as supported, except of level
  997. * E_STRICT prior to PHP 5.4.0.
  998. * @link http://www.php.net/manual/en/errorfunc.constants.php
  999. */
  1000. define ('E_ALL', 32767);
  1001. define ('DEBUG_BACKTRACE_PROVIDE_OBJECT', 1);
  1002. define ('DEBUG_BACKTRACE_IGNORE_ARGS', 2);
  1003. define ('TRUE', true);
  1004. define ('FALSE', false);
  1005. define ('NULL', null);
  1006. define ('ZEND_THREAD_SAFE', false);
  1007. define ('ZEND_DEBUG_BUILD', false);
  1008. define ('PHP_VERSION', "5.4.0RC6");
  1009. define ('PHP_MAJOR_VERSION', 5);
  1010. define ('PHP_MINOR_VERSION', 4);
  1011. define ('PHP_RELEASE_VERSION', 0);
  1012. define ('PHP_EXTRA_VERSION', "RC6");
  1013. define ('PHP_VERSION_ID', 50400);
  1014. define ('PHP_ZTS', 0);
  1015. define ('PHP_DEBUG', 0);
  1016. define ('PHP_OS', "Linux");
  1017. define ('PHP_SAPI', "cli");
  1018. define ('DEFAULT_INCLUDE_PATH', ".:/usr/local/zend/share/pear");
  1019. define ('PEAR_INSTALL_DIR', "/usr/local/zend/share/pear");
  1020. define ('PEAR_EXTENSION_DIR', "/usr/local/zend/lib/php/20100525");
  1021. define ('PHP_EXTENSION_DIR', "/usr/local/zend/lib/php/20100525");
  1022. define ('PHP_PREFIX', "/usr/local/zend");
  1023. define ('PHP_BINDIR', "/usr/local/zend/bin");
  1024. define ('PHP_MANDIR', "/usr/local/zend/man");
  1025. define ('PHP_LIBDIR', "/usr/local/zend/lib/php");
  1026. define ('PHP_DATADIR', "/usr/local/zend/share/php");
  1027. define ('PHP_SYSCONFDIR', "/usr/local/zend/etc");
  1028. define ('PHP_LOCALSTATEDIR', "/usr/local/zend/var");
  1029. define ('PHP_CONFIG_FILE_PATH', "/usr/local/zend/etc");
  1030. define ('PHP_CONFIG_FILE_SCAN_DIR', "/usr/local/zend/etc/conf.d");
  1031. define ('PHP_SHLIB_SUFFIX', "so");
  1032. define ('PHP_EOL', "\n");
  1033. define ('PHP_MAXPATHLEN', 4096);
  1034. define ('PHP_INT_MAX', 2147483647);
  1035. define ('PHP_INT_SIZE', 4);
  1036. define ('PHP_BINARY', "/usr/local/zend/bin/php");
  1037. define ('PHP_OUTPUT_HANDLER_START', 1);
  1038. define ('PHP_OUTPUT_HANDLER_WRITE', 0);
  1039. define ('PHP_OUTPUT_HANDLER_FLUSH', 4);
  1040. define ('PHP_OUTPUT_HANDLER_CLEAN', 2);
  1041. define ('PHP_OUTPUT_HANDLER_FINAL', 8);
  1042. define ('PHP_OUTPUT_HANDLER_CONT', 0);
  1043. define ('PHP_OUTPUT_HANDLER_END', 8);
  1044. define ('PHP_OUTPUT_HANDLER_CLEANABLE', 16);
  1045. define ('PHP_OUTPUT_HANDLER_FLUSHABLE', 32);
  1046. define ('PHP_OUTPUT_HANDLER_REMOVABLE', 64);
  1047. define ('PHP_OUTPUT_HANDLER_STDFLAGS', 112);
  1048. define ('PHP_OUTPUT_HANDLER_STARTED', 4096);
  1049. define ('PHP_OUTPUT_HANDLER_DISABLED', 8192);
  1050. define ('UPLOAD_ERR_OK', 0);
  1051. define ('UPLOAD_ERR_INI_SIZE', 1);
  1052. define ('UPLOAD_ERR_FORM_SIZE', 2);
  1053. define ('UPLOAD_ERR_PARTIAL', 3);
  1054. define ('UPLOAD_ERR_NO_FILE', 4);
  1055. define ('UPLOAD_ERR_NO_TMP_DIR', 6);
  1056. define ('UPLOAD_ERR_CANT_WRITE', 7);
  1057. define ('UPLOAD_ERR_EXTENSION', 8);
  1058. define ('STDIN', "Resource id #1");
  1059. define ('STDOUT', "Resource id #2");
  1060. define ('STDERR', "Resource id #3");
  1061. // End of Core v.5.4.0RC6
  1062. ?>