PageRenderTime 59ms CodeModel.GetById 25ms RepoModel.GetById 0ms app.codeStats 1ms

/plugins/com.aptana.editor.php.epl/Resources/language/php5/Core.php

https://gitlab.com/N3X15/studio3-php
PHP | 1259 lines | 197 code | 133 blank | 929 comment | 0 complexity | 8d90d1cf4e218b16cba124423ed0fcef MD5 | raw file
  1. <?php
  2. // Start of Core v.5.4.4-2
  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, $code, $previous) {}
  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, $code, $severity, $filename, $lineno, $previous) {}
  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) {}
  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 the class given does not exist false will be returned.
  319. * </p>
  320. * <p>
  321. * If called without parameter outside object, this function returns false.
  322. */
  323. function get_parent_class ($object = null) {}
  324. /**
  325. * Checks if the class method exists
  326. * @link http://www.php.net/manual/en/function.method-exists.php
  327. * @param object mixed <p>
  328. * An object instance or a class name
  329. * </p>
  330. * @param method_name string <p>
  331. * The method name
  332. * </p>
  333. * @return bool true if the method given by method_name
  334. * has been defined for the given object, false
  335. * otherwise.
  336. */
  337. function method_exists ($object, $method_name) {}
  338. /**
  339. * Checks if the object or class has a property
  340. * @link http://www.php.net/manual/en/function.property-exists.php
  341. * @param class mixed <p>
  342. * The class name or an object of the class to test for
  343. * </p>
  344. * @param property string <p>
  345. * The name of the property
  346. * </p>
  347. * @return bool true if the property exists, false if it doesn't exist or
  348. * &null; in case of an error.
  349. */
  350. function property_exists ($class, $property) {}
  351. /**
  352. * Checks if the class has been defined
  353. * @link http://www.php.net/manual/en/function.class-exists.php
  354. * @param class_name string <p>
  355. * The class name. The name is matched in a case-insensitive manner.
  356. * </p>
  357. * @param autoload bool[optional] <p>
  358. * Whether or not to call &link.autoload; by default.
  359. * </p>
  360. * @return bool true if class_name is a defined class,
  361. * false otherwise.
  362. */
  363. function class_exists ($class_name, $autoload = null) {}
  364. /**
  365. * Checks if the interface has been defined
  366. * @link http://www.php.net/manual/en/function.interface-exists.php
  367. * @param interface_name string <p>
  368. * The interface name
  369. * </p>
  370. * @param autoload bool[optional] <p>
  371. * Whether to call &link.autoload; or not by default.
  372. * </p>
  373. * @return bool true if the interface given by
  374. * interface_name has been defined, false otherwise.
  375. */
  376. function interface_exists ($interface_name, $autoload = null) {}
  377. /**
  378. * Checks if the trait exists
  379. * @link http://www.php.net/manual/en/function.trait-exists.php
  380. * @param traitname string <p>
  381. * Name of the trait to check
  382. * </p>
  383. * @param autoload bool[optional] <p>
  384. * Whether to autoload if not already loaded.
  385. * </p>
  386. * @return bool true if trait exists, false if not, &null; in case of an error.
  387. */
  388. function trait_exists ($traitname, $autoload = null) {}
  389. /**
  390. * Return &true; if the given function has been defined
  391. * @link http://www.php.net/manual/en/function.function-exists.php
  392. * @param function_name string <p>
  393. * The function name, as a string.
  394. * </p>
  395. * @return bool true if function_name exists and is a
  396. * function, false otherwise.
  397. * </p>
  398. * <p>
  399. * This function will return false for constructs, such as
  400. * include_once and echo.
  401. */
  402. function function_exists ($function_name) {}
  403. /**
  404. * Creates an alias for a class
  405. * @link http://www.php.net/manual/en/function.class-alias.php
  406. * @param original string[optional] <p>
  407. * The original class.
  408. * </p>
  409. * @param alias string[optional] <p>
  410. * The alias name for the class.
  411. * </p>
  412. * @return bool Returns true on success or false on failure.
  413. */
  414. function class_alias ($original = null, $alias = null) {}
  415. /**
  416. * Returns an array with the names of included or required files
  417. * @link http://www.php.net/manual/en/function.get-included-files.php
  418. * @return array an array of the names of all files.
  419. * </p>
  420. * <p>
  421. * The script originally called is considered an "included file," so it will
  422. * be listed together with the files referenced by
  423. * include and family.
  424. * </p>
  425. * <p>
  426. * Files that are included or required multiple times only show up once in
  427. * the returned array.
  428. */
  429. function get_included_files () {}
  430. /**
  431. * &Alias; <function>get_included_files</function>
  432. * @link http://www.php.net/manual/en/function.get-required-files.php
  433. */
  434. function get_required_files () {}
  435. /**
  436. * Checks if the object has this class as one of its parents
  437. * @link http://www.php.net/manual/en/function.is-subclass-of.php
  438. * @param object mixed <p>
  439. * A class name or an object instance
  440. * </p>
  441. * @param class_name string <p>
  442. * The class name
  443. * </p>
  444. * @param allow_string bool[optional] <p>
  445. * If this parameter set to false, string class name as object
  446. * is not allowed. This also prevents from calling 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. * If this parameter set to false, string class name as object
  464. * is not allowed. This also prevents from calling autoloader if the class doesn't exist.
  465. * </p>
  466. * @return bool true if the object is of this class or has this class as one of
  467. * its parents, false otherwise.
  468. */
  469. function is_a ($object, $class_name, $allow_string = null) {}
  470. /**
  471. * Get the default properties of the class
  472. * @link http://www.php.net/manual/en/function.get-class-vars.php
  473. * @param class_name string <p>
  474. * The class name
  475. * </p>
  476. * @return array an associative array of declared properties visible from the
  477. * current scope, with their default value.
  478. * The resulting array elements are in the form of
  479. * varname => value.
  480. * In case of an error, it returns false.
  481. */
  482. function get_class_vars ($class_name) {}
  483. /**
  484. * Gets the properties of the given object
  485. * @link http://www.php.net/manual/en/function.get-object-vars.php
  486. * @param object object <p>
  487. * An object instance.
  488. * </p>
  489. * @return array an associative array of defined object accessible non-static properties
  490. * for the specified object in scope. If a property have
  491. * not been assigned a value, it will be returned with a &null; value.
  492. */
  493. function get_object_vars ($object) {}
  494. /**
  495. * Gets the class methods' names
  496. * @link http://www.php.net/manual/en/function.get-class-methods.php
  497. * @param class_name mixed <p>
  498. * The class name or an object instance
  499. * </p>
  500. * @return array an array of method names defined for the class specified by
  501. * class_name. In case of an error, it returns &null;.
  502. */
  503. function get_class_methods ($class_name) {}
  504. /**
  505. * Generates a user-level error/warning/notice message
  506. * @link http://www.php.net/manual/en/function.trigger-error.php
  507. * @param error_msg string <p>
  508. * The designated error message for this error. It's limited to 1024
  509. * characters in length. Any additional characters beyond 1024 will be
  510. * truncated.
  511. * </p>
  512. * @param error_type int[optional] <p>
  513. * The designated error type for this error. It only works with the E_USER
  514. * family of constants, and will default to E_USER_NOTICE.
  515. * </p>
  516. * @return bool This function returns false if wrong error_type is
  517. * specified, true otherwise.
  518. */
  519. function trigger_error ($error_msg, $error_type = null) {}
  520. /**
  521. * Alias of <function>trigger_error</function>
  522. * @link http://www.php.net/manual/en/function.user-error.php
  523. * @param message
  524. * @param error_type[optional]
  525. */
  526. function user_error ($message, $error_type) {}
  527. /**
  528. * Sets a user-defined error handler function
  529. * @link http://www.php.net/manual/en/function.set-error-handler.php
  530. * @param error_handler callable <p>
  531. * The user function needs to accept two parameters: the error code, and a
  532. * string describing the error. Then there are three optional parameters
  533. * that may be supplied: the filename in which the error occurred, the
  534. * line number in which the error occurred, and the context in which the
  535. * error occurred (an array that points to the active symbol table at the
  536. * point the error occurred). The function can be shown as:
  537. * </p>
  538. * <p>
  539. * handler
  540. * interrno
  541. * stringerrstr
  542. * stringerrfile
  543. * interrline
  544. * arrayerrcontext
  545. * errno
  546. * The first parameter, errno, contains the
  547. * level of the error raised, as an integer.
  548. * @param error_types int[optional] <p>
  549. * Can be used to mask the triggering of the
  550. * error_handler function just like the error_reporting ini setting
  551. * controls which errors are shown. Without this mask set the
  552. * error_handler will be called for every error
  553. * regardless to the setting of the error_reporting setting.
  554. * </p>
  555. * @return mixed a string containing the previously defined error handler (if any). If
  556. * the built-in error handler is used &null; is returned. &null; is also returned
  557. * in case of an error such as an invalid callback. If the previous error handler
  558. * was a class method, this function will return an indexed array with the class
  559. * and the method name.
  560. */
  561. function set_error_handler ($error_handler, $error_types = null) {}
  562. /**
  563. * Restores the previous error handler function
  564. * @link http://www.php.net/manual/en/function.restore-error-handler.php
  565. * @return bool This function always returns true.
  566. */
  567. function restore_error_handler () {}
  568. /**
  569. * Sets a user-defined exception handler function
  570. * @link http://www.php.net/manual/en/function.set-exception-handler.php
  571. * @param exception_handler callable <p>
  572. * Name of the function to be called when an uncaught exception occurs.
  573. * This function must be defined before calling
  574. * set_exception_handler. This handler function
  575. * needs to accept one parameter, which will be the exception object that
  576. * was thrown.
  577. * </p>
  578. * <p>
  579. * &null; may be passed instead, to reset this handler to its
  580. * default state.
  581. * </p>
  582. * @return callable the name of the previously defined exception handler, or &null; on error. If
  583. * no previous handler was defined, &null; is also returned. If &null; is passed,
  584. * resetting the handler to its default state, true is returned.
  585. */
  586. function set_exception_handler ($exception_handler) {}
  587. /**
  588. * Restores the previously defined exception handler function
  589. * @link http://www.php.net/manual/en/function.restore-exception-handler.php
  590. * @return bool This function always returns true.
  591. */
  592. function restore_exception_handler () {}
  593. /**
  594. * Returns an array with the name of the defined classes
  595. * @link http://www.php.net/manual/en/function.get-declared-classes.php
  596. * @return array an array of the names of the declared classes in the current
  597. * script.
  598. * </p>
  599. * <p>
  600. * Note that depending on what extensions you have compiled or
  601. * loaded into PHP, additional classes could be present. This means that
  602. * you will not be able to define your own classes using these
  603. * names. There is a list of predefined classes in the Predefined Classes section of
  604. * the appendices.
  605. */
  606. function get_declared_classes () {}
  607. /**
  608. * Returns an array of all declared traits
  609. * @link http://www.php.net/manual/en/function.get-declared-traits.php
  610. * @return array an array with names of all declared traits in values.
  611. * Returns &null; in case of a failure.
  612. */
  613. function get_declared_traits () {}
  614. /**
  615. * Returns an array of all declared interfaces
  616. * @link http://www.php.net/manual/en/function.get-declared-interfaces.php
  617. * @return array an array of the names of the declared interfaces in the current
  618. * script.
  619. */
  620. function get_declared_interfaces () {}
  621. /**
  622. * Returns an array of all defined functions
  623. * @link http://www.php.net/manual/en/function.get-defined-functions.php
  624. * @return array an multidimensional array containing a list of all defined
  625. * functions, both built-in (internal) and user-defined. The internal
  626. * functions will be accessible via $arr["internal"], and
  627. * the user defined ones using $arr["user"] (see example
  628. * below).
  629. */
  630. function get_defined_functions () {}
  631. /**
  632. * Returns an array of all defined variables
  633. * @link http://www.php.net/manual/en/function.get-defined-vars.php
  634. * @return array A multidimensional array with all the variables.
  635. */
  636. function get_defined_vars () {}
  637. /**
  638. * Create an anonymous (lambda-style) function
  639. * @link http://www.php.net/manual/en/function.create-function.php
  640. * @param args string <p>
  641. * The function arguments.
  642. * </p>
  643. * @param code string <p>
  644. * The function code.
  645. * </p>
  646. * @return string a unique function name as a string, or false on error.
  647. */
  648. function create_function ($args, $code) {}
  649. /**
  650. * Returns the resource type
  651. * @link http://www.php.net/manual/en/function.get-resource-type.php
  652. * @param handle resource <p>
  653. * The evaluated resource handle.
  654. * </p>
  655. * @return string If the given handle is a resource, this function
  656. * will return a string representing its type. If the type is not identified
  657. * by this function, the return value will be the string
  658. * Unknown.
  659. * </p>
  660. * <p>
  661. * This function will return false and generate an error if
  662. * handle is not a resource.
  663. */
  664. function get_resource_type ($handle) {}
  665. /**
  666. * Returns an array with the names of all modules compiled and loaded
  667. * @link http://www.php.net/manual/en/function.get-loaded-extensions.php
  668. * @param zend_extensions bool[optional] <p>
  669. * Only return Zend extensions, if not then regular extensions, like
  670. * mysqli are listed. Defaults to false (return regular extensions).
  671. * </p>
  672. * @return array an indexed array of all the modules names.
  673. */
  674. function get_loaded_extensions ($zend_extensions = null) {}
  675. /**
  676. * Find out whether an extension is loaded
  677. * @link http://www.php.net/manual/en/function.extension-loaded.php
  678. * @param name string <p>
  679. * The extension name.
  680. * </p>
  681. * <p>
  682. * You can see the names of various extensions by using
  683. * phpinfo or if you're using the
  684. * CGI or CLI version of
  685. * PHP you can use the -m switch to
  686. * list all available extensions:
  687. * </p>
  688. * @return bool true if the extension identified by name
  689. * is loaded, false otherwise.
  690. */
  691. function extension_loaded ($name) {}
  692. /**
  693. * Returns an array with the names of the functions of a module
  694. * @link http://www.php.net/manual/en/function.get-extension-funcs.php
  695. * @param module_name string <p>
  696. * The module name.
  697. * </p>
  698. * <p>
  699. * This parameter must be in lowercase.
  700. * </p>
  701. * @return array an array with all the functions, or false if
  702. * module_name is not a valid extension.
  703. */
  704. function get_extension_funcs ($module_name) {}
  705. /**
  706. * Returns an associative array with the names of all the constants and their values
  707. * @link http://www.php.net/manual/en/function.get-defined-constants.php
  708. * @param categorize bool[optional] <p>
  709. * Causing this function to return a multi-dimensional
  710. * array with categories in the keys of the first dimension and constants
  711. * and their values in the second dimension.
  712. * ]]>
  713. * &example.outputs.similar;
  714. * Array
  715. * (
  716. * [E_ERROR] => 1
  717. * [E_WARNING] => 2
  718. * [E_PARSE] => 4
  719. * [E_NOTICE] => 8
  720. * [E_CORE_ERROR] => 16
  721. * [E_CORE_WARNING] => 32
  722. * [E_COMPILE_ERROR] => 64
  723. * [E_COMPILE_WARNING] => 128
  724. * [E_USER_ERROR] => 256
  725. * [E_USER_WARNING] => 512
  726. * [E_USER_NOTICE] => 1024
  727. * [E_ALL] => 2047
  728. * [TRUE] => 1
  729. * )
  730. * [pcre] => Array
  731. * (
  732. * [PREG_PATTERN_ORDER] => 1
  733. * [PREG_SET_ORDER] => 2
  734. * [PREG_OFFSET_CAPTURE] => 256
  735. * [PREG_SPLIT_NO_EMPTY] => 1
  736. * [PREG_SPLIT_DELIM_CAPTURE] => 2
  737. * [PREG_SPLIT_OFFSET_CAPTURE] => 4
  738. * [PREG_GREP_INVERT] => 1
  739. * )
  740. * [user] => Array
  741. * (
  742. * [MY_CONSTANT] => 1
  743. * )
  744. * )
  745. * ]]>
  746. * </p>
  747. * @return array
  748. */
  749. function get_defined_constants ($categorize = null) {}
  750. /**
  751. * Generates a backtrace
  752. * @link http://www.php.net/manual/en/function.debug-backtrace.php
  753. * @param options int[optional] <p>
  754. * As of 5.3.6, this parameter is a bitmask for the following options:
  755. * <table>
  756. * debug_backtrace options
  757. * <tr valign="top">
  758. * <td>DEBUG_BACKTRACE_PROVIDE_OBJECT</td>
  759. * <td>
  760. * Whether or not to populate the "object" index.
  761. * </td>
  762. * </tr>
  763. * <tr valign="top">
  764. * <td>DEBUG_BACKTRACE_IGNORE_ARGS</td>
  765. * <td>
  766. * Whether or not to omit the "args" index, and thus all the function/method arguments,
  767. * to save memory.
  768. * </td>
  769. * </tr>
  770. * </table>
  771. * Before 5.3.6, the only values recognized are true or false, which are the same as
  772. * setting or not setting the DEBUG_BACKTRACE_PROVIDE_OBJECT option respectively.
  773. * </p>
  774. * @param limit int[optional] <p>
  775. * As of 5.4.0, this parameter can be used to limit the number of stack frames returned.
  776. * By default (limit=0) it returns all stack frames.
  777. * </p>
  778. * @return array an array of associative arrays. The possible returned elements
  779. * are as follows:
  780. * </p>
  781. * <p>
  782. * <table>
  783. * Possible returned elements from debug_backtrace
  784. * <tr valign="top">
  785. * <td>&Name;</td>
  786. * <td>&Type;</td>
  787. * <td>&Description;</td>
  788. * </tr>
  789. * <tr valign="top">
  790. * <td>function</td>
  791. * <td>string</td>
  792. * <td>
  793. * The current function name. See also
  794. * __FUNCTION__.
  795. * </td>
  796. * </tr>
  797. * <tr valign="top">
  798. * <td>line</td>
  799. * <td>integer</td>
  800. * <td>
  801. * The current line number. See also
  802. * __LINE__.
  803. * </td>
  804. * </tr>
  805. * <tr valign="top">
  806. * <td>file</td>
  807. * <td>string</td>
  808. * <td>
  809. * The current file name. See also
  810. * __FILE__.
  811. * </td>
  812. * </tr>
  813. * <tr valign="top">
  814. * <td>class</td>
  815. * <td>string</td>
  816. * <td>
  817. * The current class name. See also
  818. * __CLASS__
  819. * </td>
  820. * </tr>
  821. * <tr valign="top">
  822. * <td>object</td>
  823. * <td>object</td>
  824. * <td>
  825. * The current object.
  826. * </td>
  827. * </tr>
  828. * <tr valign="top">
  829. * <td>type</td>
  830. * <td>string</td>
  831. * <td>
  832. * The current call type. If a method call, "->" is returned. If a static
  833. * method call, "::" is returned. If a function call, nothing is returned.
  834. * </td>
  835. * </tr>
  836. * <tr valign="top">
  837. * <td>args</td>
  838. * <td>array</td>
  839. * <td>
  840. * If inside a function, this lists the functions arguments. If
  841. * inside an included file, this lists the included file name(s).
  842. * </td>
  843. * </tr>
  844. * </table>
  845. */
  846. function debug_backtrace ($options = null, $limit = null) {}
  847. /**
  848. * Prints a backtrace
  849. * @link http://www.php.net/manual/en/function.debug-print-backtrace.php
  850. * @param options int[optional] <p>
  851. * As of 5.3.6, this parameter is a bitmask for the following options:
  852. * <table>
  853. * debug_print_backtrace options
  854. * <tr valign="top">
  855. * <td>DEBUG_BACKTRACE_IGNORE_ARGS</td>
  856. * <td>
  857. * Whether or not to omit the "args" index, and thus all the function/method arguments,
  858. * to save memory.
  859. * </td>
  860. * </tr>
  861. * </table>
  862. * </p>
  863. * @param limit int[optional] <p>
  864. * As of 5.4.0, this parameter can be used to limit the number of stack frames printed.
  865. * By default (limit=0) it prints all stack frames.
  866. * </p>
  867. * @return void
  868. */
  869. function debug_print_backtrace ($options = null, $limit = null) {}
  870. /**
  871. * Forces collection of any existing garbage cycles
  872. * @link http://www.php.net/manual/en/function.gc-collect-cycles.php
  873. * @return int number of collected cycles.
  874. */
  875. function gc_collect_cycles () {}
  876. /**
  877. * Returns status of the circular reference collector
  878. * @link http://www.php.net/manual/en/function.gc-enabled.php
  879. * @return bool true if the garbage collector is enabled, false otherwise.
  880. */
  881. function gc_enabled () {}
  882. /**
  883. * Activates the circular reference collector
  884. * @link http://www.php.net/manual/en/function.gc-enable.php
  885. * @return void
  886. */
  887. function gc_enable () {}
  888. /**
  889. * Deactivates the circular reference collector
  890. * @link http://www.php.net/manual/en/function.gc-disable.php
  891. * @return void
  892. */
  893. function gc_disable () {}
  894. /**
  895. * Fatal run-time errors. These indicate errors that can not be
  896. * recovered from, such as a memory allocation problem.
  897. * Execution of the script is halted.
  898. * @link http://www.php.net/manual/en/errorfunc.constants.php
  899. */
  900. define ('E_ERROR', 1);
  901. /**
  902. * Catchable fatal error. It indicates that a probably dangerous error
  903. * occured, but did not leave the Engine in an unstable state. If the error
  904. * is not caught by a user defined handle (see also
  905. * set_error_handler), the application aborts as it
  906. * was an E_ERROR.
  907. * @link http://www.php.net/manual/en/errorfunc.constants.php
  908. */
  909. define ('E_RECOVERABLE_ERROR', 4096);
  910. /**
  911. * Run-time warnings (non-fatal errors). Execution of the script is not
  912. * halted.
  913. * @link http://www.php.net/manual/en/errorfunc.constants.php
  914. */
  915. define ('E_WARNING', 2);
  916. /**
  917. * Compile-time parse errors. Parse errors should only be generated by
  918. * the parser.
  919. * @link http://www.php.net/manual/en/errorfunc.constants.php
  920. */
  921. define ('E_PARSE', 4);
  922. /**
  923. * Run-time notices. Indicate that the script encountered something that
  924. * could indicate an error, but could also happen in the normal course of
  925. * running a script.
  926. * @link http://www.php.net/manual/en/errorfunc.constants.php
  927. */
  928. define ('E_NOTICE', 8);
  929. /**
  930. * Enable to have PHP suggest changes
  931. * to your code which will ensure the best interoperability
  932. * and forward compatibility of your code.
  933. * @link http://www.php.net/manual/en/errorfunc.constants.php
  934. */
  935. define ('E_STRICT', 2048);
  936. /**
  937. * Run-time notices. Enable this to receive warnings about code
  938. * that will not work in future versions.
  939. * @link http://www.php.net/manual/en/errorfunc.constants.php
  940. */
  941. define ('E_DEPRECATED', 8192);
  942. /**
  943. * Fatal errors that occur during PHP's initial startup. This is like an
  944. * E_ERROR, except it is generated by the core of PHP.
  945. * @link http://www.php.net/manual/en/errorfunc.constants.php
  946. */
  947. define ('E_CORE_ERROR', 16);
  948. /**
  949. * Warnings (non-fatal errors) that occur during PHP's initial startup.
  950. * This is like an E_WARNING, except it is generated
  951. * by the core of PHP.
  952. * @link http://www.php.net/manual/en/errorfunc.constants.php
  953. */
  954. define ('E_CORE_WARNING', 32);
  955. /**
  956. * Fatal compile-time errors. This is like an E_ERROR,
  957. * except it is generated by the Zend Scripting Engine.
  958. * @link http://www.php.net/manual/en/errorfunc.constants.php
  959. */
  960. define ('E_COMPILE_ERROR', 64);
  961. /**
  962. * Compile-time warnings (non-fatal errors). This is like an
  963. * E_WARNING, except it is generated by the Zend
  964. * Scripting Engine.
  965. * @link http://www.php.net/manual/en/errorfunc.constants.php
  966. */
  967. define ('E_COMPILE_WARNING', 128);
  968. /**
  969. * User-generated error message. This is like an
  970. * E_ERROR, except it is generated in PHP code by
  971. * using the PHP function trigger_error.
  972. * @link http://www.php.net/manual/en/errorfunc.constants.php
  973. */
  974. define ('E_USER_ERROR', 256);
  975. /**
  976. * User-generated warning message. This is like an
  977. * E_WARNING, except it is generated in PHP code by
  978. * using the PHP function trigger_error.
  979. * @link http://www.php.net/manual/en/errorfunc.constants.php
  980. */
  981. define ('E_USER_WARNING', 512);
  982. /**
  983. * User-generated notice message. This is like an
  984. * E_NOTICE, except it is generated in PHP code by
  985. * using the PHP function trigger_error.
  986. * @link http://www.php.net/manual/en/errorfunc.constants.php
  987. */
  988. define ('E_USER_NOTICE', 1024);
  989. /**
  990. * User-generated warning message. This is like an
  991. * E_DEPRECATED, except it is generated in PHP code by
  992. * using the PHP function trigger_error.
  993. * @link http://www.php.net/manual/en/errorfunc.constants.php
  994. */
  995. define ('E_USER_DEPRECATED', 16384);
  996. /**
  997. * All errors and warnings, as supported, except of level
  998. * E_STRICT prior to PHP 5.4.0.
  999. * @link http://www.php.net/manual/en/errorfunc.constants.php
  1000. */
  1001. define ('E_ALL', 32767);
  1002. define ('DEBUG_BACKTRACE_PROVIDE_OBJECT', 1);
  1003. define ('DEBUG_BACKTRACE_IGNORE_ARGS', 2);
  1004. define ('TRUE', true);
  1005. define ('FALSE', false);
  1006. define ('NULL', null);
  1007. define ('ZEND_THREAD_SAFE', false);
  1008. define ('ZEND_DEBUG_BUILD', false);
  1009. define ('PHP_VERSION', "5.4.4-2");
  1010. define ('PHP_MAJOR_VERSION', 5);
  1011. define ('PHP_MINOR_VERSION', 4);
  1012. define ('PHP_RELEASE_VERSION', 4);
  1013. define ('PHP_EXTRA_VERSION', -2);
  1014. define ('PHP_VERSION_ID', 50404);
  1015. define ('PHP_ZTS', 0);
  1016. define ('PHP_DEBUG', 0);
  1017. define ('PHP_OS', "Linux");
  1018. define ('PHP_SAPI', "cli");
  1019. define ('DEFAULT_INCLUDE_PATH', ".:/usr/share/php:/usr/share/pear");
  1020. define ('PEAR_INSTALL_DIR', "/usr/share/php");
  1021. define ('PEAR_EXTENSION_DIR', "/usr/lib/php5/20100525");
  1022. define ('PHP_EXTENSION_DIR', "/usr/lib/php5/20100525");
  1023. define ('PHP_PREFIX', "/usr");
  1024. define ('PHP_BINDIR', "/usr/bin");
  1025. define ('PHP_MANDIR', "/usr/share/man");
  1026. define ('PHP_LIBDIR', "/usr/lib/php5");
  1027. define ('PHP_DATADIR', "${prefix}/share");
  1028. define ('PHP_SYSCONFDIR', "/etc");
  1029. define ('PHP_LOCALSTATEDIR', "/var");
  1030. define ('PHP_CONFIG_FILE_PATH', "/etc/php5/cli");
  1031. define ('PHP_CONFIG_FILE_SCAN_DIR', "/etc/php5/cli/conf.d");
  1032. define ('PHP_SHLIB_SUFFIX', "so");
  1033. define ('PHP_EOL', "\n");
  1034. define ('PHP_MAXPATHLEN', 4096);
  1035. define ('PHP_INT_MAX', 9223372036854775807);
  1036. define ('PHP_INT_SIZE', 8);
  1037. define ('PHP_BINARY', "/usr/bin/php5");
  1038. /**
  1039. * <p>
  1040. * Indicates that output buffering has begun.
  1041. * </p>
  1042. * @link http://www.php.net/manual/en/outcontrol.constants.php
  1043. */
  1044. define ('PHP_OUTPUT_HANDLER_START', 1);
  1045. /**
  1046. * <p>
  1047. * Indicates that the output buffer is being flushed, and had data to output.
  1048. * </p>
  1049. * <p>
  1050. * Available since PHP 5.4.
  1051. * </p>
  1052. * @link http://www.php.net/manual/en/outcontrol.constants.php
  1053. */
  1054. define ('PHP_OUTPUT_HANDLER_WRITE', 0);
  1055. /**
  1056. * <p>
  1057. * Indicates that the buffer has been flushed.
  1058. * </p>
  1059. * <p>
  1060. * Available since PHP 5.4.
  1061. * </p>
  1062. * @link http://www.php.net/manual/en/outcontrol.constants.php
  1063. */
  1064. define ('PHP_OUTPUT_HANDLER_FLUSH', 4);
  1065. /**
  1066. * <p>
  1067. * Indicates that the output buffer has been cleaned.
  1068. * </p>
  1069. * <p>
  1070. * Available since PHP 5.4.
  1071. * </p>
  1072. * @link http://www.php.net/manual/en/outcontrol.constants.php
  1073. */
  1074. define ('PHP_OUTPUT_HANDLER_CLEAN', 2);
  1075. /**
  1076. * <p>
  1077. * Indicates that this is the final output buffering operation.
  1078. * </p>
  1079. * <p>
  1080. * Available since PHP 5.4.
  1081. * </p>
  1082. * @link http://www.php.net/manual/en/outcontrol.constants.php
  1083. */
  1084. define ('PHP_OUTPUT_HANDLER_FINAL', 8);
  1085. /**
  1086. * <p>
  1087. * Indicates that the buffer has been flushed, but output buffering will
  1088. * continue.
  1089. * </p>
  1090. * <p>
  1091. * As of PHP 5.4, this is an alias for
  1092. * PHP_OUTPUT_HANDLER_WRITE.
  1093. * </p>
  1094. * @link http://www.php.net/manual/en/outcontrol.constants.php
  1095. */
  1096. define ('PHP_OUTPUT_HANDLER_CONT', 0);
  1097. /**
  1098. * <p>
  1099. * Indicates that output buffering has ended.
  1100. * </p>
  1101. * <p>
  1102. * As of PHP 5.4, this is an alias for
  1103. * PHP_OUTPUT_HANDLER_FINAL.
  1104. * </p>
  1105. * @link http://www.php.net/manual/en/outcontrol.constants.php
  1106. */
  1107. define ('PHP_OUTPUT_HANDLER_END', 8);
  1108. define ('PHP_OUTPUT_HANDLER_CLEANABLE', 16);
  1109. define ('PHP_OUTPUT_HANDLER_FLUSHABLE', 32);
  1110. define ('PHP_OUTPUT_HANDLER_REMOVABLE', 64);
  1111. define ('PHP_OUTPUT_HANDLER_STDFLAGS', 112);
  1112. define ('PHP_OUTPUT_HANDLER_STARTED', 4096);
  1113. define ('PHP_OUTPUT_HANDLER_DISABLED', 8192);
  1114. define ('UPLOAD_ERR_OK', 0);
  1115. define ('UPLOAD_ERR_INI_SIZE', 1);
  1116. define ('UPLOAD_ERR_FORM_SIZE', 2);
  1117. define ('UPLOAD_ERR_PARTIAL', 3);
  1118. define ('UPLOAD_ERR_NO_FILE', 4);
  1119. define ('UPLOAD_ERR_NO_TMP_DIR', 6);
  1120. define ('UPLOAD_ERR_CANT_WRITE', 7);
  1121. define ('UPLOAD_ERR_EXTENSION', 8);
  1122. define ('STDIN', "Resource id #1");
  1123. define ('STDOUT', "Resource id #2");
  1124. define ('STDERR', "Resource id #3");
  1125. // End of Core v.5.4.4-2
  1126. ?>