PageRenderTime 45ms CodeModel.GetById 15ms RepoModel.GetById 0ms app.codeStats 0ms

/.metadata/.plugins/org.eclipse.php.core/__language__/a601fd1b/Core.php

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