PageRenderTime 88ms CodeModel.GetById 36ms RepoModel.GetById 0ms app.codeStats 0ms

/.metadata/.plugins/org.eclipse.php.core/__language__/3a86f0e4/basic.php

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