PageRenderTime 87ms CodeModel.GetById 24ms RepoModel.GetById 0ms app.codeStats 1ms

/plugins/com.aptana.editor.php.epl/Resources/language/php5.3/standard.php

https://gitlab.com/N3X15/studio3-php
PHP | 11372 lines | 865 code | 676 blank | 9831 comment | 0 complexity | 2d3db2026b5d92568f4380db7664b400 MD5 | raw file
  1. <?php
  2. // Start of standard v.5.3.2
  3. class __PHP_Incomplete_Class {
  4. }
  5. class php_user_filter {
  6. public $filtername;
  7. public $params;
  8. /**
  9. * @param in
  10. * @param out
  11. * @param consumed
  12. * @param closing
  13. */
  14. public function filter ($in, $out, &$consumed, $closing) {}
  15. public function onCreate () {}
  16. public function onClose () {}
  17. }
  18. class Directory {
  19. public function close () {}
  20. public function rewind () {}
  21. public function read () {}
  22. }
  23. /**
  24. * Returns the value of a constant
  25. * @link http://www.php.net/manual/en/function.constant.php
  26. * @param name string <p>
  27. * The constant name.
  28. * </p>
  29. * @return mixed the value of the constant, or &null; if the constant is not
  30. * defined.
  31. */
  32. function constant ($name) {}
  33. /**
  34. * Convert binary data into hexadecimal representation
  35. * @link http://www.php.net/manual/en/function.bin2hex.php
  36. * @param str string <p>
  37. * A character.
  38. * </p>
  39. * @return string the hexadecimal representation of the given string.
  40. */
  41. function bin2hex ($str) {}
  42. /**
  43. * Delay execution
  44. * @link http://www.php.net/manual/en/function.sleep.php
  45. * @param seconds int <p>
  46. * Halt time in seconds.
  47. * </p>
  48. * @return int zero on success, or false on errors. If the call was interrupted
  49. * by a signal, sleep returns the number of seconds left
  50. * to sleep.
  51. */
  52. function sleep ($seconds) {}
  53. /**
  54. * Delay execution in microseconds
  55. * @link http://www.php.net/manual/en/function.usleep.php
  56. * @param micro_seconds int <p>
  57. * Halt time in micro seconds. A micro second is one millionth of a
  58. * second.
  59. * </p>
  60. * @return void
  61. */
  62. function usleep ($micro_seconds) {}
  63. /**
  64. * Delay for a number of seconds and nanoseconds
  65. * @link http://www.php.net/manual/en/function.time-nanosleep.php
  66. * @param seconds int <p>
  67. * Must be a positive integer.
  68. * </p>
  69. * @param nanoseconds int <p>
  70. * Must be a positive integer less than 1 billion.
  71. * </p>
  72. * @return mixed Returns true on success or false on failure.
  73. * </p>
  74. * <p>
  75. * If the delay was interrupted by a signal, an associative array will be
  76. * returned with the components:
  77. * seconds - number of seconds remaining in
  78. * the delay
  79. * nanoseconds - number of nanoseconds
  80. * remaining in the delay
  81. */
  82. function time_nanosleep ($seconds, $nanoseconds) {}
  83. /**
  84. * Make the script sleep until the specified time
  85. * @link http://www.php.net/manual/en/function.time-sleep-until.php
  86. * @param timestamp float <p>
  87. * The timestamp when the script should wake.
  88. * </p>
  89. * @return bool Returns true on success or false on failure.
  90. */
  91. function time_sleep_until ($timestamp) {}
  92. /**
  93. * Parse a time/date generated with <function>strftime</function>
  94. * @link http://www.php.net/manual/en/function.strptime.php
  95. * @param date string <p>
  96. * The string to parse (e.g. returned from strftime)
  97. * </p>
  98. * @param format string <p>
  99. * The format used in date (e.g. the same as
  100. * used in strftime).
  101. * </p>
  102. * <p>
  103. * For more information about the format options, read the
  104. * strftime page.
  105. * </p>
  106. * @return array an array&return.falseforfailure;.
  107. * </p>
  108. * <p>
  109. * <table>
  110. * The following parameters are returned in the array
  111. * <tr valign="top">
  112. * <td>parameters</td>
  113. * <td>Description</td>
  114. * </tr>
  115. * <tr valign="top">
  116. * <td>"tm_sec"</td>
  117. * <td>Seconds after the minute (0-61)</td>
  118. * </tr>
  119. * <tr valign="top">
  120. * <td>"tm_min"</td>
  121. * <td>Minutes after the hour (0-59)</td>
  122. * </tr>
  123. * <tr valign="top">
  124. * <td>"tm_hour"</td>
  125. * <td>Hour since midnight (0-23)</td>
  126. * </tr>
  127. * <tr valign="top">
  128. * <td>"tm_mday"</td>
  129. * <td>Day of the month (1-31)</td>
  130. * </tr>
  131. * <tr valign="top">
  132. * <td>"tm_mon"</td>
  133. * <td>Months since January (0-11)</td>
  134. * </tr>
  135. * <tr valign="top">
  136. * <td>"tm_year"</td>
  137. * <td>Years since 1900</td>
  138. * </tr>
  139. * <tr valign="top">
  140. * <td>"tm_wday"</td>
  141. * <td>Days since Sunday (0-6)</td>
  142. * </tr>
  143. * <tr valign="top">
  144. * <td>"tm_yday"</td>
  145. * <td>Days since January 1 (0-365)</td>
  146. * </tr>
  147. * <tr valign="top">
  148. * <td>"unparsed"</td>
  149. * <td>the date part which was not
  150. * recognized using the specified format</td>
  151. * </tr>
  152. * </table>
  153. */
  154. function strptime ($date, $format) {}
  155. /**
  156. * Flush the output buffer
  157. * @link http://www.php.net/manual/en/function.flush.php
  158. * @return void
  159. */
  160. function flush () {}
  161. /**
  162. * Wraps a string to a given number of characters
  163. * @link http://www.php.net/manual/en/function.wordwrap.php
  164. * @param str string <p>
  165. * The input string.
  166. * </p>
  167. * @param width int[optional] <p>
  168. * The column width.
  169. * </p>
  170. * @param break string[optional] <p>
  171. * The line is broken using the optional
  172. * break parameter.
  173. * </p>
  174. * @param cut bool[optional] <p>
  175. * If the cut is set to true, the string is
  176. * always wrapped at or before the specified width. So if you have
  177. * a word that is larger than the given width, it is broken apart.
  178. * (See second example).
  179. * </p>
  180. * @return string the given string wrapped at the specified column.
  181. */
  182. function wordwrap ($str, $width = null, $break = null, $cut = null) {}
  183. /**
  184. * Convert special characters to HTML entities
  185. * @link http://www.php.net/manual/en/function.htmlspecialchars.php
  186. * @param string string <p>
  187. * The string being converted.
  188. * </p>
  189. * @param quote_style int[optional] <p>
  190. * The optional second argument, quote_style, tells
  191. * the function what to do with single and double quote characters.
  192. * The default mode, ENT_COMPAT, is the backwards compatible mode
  193. * which only translates the double-quote character and leaves the
  194. * single-quote untranslated. If ENT_QUOTES is set, both single and
  195. * double quotes are translated and if ENT_NOQUOTES is set neither
  196. * single nor double quotes are translated.
  197. * </p>
  198. * @param charset string[optional] <p>
  199. * Defines character set used in conversion.
  200. * The default character set is ISO-8859-1.
  201. * </p>
  202. * <p>
  203. * For the purposes of this function, the charsets
  204. * ISO-8859-1, ISO-8859-15,
  205. * UTF-8, cp866,
  206. * cp1251, cp1252, and
  207. * KOI8-R are effectively equivalent, as the
  208. * characters affected by htmlspecialchars
  209. * occupy the same positions in all of these charsets.
  210. * </p>
  211. * &reference.strings.charsets;
  212. * @param double_encode bool[optional] <p>
  213. * When double_encode is turned off PHP will not
  214. * encode existing html entities, the default is to convert everything.
  215. * </p>
  216. * @return string The converted string.
  217. */
  218. function htmlspecialchars ($string, $quote_style = null, $charset = null, $double_encode = null) {}
  219. /**
  220. * Convert all applicable characters to HTML entities
  221. * @link http://www.php.net/manual/en/function.htmlentities.php
  222. * @param string string <p>
  223. * The input string.
  224. * </p>
  225. * @param quote_style int[optional] <p>
  226. * Like htmlspecialchars, the optional second
  227. * quote_style parameter lets you define what will
  228. * be done with 'single' and "double" quotes. It takes on one of three
  229. * constants with the default being ENT_COMPAT:
  230. * <table>
  231. * Available quote_style constants
  232. * <tr valign="top">
  233. * <td>Constant Name</td>
  234. * <td>Description</td>
  235. * </tr>
  236. * <tr valign="top">
  237. * <td>ENT_COMPAT</td>
  238. * <td>Will convert double-quotes and leave single-quotes alone.</td>
  239. * </tr>
  240. * <tr valign="top">
  241. * <td>ENT_QUOTES</td>
  242. * <td>Will convert both double and single quotes.</td>
  243. * </tr>
  244. * <tr valign="top">
  245. * <td>ENT_NOQUOTES</td>
  246. * <td>Will leave both double and single quotes unconverted.</td>
  247. * </tr>
  248. * </table>
  249. * </p>
  250. * @param charset string[optional] <p>
  251. * Like htmlspecialchars, it takes an optional
  252. * third argument charset which defines character
  253. * set used in conversion.
  254. * Presently, the ISO-8859-1 character set is used as the default.
  255. * </p>
  256. * &reference.strings.charsets;
  257. * @param double_encode bool[optional] <p>
  258. * When double_encode is turned off PHP will not
  259. * encode existing html entities. The default is to convert everything.
  260. * </p>
  261. * @return string the encoded string.
  262. */
  263. function htmlentities ($string, $quote_style = null, $charset = null, $double_encode = null) {}
  264. /**
  265. * Convert all HTML entities to their applicable characters
  266. * @link http://www.php.net/manual/en/function.html-entity-decode.php
  267. * @param string string <p>
  268. * The input string.
  269. * </p>
  270. * @param quote_style int[optional] <p>
  271. * The optional second quote_style parameter lets
  272. * you define what will be done with 'single' and "double" quotes. It takes
  273. * on one of three constants with the default being
  274. * ENT_COMPAT:
  275. * <table>
  276. * Available quote_style constants
  277. * <tr valign="top">
  278. * <td>Constant Name</td>
  279. * <td>Description</td>
  280. * </tr>
  281. * <tr valign="top">
  282. * <td>ENT_COMPAT</td>
  283. * <td>Will convert double-quotes and leave single-quotes alone.</td>
  284. * </tr>
  285. * <tr valign="top">
  286. * <td>ENT_QUOTES</td>
  287. * <td>Will convert both double and single quotes.</td>
  288. * </tr>
  289. * <tr valign="top">
  290. * <td>ENT_NOQUOTES</td>
  291. * <td>Will leave both double and single quotes unconverted.</td>
  292. * </tr>
  293. * </table>
  294. * </p>
  295. * @param charset string[optional] <p>
  296. * The ISO-8859-1 character set is used as default for the optional third
  297. * charset. This defines the character set used in
  298. * conversion.
  299. * </p>
  300. * &reference.strings.charsets;
  301. * @return string the decoded string.
  302. */
  303. function html_entity_decode ($string, $quote_style = null, $charset = null) {}
  304. /**
  305. * Convert special HTML entities back to characters
  306. * @link http://www.php.net/manual/en/function.htmlspecialchars-decode.php
  307. * @param string string <p>
  308. * The string to decode
  309. * </p>
  310. * @param quote_style int[optional] <p>
  311. * The quote style. One of the following constants:
  312. * <table>
  313. * quote_style constants
  314. * <tr valign="top">
  315. * <td>Constant Name</td>
  316. * <td>Description</td>
  317. * </tr>
  318. * <tr valign="top">
  319. * <td>ENT_COMPAT</td>
  320. * <td>Will convert double-quotes and leave single-quotes alone
  321. * (default)</td>
  322. * </tr>
  323. * <tr valign="top">
  324. * <td>ENT_QUOTES</td>
  325. * <td>Will convert both double and single quotes</td>
  326. * </tr>
  327. * <tr valign="top">
  328. * <td>ENT_NOQUOTES</td>
  329. * <td>Will leave both double and single quotes unconverted</td>
  330. * </tr>
  331. * </table>
  332. * </p>
  333. * @return string the decoded string.
  334. */
  335. function htmlspecialchars_decode ($string, $quote_style = null) {}
  336. /**
  337. * Returns the translation table used by <function>htmlspecialchars</function> and <function>htmlentities</function>
  338. * @link http://www.php.net/manual/en/function.get-html-translation-table.php
  339. * @param table int[optional] <p>
  340. * There are two new constants (HTML_ENTITIES,
  341. * HTML_SPECIALCHARS) that allow you to specify the
  342. * table you want.
  343. * </p>
  344. * @param quote_style int[optional] <p>
  345. * Like the htmlspecialchars and
  346. * htmlentities functions you can optionally specify
  347. * the quote_style you are working with.
  348. * See the description
  349. * of these modes in htmlspecialchars.
  350. * </p>
  351. * @return array the translation table as an array.
  352. */
  353. function get_html_translation_table ($table = null, $quote_style = null) {}
  354. /**
  355. * Calculate the sha1 hash of a string
  356. * @link http://www.php.net/manual/en/function.sha1.php
  357. * @param str string <p>
  358. * The input string.
  359. * </p>
  360. * @param raw_output bool[optional] <p>
  361. * If the optional raw_output is set to true,
  362. * then the sha1 digest is instead returned in raw binary format with a
  363. * length of 20, otherwise the returned value is a 40-character
  364. * hexadecimal number.
  365. * </p>
  366. * @return string the sha1 hash as a string.
  367. */
  368. function sha1 ($str, $raw_output = null) {}
  369. /**
  370. * Calculate the sha1 hash of a file
  371. * @link http://www.php.net/manual/en/function.sha1-file.php
  372. * @param filename string <p>
  373. * The filename of the file to hash.
  374. * </p>
  375. * @param raw_output bool[optional] <p>
  376. * When true, returns the digest in raw binary format with a length of
  377. * 20.
  378. * </p>
  379. * @return string a string on success, false otherwise.
  380. */
  381. function sha1_file ($filename, $raw_output = null) {}
  382. /**
  383. * Calculate the md5 hash of a string
  384. * @link http://www.php.net/manual/en/function.md5.php
  385. * @param str string <p>
  386. * The string.
  387. * </p>
  388. * @param raw_output bool[optional] <p>
  389. * If the optional raw_output is set to true,
  390. * then the md5 digest is instead returned in raw binary format with a
  391. * length of 16.
  392. * </p>
  393. * @return string the hash as a 32-character hexadecimal number.
  394. */
  395. function md5 ($str, $raw_output = null) {}
  396. /**
  397. * Calculates the md5 hash of a given file
  398. * @link http://www.php.net/manual/en/function.md5-file.php
  399. * @param filename string <p>
  400. * The filename
  401. * </p>
  402. * @param raw_output bool[optional] <p>
  403. * When true, returns the digest in raw binary format with a length of
  404. * 16.
  405. * </p>
  406. * @return string a string on success, false otherwise.
  407. */
  408. function md5_file ($filename, $raw_output = null) {}
  409. /**
  410. * Calculates the crc32 polynomial of a string
  411. * @link http://www.php.net/manual/en/function.crc32.php
  412. * @param str string <p>
  413. * The data.
  414. * </p>
  415. * @return int the crc32 checksum of str as an integer.
  416. */
  417. function crc32 ($str) {}
  418. /**
  419. * Parse a binary IPTC block into single tags.
  420. * @link http://www.php.net/manual/en/function.iptcparse.php
  421. * @param iptcblock string <p>
  422. * A binary IPTC block.
  423. * </p>
  424. * @return array an array using the tagmarker as an index and the value as the
  425. * value. It returns false on error or if no IPTC data was found.
  426. */
  427. function iptcparse ($iptcblock) {}
  428. /**
  429. * Embeds binary IPTC data into a JPEG image
  430. * @link http://www.php.net/manual/en/function.iptcembed.php
  431. * @param iptcdata string <p>
  432. * The data to be written.
  433. * </p>
  434. * @param jpeg_file_name string <p>
  435. * Path to the JPEG image.
  436. * </p>
  437. * @param spool int[optional] <p>
  438. * Spool flag. If the spool flag is over 2 then the JPEG will be
  439. * returned as a string.
  440. * </p>
  441. * @return mixed If success and spool flag is lower than 2 then the JPEG will not be
  442. * returned as a string, false on errors.
  443. */
  444. function iptcembed ($iptcdata, $jpeg_file_name, $spool = null) {}
  445. /**
  446. * Get the size of an image
  447. * @link http://www.php.net/manual/en/function.getimagesize.php
  448. * @param filename string <p>
  449. * This parameter specifies the file you wish to retrieve information
  450. * about. It can reference a local file or (configuration permitting) a
  451. * remote file using one of the supported streams.
  452. * </p>
  453. * @param imageinfo array[optional] <p>
  454. * This optional parameter allows you to extract some extended
  455. * information from the image file. Currently, this will return the
  456. * different JPG APP markers as an associative array.
  457. * Some programs use these APP markers to embed text information in
  458. * images. A very common one is to embed
  459. * IPTC information in the APP13 marker.
  460. * You can use the iptcparse function to parse the
  461. * binary APP13 marker into something readable.
  462. * </p>
  463. * @return array an array with 7 elements.
  464. * </p>
  465. * <p>
  466. * Index 0 and 1 contains respectively the width and the height of the image.
  467. * </p>
  468. * <p>
  469. * Some formats may contain no image or may contain multiple images. In these
  470. * cases, getimagesize might not be able to properly
  471. * determine the image size. getimagesize will return
  472. * zero for width and height in these cases.
  473. * </p>
  474. * <p>
  475. * Index 2 is one of the IMAGETYPE_XXX constants indicating
  476. * the type of the image.
  477. * </p>
  478. * <p>
  479. * Index 3 is a text string with the correct
  480. * height="yyy" width="xxx" string that can be used
  481. * directly in an IMG tag.
  482. * </p>
  483. * <p>
  484. * mime is the correspondant MIME type of the image.
  485. * This information can be used to deliver images with correct the HTTP
  486. * Content-type header:
  487. * </p>
  488. * <p>
  489. * Example #1 getimagesize and MIME types
  490. * </p>
  491. * <pre>
  492. * &lt;?php
  493. * $size = getimagesize($filename);
  494. * $fp = fopen($filename, "rb");
  495. * if ($size && $fp) {
  496. * &nbsp;&nbsp;header("Content-type: {$size['mime']}");
  497. * &nbsp;&nbsp;fpassthru($fp);
  498. * &nbsp;&nbsp;exit;
  499. * } else {
  500. * &nbsp;&nbsp;// error
  501. * }
  502. * ?&gt;
  503. * </pre>
  504. * <p>
  505. * channels will be 3 for RGB pictures and 4 for CMYK
  506. * pictures.
  507. * </p>
  508. * <p>
  509. * bits is the number of bits for each color.
  510. * </p>
  511. * <p>
  512. * For some image types, the presence of channels and
  513. * bits values can be a bit
  514. * confusing. As an example, GIF always uses 3 channels
  515. * per pixel, but the number of bits per pixel cannot be calculated for an
  516. * animated GIF with a global color table.
  517. * </p>
  518. * <p>
  519. * On failure, false is returned.
  520. */
  521. function getimagesize ($filename, array &$imageinfo = null) {}
  522. /**
  523. * Get Mime-Type for image-type returned by getimagesize,
  524. exif_read_data, exif_thumbnail, exif_imagetype
  525. * @link http://www.php.net/manual/en/function.image-type-to-mime-type.php
  526. * @param imagetype int <p>
  527. * One of the IMAGETYPE_XXX constants.
  528. * </p>
  529. * @return string The returned values are as follows
  530. * <table>
  531. * Returned values Constants
  532. * <tr valign="top">
  533. * <td>imagetype</td>
  534. * <td>Returned value</td>
  535. * </tr>
  536. * <tr valign="top">
  537. * <td>IMAGETYPE_GIF</td>
  538. * <td>image/gif</td>
  539. * </tr>
  540. * <tr valign="top">
  541. * <td>IMAGETYPE_JPEG</td>
  542. * <td>image/jpeg</td>
  543. * </tr>
  544. * <tr valign="top">
  545. * <td>IMAGETYPE_PNG</td>
  546. * <td>image/png</td>
  547. * </tr>
  548. * <tr valign="top">
  549. * <td>IMAGETYPE_SWF</td>
  550. * <td>application/x-shockwave-flash</td>
  551. * </tr>
  552. * <tr valign="top">
  553. * <td>IMAGETYPE_PSD</td>
  554. * <td>image/psd</td>
  555. * </tr>
  556. * <tr valign="top">
  557. * <td>IMAGETYPE_BMP</td>
  558. * <td>image/bmp</td>
  559. * </tr>
  560. * <tr valign="top">
  561. * <td>IMAGETYPE_TIFF_II (intel byte order)</td>
  562. * <td>image/tiff</td>
  563. * </tr>
  564. * <tr valign="top">
  565. * <td>
  566. * IMAGETYPE_TIFF_MM (motorola byte order)
  567. * </td>
  568. * <td>image/tiff</td>
  569. * </tr>
  570. * <tr valign="top">
  571. * <td>IMAGETYPE_JPC</td>
  572. * <td>application/octet-stream</td>
  573. * </tr>
  574. * <tr valign="top">
  575. * <td>IMAGETYPE_JP2</td>
  576. * <td>image/jp2</td>
  577. * </tr>
  578. * <tr valign="top">
  579. * <td>IMAGETYPE_JPX</td>
  580. * <td>application/octet-stream</td>
  581. * </tr>
  582. * <tr valign="top">
  583. * <td>IMAGETYPE_JB2</td>
  584. * <td>application/octet-stream</td>
  585. * </tr>
  586. * <tr valign="top">
  587. * <td>IMAGETYPE_SWC</td>
  588. * <td>application/x-shockwave-flash</td>
  589. * </tr>
  590. * <tr valign="top">
  591. * <td>IMAGETYPE_IFF</td>
  592. * <td>image/iff</td>
  593. * </tr>
  594. * <tr valign="top">
  595. * <td>IMAGETYPE_WBMP</td>
  596. * <td>image/vnd.wap.wbmp</td>
  597. * </tr>
  598. * <tr valign="top">
  599. * <td>IMAGETYPE_XBM</td>
  600. * <td>image/xbm</td>
  601. * </tr>
  602. * <tr valign="top">
  603. * <td>IMAGETYPE_ICO</td>
  604. * <td>image/vnd.microsoft.icon</td>
  605. * </tr>
  606. * </table>
  607. */
  608. function image_type_to_mime_type ($imagetype) {}
  609. /**
  610. * Get file extension for image type
  611. * @link http://www.php.net/manual/en/function.image-type-to-extension.php
  612. * @param imagetype int <p>
  613. * One of the IMAGETYPE_XXX constant.
  614. * </p>
  615. * @param include_dot bool[optional] <p>
  616. * Whether to prepend a dot to the extension or not. Default to true.
  617. * </p>
  618. * @return string A string with the extension corresponding to the given image type.
  619. */
  620. function image_type_to_extension ($imagetype, $include_dot = null) {}
  621. /**
  622. * Outputs information about PHP's configuration
  623. * @link http://www.php.net/manual/en/function.phpinfo.php
  624. * @param what int[optional] <p>
  625. * The output may be customized by passing one or more of the
  626. * following constants bitwise values summed
  627. * together in the optional what parameter.
  628. * One can also combine the respective constants or bitwise values
  629. * together with the or operator.
  630. * </p>
  631. * <p>
  632. * <table>
  633. * phpinfo options
  634. * <tr valign="top">
  635. * <td>Name (constant)</td>
  636. * <td>Value</td>
  637. * <td>Description</td>
  638. * </tr>
  639. * <tr valign="top">
  640. * <td>INFO_GENERAL</td>
  641. * <td>1</td>
  642. * <td>
  643. * The configuration line, &php.ini; location, build date, Web
  644. * Server, System and more.
  645. * </td>
  646. * </tr>
  647. * <tr valign="top">
  648. * <td>INFO_CREDITS</td>
  649. * <td>2</td>
  650. * <td>
  651. * PHP Credits. See also phpcredits.
  652. * </td>
  653. * </tr>
  654. * <tr valign="top">
  655. * <td>INFO_CONFIGURATION</td>
  656. * <td>4</td>
  657. * <td>
  658. * Current Local and Master values for PHP directives. See
  659. * also ini_get.
  660. * </td>
  661. * </tr>
  662. * <tr valign="top">
  663. * <td>INFO_MODULES</td>
  664. * <td>8</td>
  665. * <td>
  666. * Loaded modules and their respective settings. See also
  667. * get_loaded_extensions.
  668. * </td>
  669. * </tr>
  670. * <tr valign="top">
  671. * <td>INFO_ENVIRONMENT</td>
  672. * <td>16</td>
  673. * <td>
  674. * Environment Variable information that's also available in
  675. * $_ENV.
  676. * </td>
  677. * </tr>
  678. * <tr valign="top">
  679. * <td>INFO_VARIABLES</td>
  680. * <td>32</td>
  681. * <td>
  682. * Shows all
  683. * predefined variables from EGPCS (Environment, GET,
  684. * POST, Cookie, Server).
  685. * </td>
  686. * </tr>
  687. * <tr valign="top">
  688. * <td>INFO_LICENSE</td>
  689. * <td>64</td>
  690. * <td>
  691. * PHP License information. See also the license FAQ.
  692. * </td>
  693. * </tr>
  694. * <tr valign="top">
  695. * <td>INFO_ALL</td>
  696. * <td>-1</td>
  697. * <td>
  698. * Shows all of the above.
  699. * </td>
  700. * </tr>
  701. * </table>
  702. * </p>
  703. * @return bool Returns true on success or false on failure.
  704. */
  705. function phpinfo ($what = null) {}
  706. /**
  707. * Gets the current PHP version
  708. * @link http://www.php.net/manual/en/function.phpversion.php
  709. * @param extension string[optional] <p>
  710. * An optional extension name.
  711. * </p>
  712. * @return string If the optional extension parameter is
  713. * specified, phpversion returns the version of that
  714. * extension, or false if there is no version information associated or
  715. * the extension isn't enabled.
  716. */
  717. function phpversion ($extension = null) {}
  718. /**
  719. * Prints out the credits for PHP
  720. * @link http://www.php.net/manual/en/function.phpcredits.php
  721. * @param flag int[optional] <p>
  722. * To generate a custom credits page, you may want to use the
  723. * flag parameter.
  724. * </p>
  725. * <p>
  726. * <table>
  727. * Pre-defined phpcredits flags
  728. * <tr valign="top">
  729. * <td>name</td>
  730. * <td>description</td>
  731. * </tr>
  732. * <tr valign="top">
  733. * <td>CREDITS_ALL</td>
  734. * <td>
  735. * All the credits, equivalent to using: CREDITS_DOCS +
  736. * CREDITS_GENERAL + CREDITS_GROUP +
  737. * CREDITS_MODULES + CREDITS_FULLPAGE.
  738. * It generates a complete stand-alone HTML page with the appropriate tags.
  739. * </td>
  740. * </tr>
  741. * <tr valign="top">
  742. * <td>CREDITS_DOCS</td>
  743. * <td>The credits for the documentation team</td>
  744. * </tr>
  745. * <tr valign="top">
  746. * <td>CREDITS_FULLPAGE</td>
  747. * <td>
  748. * Usually used in combination with the other flags. Indicates
  749. * that a complete stand-alone HTML page needs to be
  750. * printed including the information indicated by the other
  751. * flags.
  752. * </td>
  753. * </tr>
  754. * <tr valign="top">
  755. * <td>CREDITS_GENERAL</td>
  756. * <td>
  757. * General credits: Language design and concept, PHP authors
  758. * and SAPI module.
  759. * </td>
  760. * </tr>
  761. * <tr valign="top">
  762. * <td>CREDITS_GROUP</td>
  763. * <td>A list of the core developers</td>
  764. * </tr>
  765. * <tr valign="top">
  766. * <td>CREDITS_MODULES</td>
  767. * <td>
  768. * A list of the extension modules for PHP, and their authors
  769. * </td>
  770. * </tr>
  771. * <tr valign="top">
  772. * <td>CREDITS_SAPI</td>
  773. * <td>
  774. * A list of the server API modules for PHP, and their authors
  775. * </td>
  776. * </tr>
  777. * </table>
  778. * </p>
  779. * @return bool Returns true on success or false on failure.
  780. */
  781. function phpcredits ($flag = null) {}
  782. /**
  783. * Gets the logo guid
  784. * @link http://www.php.net/manual/en/function.php-logo-guid.php
  785. * @return string PHPE9568F34-D428-11d2-A769-00AA001ACF42.
  786. */
  787. function php_logo_guid () {}
  788. function php_real_logo_guid () {}
  789. function php_egg_logo_guid () {}
  790. /**
  791. * Gets the Zend guid
  792. * @link http://www.php.net/manual/en/function.zend-logo-guid.php
  793. * @return string PHPE9568F35-D428-11d2-A769-00AA001ACF42.
  794. */
  795. function zend_logo_guid () {}
  796. /**
  797. * Returns the type of interface between web server and PHP
  798. * @link http://www.php.net/manual/en/function.php-sapi-name.php
  799. * @return string the interface type, as a lowercase string.
  800. * </p>
  801. * <p>
  802. * Although not exhaustive, the possible return values include
  803. * aolserver, apache,
  804. * apache2filter, apache2handler,
  805. * caudium, cgi (until PHP 5.3),
  806. * cgi-fcgi, cli,
  807. * continuity, embed,
  808. * isapi, litespeed,
  809. * milter, nsapi,
  810. * phttpd, pi3web, roxen,
  811. * thttpd, tux, and webjames.
  812. */
  813. function php_sapi_name () {}
  814. /**
  815. * Returns information about the operating system PHP is running on
  816. * @link http://www.php.net/manual/en/function.php-uname.php
  817. * @param mode string[optional] <p>
  818. * mode is a single character that defines what
  819. * information is returned:
  820. * 'a': This is the default. Contains all modes in
  821. * the sequence "s n r v m".
  822. * @return string the description, as a string.
  823. */
  824. function php_uname ($mode = null) {}
  825. /**
  826. * Return a list of .ini files parsed from the additional ini dir
  827. * @link http://www.php.net/manual/en/function.php-ini-scanned-files.php
  828. * @return string a comma-separated string of .ini files on success. Each comma is
  829. * followed by a newline. If the directive --with-config-file-scan-dir wasn't set,
  830. * false is returned. If it was set and the directory was empty, an
  831. * empty string is returned. If a file is unrecognizable, the file will
  832. * still make it into the returned string but a PHP error will also result.
  833. * This PHP error will be seen both at compile time and while using
  834. * php_ini_scanned_files.
  835. */
  836. function php_ini_scanned_files () {}
  837. /**
  838. * Retrieve a path to the loaded php.ini file
  839. * @link http://www.php.net/manual/en/function.php-ini-loaded-file.php
  840. * @return string The loaded &php.ini; path, or false if one is not loaded.
  841. */
  842. function php_ini_loaded_file () {}
  843. /**
  844. * String comparisons using a "natural order" algorithm
  845. * @link http://www.php.net/manual/en/function.strnatcmp.php
  846. * @param str1 string <p>
  847. * The first string.
  848. * </p>
  849. * @param str2 string <p>
  850. * The second string.
  851. * </p>
  852. * @return int Similar to other string comparison functions, this one returns &lt; 0 if
  853. * str1 is less than str2; &gt;
  854. * 0 if str1 is greater than
  855. * str2, and 0 if they are equal.
  856. */
  857. function strnatcmp ($str1, $str2) {}
  858. /**
  859. * Case insensitive string comparisons using a "natural order" algorithm
  860. * @link http://www.php.net/manual/en/function.strnatcasecmp.php
  861. * @param str1 string <p>
  862. * The first string.
  863. * </p>
  864. * @param str2 string <p>
  865. * The second string.
  866. * </p>
  867. * @return int Similar to other string comparison functions, this one returns &lt; 0 if
  868. * str1 is less than str2 &gt;
  869. * 0 if str1 is greater than
  870. * str2, and 0 if they are equal.
  871. */
  872. function strnatcasecmp ($str1, $str2) {}
  873. /**
  874. * Count the number of substring occurrences
  875. * @link http://www.php.net/manual/en/function.substr-count.php
  876. * @param haystack string <p>
  877. * The string to search in
  878. * </p>
  879. * @param needle string <p>
  880. * The substring to search for
  881. * </p>
  882. * @param offset int[optional] <p>
  883. * The offset where to start counting
  884. * </p>
  885. * @param length int[optional] <p>
  886. * The maximum length after the specified offset to search for the
  887. * substring. It outputs a warning if the offset plus the length is
  888. * greater than the haystack length.
  889. * </p>
  890. * @return int This functions returns an integer.
  891. */
  892. function substr_count ($haystack, $needle, $offset = null, $length = null) {}
  893. /**
  894. * Finds the length of the first segment of a string consisting
  895. entirely of characters contained within a given mask.
  896. * @link http://www.php.net/manual/en/function.strspn.php
  897. * @param subject string <p>
  898. * The string to examine.
  899. * </p>
  900. * @param mask string <p>
  901. * The list of allowable characters to include in counted segments.
  902. * </p>
  903. * @param start int[optional] <p>
  904. * The position in subject to
  905. * start searching.
  906. * </p>
  907. * <p>
  908. * If start is given and is non-negative,
  909. * then strspn will begin
  910. * examining subject at
  911. * the start'th position. For instance, in
  912. * the string 'abcdef', the character at
  913. * position 0 is 'a', the
  914. * character at position 2 is
  915. * 'c', and so forth.
  916. * </p>
  917. * <p>
  918. * If start is given and is negative,
  919. * then strspn will begin
  920. * examining subject at
  921. * the start'th position from the end
  922. * of subject.
  923. * </p>
  924. * @param length int[optional] <p>
  925. * The length of the segment from subject
  926. * to examine.
  927. * </p>
  928. * <p>
  929. * If length is given and is non-negative,
  930. * then subject will be examined
  931. * for length characters after the starting
  932. * position.
  933. * </p>
  934. * <p>
  935. * If lengthis given and is negative,
  936. * then subject will be examined from the
  937. * starting position up to length
  938. * characters from the end of subject.
  939. * </p>
  940. * @return int the length of the initial segment of str1
  941. * which consists entirely of characters in str2.
  942. */
  943. function strspn ($subject, $mask, $start = null, $length = null) {}
  944. /**
  945. * Find length of initial segment not matching mask
  946. * @link http://www.php.net/manual/en/function.strcspn.php
  947. * @param str1 string <p>
  948. * The first string.
  949. * </p>
  950. * @param str2 string <p>
  951. * The second string.
  952. * </p>
  953. * @param start int[optional] <p>
  954. * The start position of the string to examine.
  955. * </p>
  956. * @param length int[optional] <p>
  957. * The length of the string to examine.
  958. * </p>
  959. * @return int the length of the segment as an integer.
  960. */
  961. function strcspn ($str1, $str2, $start = null, $length = null) {}
  962. /**
  963. * Tokenize string
  964. * @link http://www.php.net/manual/en/function.strtok.php
  965. * @param str string <p>
  966. * The string being split up into smaller strings (tokens).
  967. * </p>
  968. * @param token string <p>
  969. * The delimiter used when splitting up str.
  970. * </p>
  971. * @return string A string token.
  972. */
  973. function strtok ($str, $token) {}
  974. /**
  975. * Make a string uppercase
  976. * @link http://www.php.net/manual/en/function.strtoupper.php
  977. * @param string string <p>
  978. * The input string.
  979. * </p>
  980. * @return string the uppercased string.
  981. */
  982. function strtoupper ($string) {}
  983. /**
  984. * Make a string lowercase
  985. * @link http://www.php.net/manual/en/function.strtolower.php
  986. * @param str string <p>
  987. * The input string.
  988. * </p>
  989. * @return string the lowercased string.
  990. */
  991. function strtolower ($str) {}
  992. /**
  993. * Find position of first occurrence of a string
  994. * @link http://www.php.net/manual/en/function.strpos.php
  995. * @param haystack string <p>
  996. * The string to search in
  997. * </p>
  998. * @param needle mixed <p>
  999. * If needle is not a string, it is converted
  1000. * to an integer and applied as the ordinal value of a character.
  1001. * </p>
  1002. * @param offset int[optional] <p>
  1003. * The optional offset parameter allows you
  1004. * to specify which character in haystack to
  1005. * start searching. The position returned is still relative to the
  1006. * beginning of haystack.
  1007. * </p>
  1008. * @return int the position as an integer. If needle is
  1009. * not found, strpos will return boolean
  1010. * false.
  1011. */
  1012. function strpos ($haystack, $needle, $offset = null) {}
  1013. /**
  1014. * Find position of first occurrence of a case-insensitive string
  1015. * @link http://www.php.net/manual/en/function.stripos.php
  1016. * @param haystack string <p>
  1017. * The string to search in
  1018. * </p>
  1019. * @param needle string <p>
  1020. * Note that the needle may be a string of one or
  1021. * more characters.
  1022. * </p>
  1023. * <p>
  1024. * If needle is not a string, it is converted to
  1025. * an integer and applied as the ordinal value of a character.
  1026. * </p>
  1027. * @param offset int[optional] <p>
  1028. * The optional offset parameter allows you
  1029. * to specify which character in haystack to
  1030. * start searching. The position returned is still relative to the
  1031. * beginning of haystack.
  1032. * </p>
  1033. * @return int If needle is not found,
  1034. * stripos will return boolean false.
  1035. */
  1036. function stripos ($haystack, $needle, $offset = null) {}
  1037. /**
  1038. * Find position of last occurrence of a char in a string
  1039. * @link http://www.php.net/manual/en/function.strrpos.php
  1040. * @param haystack string <p>
  1041. * The string to search in.
  1042. * </p>
  1043. * @param needle string <p>
  1044. * If needle is not a string, it is converted
  1045. * to an integer and applied as the ordinal value of a character.
  1046. * </p>
  1047. * @param offset int[optional] <p>
  1048. * May be specified to begin searching an arbitrary number of characters into
  1049. * the string. Negative values will stop searching at an arbitrary point
  1050. * prior to the end of the string.
  1051. * </p>
  1052. * @return int the position where the needle exists. Returns false if the needle
  1053. * was not found.
  1054. */
  1055. function strrpos ($haystack, $needle, $offset = null) {}
  1056. /**
  1057. * Find position of last occurrence of a case-insensitive string in a string
  1058. * @link http://www.php.net/manual/en/function.strripos.php
  1059. * @param haystack string <p>
  1060. * The string to search in
  1061. * </p>
  1062. * @param needle string <p>
  1063. * Note that the needle may be a string of one or
  1064. * more characters.
  1065. * </p>
  1066. * @param offset int[optional] <p>
  1067. * The offset parameter may be specified to begin
  1068. * searching an arbitrary number of characters into the string.
  1069. * </p>
  1070. * <p>
  1071. * Negative offset values will start the search at
  1072. * offset characters from the
  1073. * start of the string.
  1074. * </p>
  1075. * @return int the numerical position of the last occurrence of
  1076. * needle. Also note that string positions start at 0,
  1077. * and not 1.
  1078. * </p>
  1079. * <p>
  1080. * If needle is not found, false is returned.
  1081. */
  1082. function strripos ($haystack, $needle, $offset = null) {}
  1083. /**
  1084. * Reverse a string
  1085. * @link http://www.php.net/manual/en/function.strrev.php
  1086. * @param string string <p>
  1087. * The string to be reversed.
  1088. * </p>
  1089. * @return string the reversed string.
  1090. */
  1091. function strrev ($string) {}
  1092. /**
  1093. * Convert logical Hebrew text to visual text
  1094. * @link http://www.php.net/manual/en/function.hebrev.php
  1095. * @param hebrew_text string <p>
  1096. * A Hebrew input string.
  1097. * </p>
  1098. * @param max_chars_per_line int[optional] <p>
  1099. * This optional parameter indicates maximum number of characters per
  1100. * line that will be returned.
  1101. * </p>
  1102. * @return string the visual string.
  1103. */
  1104. function hebrev ($hebrew_text, $max_chars_per_line = null) {}
  1105. /**
  1106. * Convert logical Hebrew text to visual text with newline conversion
  1107. * @link http://www.php.net/manual/en/function.hebrevc.php
  1108. * @param hebrew_text string <p>
  1109. * A Hebrew input string.
  1110. * </p>
  1111. * @param max_chars_per_line int[optional] <p>
  1112. * This optional parameter indicates maximum number of characters per
  1113. * line that will be returned.
  1114. * </p>
  1115. * @return string the visual string.
  1116. */
  1117. function hebrevc ($hebrew_text, $max_chars_per_line = null) {}
  1118. /**
  1119. * Inserts HTML line breaks before all newlines in a string
  1120. * @link http://www.php.net/manual/en/function.nl2br.php
  1121. * @param string string <p>
  1122. * The input string.
  1123. * </p>
  1124. * @param is_xhtml bool[optional] <p>
  1125. * Whenever to use XHTML compatible line breaks or not.
  1126. * </p>
  1127. * @return string the altered string.
  1128. */
  1129. function nl2br ($string, $is_xhtml = null) {}
  1130. /**
  1131. * Returns filename component of path
  1132. * @link http://www.php.net/manual/en/function.basename.php
  1133. * @param path string <p>
  1134. * A path.
  1135. * </p>
  1136. * <p>
  1137. * On Windows, both slash (/) and backslash
  1138. * (\) are used as directory separator character. In
  1139. * other environments, it is the forward slash (/).
  1140. * </p>
  1141. * @param suffix string[optional] <p>
  1142. * If the filename ends in suffix this will also
  1143. * be cut off.
  1144. * </p>
  1145. * @return string the base name of the given path.
  1146. */
  1147. function basename ($path, $suffix = null) {}
  1148. /**
  1149. * Returns directory name component of path
  1150. * @link http://www.php.net/manual/en/function.dirname.php
  1151. * @param path string <p>
  1152. * A path.
  1153. * </p>
  1154. * <p>
  1155. * On Windows, both slash (/) and backslash
  1156. * (\) are used as directory separator character. In
  1157. * other environments, it is the forward slash (/).
  1158. * </p>
  1159. * @return string the name of the directory. If there are no slashes in
  1160. * path, a dot ('.') is returned,
  1161. * indicating the current directory. Otherwise, the returned string is
  1162. * path with any trailing
  1163. * /component removed.
  1164. */
  1165. function dirname ($path) {}
  1166. /**
  1167. * Returns information about a file path
  1168. * @link http://www.php.net/manual/en/function.pathinfo.php
  1169. * @param path string <p>
  1170. * The path being checked.
  1171. * </p>
  1172. * @param options int[optional] <p>
  1173. * You can specify which elements are returned with optional parameter
  1174. * options. It composes from
  1175. * PATHINFO_DIRNAME,
  1176. * PATHINFO_BASENAME,
  1177. * PATHINFO_EXTENSION and
  1178. * PATHINFO_FILENAME. It
  1179. * defaults to return all elements.
  1180. * </p>
  1181. * @return mixed The following associative array elements are returned:
  1182. * dirname, basename,
  1183. * extension (if any), and filename.
  1184. * </p>
  1185. * <p>
  1186. * If options is used, this function will return a
  1187. * string if not all elements are requested.
  1188. */
  1189. function pathinfo ($path, $options = null) {}
  1190. /**
  1191. * Un-quotes a quoted string
  1192. * @link http://www.php.net/manual/en/function.stripslashes.php
  1193. * @param str string <p>
  1194. * The input string.
  1195. * </p>
  1196. * @return string a string with backslashes stripped off.
  1197. * (\' becomes ' and so on.)
  1198. * Double backslashes (\\) are made into a single
  1199. * backslash (\).
  1200. */
  1201. function stripslashes ($str) {}
  1202. /**
  1203. * Un-quote string quoted with <function>addcslashes</function>
  1204. * @link http://www.php.net/manual/en/function.stripcslashes.php
  1205. * @param str string <p>
  1206. * The string to be unescaped.
  1207. * </p>
  1208. * @return string the unescaped string.
  1209. */
  1210. function stripcslashes ($str) {}
  1211. /**
  1212. * Find first occurrence of a string
  1213. * @link http://www.php.net/manual/en/function.strstr.php
  1214. * @param haystack string <p>
  1215. * The input string.
  1216. * </p>
  1217. * @param needle mixed <p>
  1218. * If needle is not a string, it is converted to
  1219. * an integer and applied as the ordinal value of a character.
  1220. * </p>
  1221. * @param before_needle bool[optional] <p>
  1222. * If true, strstr returns
  1223. * the part of the haystack before the first
  1224. * occurrence of the needle.
  1225. * </p>
  1226. * @return string the portion of string, or false if needle
  1227. * is not found.
  1228. */
  1229. function strstr ($haystack, $needle, $before_needle = null) {}
  1230. /**
  1231. * Case-insensitive <function>strstr</function>
  1232. * @link http://www.php.net/manual/en/function.stristr.php
  1233. * @param haystack string <p>
  1234. * The string to search in
  1235. * </p>
  1236. * @param needle mixed <p>
  1237. * If needle is not a string, it is converted to
  1238. * an integer and applied as the ordinal value of a character.
  1239. * </p>
  1240. * @param before_needle bool[optional] <p>
  1241. * If true, stristr
  1242. * returns the part of the haystack before the
  1243. * first occurrence of the needle.
  1244. * </p>
  1245. * @return string the matched substring. If needle is not
  1246. * found, returns false.
  1247. */
  1248. function stristr ($haystack, $needle, $before_needle = null) {}
  1249. /**
  1250. * Find the last occurrence of a character in a string
  1251. * @link http://www.php.net/manual/en/function.strrchr.php
  1252. * @param haystack string <p>
  1253. * The string to search in
  1254. * </p>
  1255. * @param needle mixed <p>
  1256. * If needle contains more than one character,
  1257. * only the first is used. This behavior is different from that of
  1258. * strstr.
  1259. * </p>
  1260. * <p>
  1261. * If needle is not a string, it is converted to
  1262. * an integer and applied as the ordinal value of a character.
  1263. * </p>
  1264. * @return string This function returns the portion of string, or false if
  1265. * needle is not found.
  1266. */
  1267. function strrchr ($haystack, $needle) {}
  1268. /**
  1269. * Randomly shuffles a string
  1270. * @link http://www.php.net/manual/en/function.str-shuffle.php
  1271. * @param str string <p>
  1272. * The input string.
  1273. * </p>
  1274. * @return string the shuffled string.
  1275. */
  1276. function str_shuffle ($str) {}
  1277. /**
  1278. * Return information about words used in a string
  1279. * @link http://www.php.net/manual/en/function.str-word-count.php
  1280. * @param string string <p>
  1281. * The string
  1282. * </p>
  1283. * @param format int[optional] <p>
  1284. * Specify the return value of this function. The current supported values
  1285. * are:
  1286. * 0 - returns the number of words found
  1287. * @param charlist string[optional] <p>
  1288. * A list of additional characters which will be considered as 'word'
  1289. * </p>
  1290. * @return mixed an array or an integer, depending on the
  1291. * format chosen.
  1292. */
  1293. function str_word_count ($string, $format = null, $charlist = null) {}
  1294. /**
  1295. * Convert a string to an array
  1296. * @link http://www.php.net/manual/en/function.str-split.php
  1297. * @param string string <p>
  1298. * The input string.
  1299. * </p>
  1300. * @param split_length int[optional] <p>
  1301. * Maximum length of the chunk.
  1302. * </p>
  1303. * @return array If the optional split_length parameter is
  1304. * specified, the returned array will be broken down into chunks with each
  1305. * being split_length in length, otherwise each chunk
  1306. * will be one character in length.
  1307. * </p>
  1308. * <p>
  1309. * false is returned if split_length is less than 1.
  1310. * If the split_length length exceeds the length of
  1311. * string, the entire string is returned as the first
  1312. * (and only) array element.
  1313. */
  1314. function str_split ($string, $split_length = null) {}
  1315. /**
  1316. * Search a string for any of a set of characters
  1317. * @link http://www.php.net/manual/en/function.strpbrk.php
  1318. * @param haystack string <p>
  1319. * The string where char_list is looked for.
  1320. * </p>
  1321. * @param char_list string <p>
  1322. * This parameter is case sensitive.
  1323. * </p>
  1324. * @return string a string starting from the character found, or false if it is
  1325. * not found.
  1326. */
  1327. function strpbrk ($haystack, $char_list) {}
  1328. /**
  1329. * Binary safe comparison of two strings from an offset, up to length characters
  1330. * @link http://www.php.net/manual/en/function.substr-compare.php
  1331. * @param main_str string <p>
  1332. * The main string being compared.
  1333. * </p>
  1334. * @param str string <p>
  1335. * The secondary string being compared.
  1336. * </p>
  1337. * @param offset int <p>
  1338. * The start position for the comparison. If negative, it starts counting
  1339. * from the end of the string.
  1340. * </p>
  1341. * @param length int[optional] <p>
  1342. * The length of the comparison. The default value is the largest of the
  1343. * length of the str compared to the length of
  1344. * main_str less the
  1345. * offset.
  1346. * </p>
  1347. * @param case_insensitivity bool[optional] <p>
  1348. * If case_insensitivity is true, comparison is
  1349. * case insensitive.
  1350. * </p>
  1351. * @return int &lt; 0 if main_str from position
  1352. * offset is less than str, &gt;
  1353. * 0 if it is greater than str, and 0 if they are equal.
  1354. * If offset is equal to or greater than the length of
  1355. * main_str or length is set and
  1356. * is less than 1, substr_compare prints a warning and returns
  1357. * false.
  1358. */
  1359. function substr_compare ($main_str, $str, $offset, $length = null, $case_insensitivity = null) {}
  1360. /**
  1361. * Locale based string comparison
  1362. * @link http://www.php.net/manual/en/function.strcoll.php
  1363. * @param str1 string <p>
  1364. * The first string.
  1365. * </p>
  1366. * @param str2 string <p>
  1367. * The second string.
  1368. * </p>
  1369. * @return int &lt; 0 if str1 is less than
  1370. * str2; &gt; 0 if
  1371. * str1 is greater than
  1372. * str2, and 0 if they are equal.
  1373. */
  1374. function strcoll ($str1, $str2) {}
  1375. /**
  1376. * Formats a number as a currency string
  1377. * @link http://www.php.net/manual/en/function.money-format.php
  1378. * @param format string <p>
  1379. * The format specification consists of the following sequence:
  1380. * <p>a % character</p>
  1381. * @param number float <p>
  1382. * The number to be formatted.
  1383. * </p>
  1384. * @return string the formatted string. Characters before and after the formatting
  1385. * string will be returned unchanged.
  1386. * Non-numeric number causes returning &null; and
  1387. * emitting E_WARNING.
  1388. */
  1389. function money_format ($format, $number) {}
  1390. /**
  1391. * Return part of a string
  1392. * @link http://www.php.net/manual/en/function.substr.php
  1393. * @param string string <p>
  1394. * The input string.
  1395. * </p>
  1396. * @param start int <p>
  1397. * If start is non-negative, the returned string
  1398. * will start at the start'th position in
  1399. * string, counting from zero. For instance,
  1400. * in the string 'abcdef', the character at
  1401. * position 0 is 'a', the
  1402. * character at position 2 is
  1403. * 'c', and so forth.
  1404. * </p>
  1405. * <p>
  1406. * If start is negative, the returned string
  1407. * will start at the start'th character
  1408. * from the end of string.
  1409. * </p>
  1410. * <p>
  1411. * If string is less than or equal to
  1412. * start characters long, false will be returned.
  1413. * </p>
  1414. * <p>
  1415. * Example #1 Using a negative start
  1416. * </p>
  1417. * <pre>
  1418. * &lt;?php
  1419. * $rest = substr("abcdef", -1); // returns "f"
  1420. * $rest = substr("abcdef", -2); // returns "ef"
  1421. * $rest = substr("abcdef", -3, 1); // returns "d"
  1422. * ?&gt;
  1423. * </pre>
  1424. * @param length int[optional] <p>
  1425. * If length is given and is positive, the string
  1426. * returned will contain at most length characters
  1427. * beginning from start (depending on the length of
  1428. * string).
  1429. * </p>
  1430. * <p>
  1431. * If length is given and is negative, then that many
  1432. * characters will be omitted from the end of string
  1433. * (after the start position has been calculated when a
  1434. * start is negative). If
  1435. * start denotes a position beyond this truncation,
  1436. * an empty string will be returned.
  1437. * </p>
  1438. * <p>
  1439. * If length is given and is 0,
  1440. * false or &null; an empty string will be returned.
  1441. * </p>
  1442. * <p>
  1443. * Example #2 Using a negative length
  1444. * </p>
  1445. * <pre>
  1446. * &lt;?php
  1447. * $rest = substr("abcdef", 0, -1); // returns "abcde"
  1448. * $rest = substr("abcdef", 2, -1); // returns "cde"
  1449. * $rest = substr("abcdef", 4, -4); // returns false
  1450. * $rest = substr("abcdef", -3, -1); // returns "de"
  1451. * ?&gt;
  1452. * </pre>
  1453. * @return string the extracted part of string&return.falseforfailure;.
  1454. */
  1455. function substr ($string, $start, $length = null) {}
  1456. /**
  1457. * Replace text within a portion of a string
  1458. * @link http://www.php.net/manual/en/function.substr-replace.php
  1459. * @param string mixed <p>
  1460. * The input string.
  1461. * </p>
  1462. * @param replacement string <p>
  1463. * The replacement string.
  1464. * </p>
  1465. * @param start int <p>
  1466. * If start is positive, the replacing will
  1467. * begin at the start'th offset into
  1468. * string.
  1469. * </p>
  1470. * <p>
  1471. * If start is negative, the replacing will
  1472. * begin at the start'th character from the
  1473. * end of string.
  1474. * </p>
  1475. * @param length int[optional] <p>
  1476. * If given and is positive, it represents the length of the portion of
  1477. * string which is to be replaced. If it is
  1478. * negative, it represents the number of characters from the end of
  1479. * string at which to stop replacing. If it
  1480. * is not given, then it will default to strlen(
  1481. * string ); i.e. end the replacing at the
  1482. * end of string. Of course, if
  1483. * length is zero then this function will have the
  1484. * effect of inserting replacement into
  1485. * string at the given
  1486. * start offset.
  1487. * </p>
  1488. * @return mixed The result string is returned. If string is an
  1489. * array then array is returned.
  1490. */
  1491. function substr_replace ($string, $replacement, $start, $length = null) {}
  1492. /**
  1493. * Quote meta characters
  1494. * @link http://www.php.net/manual/en/function.quotemeta.php
  1495. * @param str string <p>
  1496. * The input string.
  1497. * </p>
  1498. * @return string the string with meta characters quoted.
  1499. */
  1500. function quotemeta ($str) {}
  1501. /**
  1502. * Make a string's first character uppercase
  1503. * @link http://www.php.net/manual/en/function.ucfirst.php
  1504. * @param str string <p>
  1505. * The input string.
  1506. * </p>
  1507. * @return string the resulting string.
  1508. */
  1509. function ucfirst ($str) {}
  1510. /**
  1511. * Make a string's first character lowercase
  1512. * @link http://www.php.net/manual/en/function.lcfirst.php
  1513. * @param str string <p>
  1514. * The input string.
  1515. * </p>
  1516. * @return string the resulting string.
  1517. */
  1518. function lcfirst ($str) {}
  1519. /**
  1520. * Uppercase the first character of each word in a string
  1521. * @link http://www.php.net/manual/en/function.ucwords.php
  1522. * @param str string <p>
  1523. * The input string.
  1524. * </p>
  1525. * @return string the modified string.
  1526. */
  1527. function ucwords ($str) {}
  1528. /**
  1529. * Translate certain characters
  1530. * @link http://www.php.net/manual/en/function.strtr.php
  1531. * @param str string <p>
  1532. * The string being translated.
  1533. * </p>
  1534. * @param from string <p>
  1535. * The string being translated to to.
  1536. * </p>
  1537. * @param to string <p>
  1538. * The string replacing from.
  1539. * </p>
  1540. * @return string This function returns a copy of str,
  1541. * translating all occurrences of each character in
  1542. * from to the corresponding character in
  1543. * to.
  1544. */
  1545. function strtr ($str, $from, $to) {}
  1546. /**
  1547. * Quote string with slashes
  1548. * @link http://www.php.net/manual/en/function.addslashes.php
  1549. * @param str string <p>
  1550. * The string to be escaped.
  1551. * </p>
  1552. * @return string the escaped string.
  1553. */
  1554. function addslashes ($str) {}
  1555. /**
  1556. * Quote string with slashes in a C style
  1557. * @link http://www.php.net/manual/en/function.addcslashes.php
  1558. * @param str string <p>
  1559. * The string to be escaped.
  1560. * </p>
  1561. * @param charlist string <p>
  1562. * A list of characters to be escaped. If
  1563. * charlist contains characters
  1564. * \n, \r etc., they are
  1565. * converted in C-like style, while other non-alphanumeric characters
  1566. * with ASCII codes lower than 32 and higher than 126 converted to
  1567. * octal representation.
  1568. * </p>
  1569. * <p>
  1570. * When you define a sequence of characters in the charlist argument
  1571. * make sure that you know what characters come between the
  1572. * characters that you set as the start and end of the range.
  1573. * <pre>
  1574. * &lt;?php
  1575. * echo addcslashes('foo[ ]', 'A..z');
  1576. * // output: \f\o\o\[ \]
  1577. * // All upper and lower-case letters will be escaped
  1578. * // ... but so will the [\]^_`
  1579. * ?&gt;
  1580. * </pre>
  1581. * Also, if the first character in a range has a higher ASCII value
  1582. * than the second character in the range, no range will be
  1583. * constructed. Only the start, end and period characters will be
  1584. * escaped. Use the ord function to find the
  1585. * ASCII value for a character.
  1586. * </p>
  1587. * <pre>
  1588. * &lt;?php
  1589. * echo addcslashes("zoo['.']", 'z..A');
  1590. * // output: \zoo['\.']
  1591. * ?&gt;
  1592. * </pre>
  1593. * <p>
  1594. * Be careful if you choose to escape characters 0, a, b, f, n, r,
  1595. * t and v. They will be converted to \0, \a, \b, \f, \n, \r, \t
  1596. * and \v.
  1597. * In PHP \0 (NULL), \r (carriage return), \n (newline), \f (form feed),
  1598. * \v (vertical tab) and \t (tab) are predefined escape sequences,
  1599. * while in C all of these are predefined escape sequences.
  1600. * </p>
  1601. * @return string the escaped string.
  1602. */
  1603. function addcslashes ($str, $charlist) {}
  1604. /**
  1605. * Strip whitespace (or other characters) from the end of a string
  1606. * @link http://www.php.net/manual/en/function.rtrim.php
  1607. * @param str string <p>
  1608. * The input string.
  1609. * </p>
  1610. * @param charlist string[optional] <p>
  1611. * You can also specify the characters you want to strip, by means
  1612. * of the charlist parameter.
  1613. * Simply list all characters that you want to be stripped. With
  1614. * .. you can specify a range of characters.
  1615. * </p>
  1616. * @return string the modified string.
  1617. */
  1618. function rtrim ($str, $charlist = null) {}
  1619. /**
  1620. * Replace all occurrences of the search string with the replacement string
  1621. * @link http://www.php.net/manual/en/function.str-replace.php
  1622. * @param search mixed <p>
  1623. * The value being searched for, otherwise known as the needle.
  1624. * An array may be used to designate multiple needles.
  1625. * </p>
  1626. * @param replace mixed <p>
  1627. * The replacement value that replaces found search
  1628. * values. An array may be used to designate multiple replacements.
  1629. * </p>
  1630. * @param subject mixed <p>
  1631. * The string or array being searched and replaced on,
  1632. * otherwise known as the haystack.
  1633. * </p>
  1634. * <p>
  1635. * If subject is an array, then the search and
  1636. * replace is performed with every entry of
  1637. * subject, and the return value is an array as
  1638. * well.
  1639. * </p>
  1640. * @param count int[optional] If passed, this will hold the number of matched and replaced needles.
  1641. * @return mixed This function returns a string or an array with the replaced values.
  1642. */
  1643. function str_replace ($search, $replace, $subject, &$count = null) {}
  1644. /**
  1645. * Case-insensitive version of <function>str_replace</function>.
  1646. * @link http://www.php.net/manual/en/function.str-ireplace.php
  1647. * @param search mixed <p>
  1648. * Every replacement with search array is
  1649. * performed on the result of previous replacement.
  1650. * </p>
  1651. * @param replace mixed <p>
  1652. * </p>
  1653. * @param subject mixed <p>
  1654. * If subject is an array, then the search and
  1655. * replace is performed with every entry of
  1656. * subject, and the return value is an array as
  1657. * well.
  1658. * </p>
  1659. * @param count int[optional] <p>
  1660. * The number of matched and replaced needles will
  1661. * be returned in count which is passed by
  1662. * reference.
  1663. * </p>
  1664. * @return mixed a string or an array of replacements.
  1665. */
  1666. function str_ireplace ($search, $replace, $subject, &$count = null) {}
  1667. /**
  1668. * Repeat a string
  1669. * @link http://www.php.net/manual/en/function.str-repeat.php
  1670. * @param input string <p>
  1671. * The string to be repeated.
  1672. * </p>
  1673. * @param multiplier int <p>
  1674. * Number of time the input string should be
  1675. * repeated.
  1676. * </p>
  1677. * <p>
  1678. * multiplier has to be greater than or equal to 0.
  1679. * If the multiplier is set to 0, the function
  1680. * will return an empty string.
  1681. * </p>
  1682. * @return string the repeated string.
  1683. */
  1684. function str_repeat ($input, $multiplier) {}
  1685. /**
  1686. * Return information about characters used in a string
  1687. * @link http://www.php.net/manual/en/function.count-chars.php
  1688. * @param string string <p>
  1689. * The examined string.
  1690. * </p>
  1691. * @param mode int[optional] <p>
  1692. * See return values.
  1693. * </p>
  1694. * @return mixed Depending on mode
  1695. * count_chars returns one of the following:
  1696. * 0 - an array with the byte-value as key and the frequency of
  1697. * every byte as value.
  1698. * 1 - same as 0 but only byte-values with a frequency greater
  1699. * than zero are listed.
  1700. * 2 - same as 0 but only byte-values with a frequency equal to
  1701. * zero are listed.
  1702. * 3 - a string containing all unique characters is returned.
  1703. * 4 - a string containing all not used characters is returned.
  1704. */
  1705. function count_chars ($string, $mode = null) {}
  1706. /**
  1707. * Split a string into smaller chunks
  1708. * @link http://www.php.net/manual/en/function.chunk-split.php
  1709. * @param body string <p>
  1710. * The string to be chunked.
  1711. * </p>
  1712. * @param chunklen int[optional] <p>
  1713. * The chunk length.
  1714. * </p>
  1715. * @param end string[optional] <p>
  1716. * The line ending sequence.
  1717. * </p>
  1718. * @return string the chunked string.
  1719. */
  1720. function chunk_split ($body, $chunklen = null, $end = null) {}
  1721. /**
  1722. * Strip whitespace (or other characters) from the beginning and end of a string
  1723. * @link http://www.php.net/manual/en/function.trim.php
  1724. * @param str string <p>
  1725. * The string that will be trimmed.
  1726. * </p>
  1727. * @param charlist string[optional] <p>
  1728. * Optionally, the stripped characters can also be specified using
  1729. * the charlist parameter.
  1730. * Simply list all characters that you want to be stripped. With
  1731. * .. you can specify a range of characters.
  1732. * </p>
  1733. * @return string The trimmed string.
  1734. */
  1735. function trim ($str, $charlist = null) {}
  1736. /**
  1737. * Strip whitespace (or other characters) from the beginning of a string
  1738. * @link http://www.php.net/manual/en/function.ltrim.php
  1739. * @param str string <p>
  1740. * The input string.
  1741. * </p>
  1742. * @param charlist string[optional] <p>
  1743. * You can also specify the characters you want to strip, by means of the
  1744. * charlist parameter.
  1745. * Simply list all characters that you want to be stripped. With
  1746. * .. you can specify a range of characters.
  1747. * </p>
  1748. * @return string This function returns a string with whitespace stripped from the
  1749. * beginning of str.
  1750. * Without the second parameter,
  1751. * ltrim will strip these characters:
  1752. * " " (ASCII 32
  1753. * (0x20)), an ordinary space.
  1754. * "\t" (ASCII 9
  1755. * (0x09)), a tab.
  1756. * "\n" (ASCII 10
  1757. * (0x0A)), a new line (line feed).
  1758. * "\r" (ASCII 13
  1759. * (0x0D)), a carriage return.
  1760. * "\0" (ASCII 0
  1761. * (0x00)), the NUL-byte.
  1762. * "\x0B" (ASCII 11
  1763. * (0x0B)), a vertical tab.
  1764. */
  1765. function ltrim ($str, $charlist = null) {}
  1766. /**
  1767. * Strip HTML and PHP tags from a string
  1768. * @link http://www.php.net/manual/en/function.strip-tags.php
  1769. * @param str string <p>
  1770. * The input string.
  1771. * </p>
  1772. * @param allowable_tags string[optional] <p>
  1773. * You can use the optional second parameter to specify tags which should
  1774. * not be stripped.
  1775. * </p>
  1776. * <p>
  1777. * HTML comments and PHP tags are also stripped. This is hardcoded and
  1778. * can not be changed with allowable_tags.
  1779. * </p>
  1780. * @return string the stripped string.
  1781. */
  1782. function strip_tags ($str, $allowable_tags = null) {}
  1783. /**
  1784. * Calculate the similarity between two strings
  1785. * @link http://www.php.net/manual/en/function.similar-text.php
  1786. * @param first string <p>
  1787. * The first string.
  1788. * </p>
  1789. * @param second string <p>
  1790. * The second string.
  1791. * </p>
  1792. * @param percent float[optional] <p>
  1793. * By passing a reference as third argument,
  1794. * similar_text will calculate the similarity in
  1795. * percent for you.
  1796. * </p>
  1797. * @return int the number of matching chars in both strings.
  1798. */
  1799. function similar_text ($first, $second, &$percent = null) {}
  1800. /**
  1801. * Split a string by string
  1802. * @link http://www.php.net/manual/en/function.explode.php
  1803. * @param delimiter string <p>
  1804. * The boundary string.
  1805. * </p>
  1806. * @param string string <p>
  1807. * The input string.
  1808. * </p>
  1809. * @param limit int[optional] <p>
  1810. * If limit is set and positive, the returned array will contain
  1811. * a maximum of limit elements with the last
  1812. * element containing the rest of string.
  1813. * </p>
  1814. * <p>
  1815. * If the limit parameter is negative, all components
  1816. * except the last -limit are returned.
  1817. * </p>
  1818. * <p>
  1819. * If the limit parameter is zero, then this is treated as 1.
  1820. * </p>
  1821. * @return array If delimiter is an empty string (""),
  1822. * explode will return false.
  1823. * If delimiter contains a value that is not
  1824. * contained in string and a negative
  1825. * limit is used, then an empty array will be
  1826. * returned. For any other limit, an array containing
  1827. * string will be returned.
  1828. */
  1829. function explode ($delimiter, $string, $limit = null) {}
  1830. /**
  1831. * Join array elements with a string
  1832. * @link http://www.php.net/manual/en/function.implode.php
  1833. * @param glue string <p>
  1834. * Defaults to an empty string. This is not the preferred usage of
  1835. * implode as glue would be
  1836. * the second parameter and thus, the bad prototype would be used.
  1837. * </p>
  1838. * @param pieces array <p>
  1839. * The array of strings to implode.
  1840. * </p>
  1841. * @return string a string containing a string representation of all the array
  1842. * elements in the same order, with the glue string between each element.
  1843. */
  1844. function implode ($glue, array $pieces) {}
  1845. /**
  1846. * &Alias; <function>implode</function>
  1847. * @link http://www.php.net/manual/en/function.join.php
  1848. * @param glue
  1849. * @param pieces
  1850. */
  1851. function join ($glue, $pieces) {}
  1852. /**
  1853. * Set locale information
  1854. * @link http://www.php.net/manual/en/function.setlocale.php
  1855. * @param category int <p>
  1856. * category is a named constant specifying the
  1857. * category of the functions affected by the locale setting:
  1858. * LC_ALL for all of the below
  1859. * @param locale string <p>
  1860. * If locale is &null; or the empty string
  1861. * "", the locale names will be set from the
  1862. * values of environment variables with the same names as the above
  1863. * categories, or from "LANG".
  1864. * </p>
  1865. * <p>
  1866. * If locale is "0",
  1867. * the locale setting is not affected, only the current setting is returned.
  1868. * </p>
  1869. * <p>
  1870. * If locale is an array or followed by additional
  1871. * parameters then each array element or parameter is tried to be set as
  1872. * new locale until success. This is useful if a locale is known under
  1873. * different names on different systems or for providing a fallback
  1874. * for a possibly not available locale.
  1875. * </p>
  1876. * @param _ string[optional]
  1877. * @return string the new current locale, or false if the locale functionality is
  1878. * not implemented on your platform, the specified locale does not exist or
  1879. * the category name is invalid.
  1880. * </p>
  1881. * <p>
  1882. * An invalid category name also causes a warning message. Category/locale
  1883. * names can be found in RFC 1766
  1884. * and ISO 639.
  1885. * Different systems have different naming schemes for locales.
  1886. * </p>
  1887. * <p>
  1888. * The return value of setlocale depends
  1889. * on the system that PHP is running. It returns exactly
  1890. * what the system setlocale function returns.
  1891. */
  1892. function setlocale ($category, $locale, $_ = null) {}
  1893. /**
  1894. * Get numeric formatting information
  1895. * @link http://www.php.net/manual/en/function.localeconv.php
  1896. * @return array localeconv returns data based upon the current locale
  1897. * as set by setlocale. The associative array that is
  1898. * returned contains the following fields:
  1899. * <tr valign="top">
  1900. * <td>Array element</td>
  1901. * <td>Description</td>
  1902. * </tr>
  1903. * <tr valign="top">
  1904. * <td>decimal_point</td>
  1905. * <td>Decimal point character</td>
  1906. * </tr>
  1907. * <tr valign="top">
  1908. * <td>thousands_sep</td>
  1909. * <td>Thousands separator</td>
  1910. * </tr>
  1911. * <tr valign="top">
  1912. * <td>grouping</td>
  1913. * <td>Array containing numeric groupings</td>
  1914. * </tr>
  1915. * <tr valign="top">
  1916. * <td>int_curr_symbol</td>
  1917. * <td>International currency symbol (i.e. USD)</td>
  1918. * </tr>
  1919. * <tr valign="top">
  1920. * <td>currency_symbol</td>
  1921. * <td>Local currency symbol (i.e. $)</td>
  1922. * </tr>
  1923. * <tr valign="top">
  1924. * <td>mon_decimal_point</td>
  1925. * <td>Monetary decimal point character</td>
  1926. * </tr>
  1927. * <tr valign="top">
  1928. * <td>mon_thousands_sep</td>
  1929. * <td>Monetary thousands separator</td>
  1930. * </tr>
  1931. * <tr valign="top">
  1932. * <td>mon_grouping</td>
  1933. * <td>Array containing monetary groupings</td>
  1934. * </tr>
  1935. * <tr valign="top">
  1936. * <td>positive_sign</td>
  1937. * <td>Sign for positive values</td>
  1938. * </tr>
  1939. * <tr valign="top">
  1940. * <td>negative_sign</td>
  1941. * <td>Sign for negative values</td>
  1942. * </tr>
  1943. * <tr valign="top">
  1944. * <td>int_frac_digits</td>
  1945. * <td>International fractional digits</td>
  1946. * </tr>
  1947. * <tr valign="top">
  1948. * <td>frac_digits</td>
  1949. * <td>Local fractional digits</td>
  1950. * </tr>
  1951. * <tr valign="top">
  1952. * <td>p_cs_precedes</td>
  1953. * <td>
  1954. * true if currency_symbol precedes a positive value, false
  1955. * if it succeeds one
  1956. * </td>
  1957. * </tr>
  1958. * <tr valign="top">
  1959. * <td>p_sep_by_space</td>
  1960. * <td>
  1961. * true if a space separates currency_symbol from a positive
  1962. * value, false otherwise
  1963. * </td>
  1964. * </tr>
  1965. * <tr valign="top">
  1966. * <td>n_cs_precedes</td>
  1967. * <td>
  1968. * true if currency_symbol precedes a negative value, false
  1969. * if it succeeds one
  1970. * </td>
  1971. * </tr>
  1972. * <tr valign="top">
  1973. * <td>n_sep_by_space</td>
  1974. * <td>
  1975. * true if a space separates currency_symbol from a negative
  1976. * value, false otherwise
  1977. * </td>
  1978. * </tr>
  1979. * <td>p_sign_posn</td>
  1980. * <td>
  1981. * 0 - Parentheses surround the quantity and currency_symbol
  1982. * 1 - The sign string precedes the quantity and currency_symbol
  1983. * 2 - The sign string succeeds the quantity and currency_symbol
  1984. * 3 - The sign string immediately precedes the currency_symbol
  1985. * 4 - The sign string immediately succeeds the currency_symbol
  1986. * </td>
  1987. * </tr>
  1988. * <td>n_sign_posn</td>
  1989. * <td>
  1990. * 0 - Parentheses surround the quantity and currency_symbol
  1991. * 1 - The sign string precedes the quantity and currency_symbol
  1992. * 2 - The sign string succeeds the quantity and currency_symbol
  1993. * 3 - The sign string immediately precedes the currency_symbol
  1994. * 4 - The sign string immediately succeeds the currency_symbol
  1995. * </td>
  1996. * </tr>
  1997. * </p>
  1998. * <p>
  1999. * The p_sign_posn, and n_sign_posn contain a string
  2000. * of formatting options. Each number representing one of the above listed conditions.
  2001. * </p>
  2002. * <p>
  2003. * The grouping fields contain arrays that define the way numbers should be
  2004. * grouped. For example, the monetary grouping field for the nl_NL locale (in
  2005. * UTF-8 mode with the euro sign), would contain a 2 item array with the
  2006. * values 3 and 3. The higher the index in the array, the farther left the
  2007. * grouping is. If an array element is equal to CHAR_MAX,
  2008. * no further grouping is done. If an array element is equal to 0, the previous
  2009. * element should be used.
  2010. */
  2011. function localeconv () {}
  2012. /**
  2013. * Query language and locale information
  2014. * @link http://www.php.net/manual/en/function.nl-langinfo.php
  2015. * @param item int <p>
  2016. * item may be an integer value of the element or the
  2017. * constant name of the element. The following is a list of constant names
  2018. * for item that may be used and their description.
  2019. * Some of these constants may not be defined or hold no value for certain
  2020. * locales.
  2021. * <table>
  2022. * nl_langinfo Constants
  2023. * <tr valign="top">
  2024. * <td>Constant</td>
  2025. * <td>Description</td>
  2026. * </tr>
  2027. * <tr valign="top">
  2028. * LC_TIME Category Constants</td>
  2029. * </tr>
  2030. * <tr valign="top">
  2031. * <td>ABDAY_(1-7)</td>
  2032. * <td>Abbreviated name of n-th day of the week.</td>
  2033. * </tr>
  2034. * <tr valign="top">
  2035. * <td>DAY_(1-7)</td>
  2036. * <td>Name of the n-th day of the week (DAY_1 = Sunday).</td>
  2037. * </tr>
  2038. * <tr valign="top">
  2039. * <td>ABMON_(1-12)</td>
  2040. * <td>Abbreviated name of the n-th month of the year.</td>
  2041. * </tr>
  2042. * <tr valign="top">
  2043. * <td>MON_(1-12)</td>
  2044. * <td>Name of the n-th month of the year.</td>
  2045. * </tr>
  2046. * <tr valign="top">
  2047. * <td>AM_STR</td>
  2048. * <td>String for Ante meridian.</td>
  2049. * </tr>
  2050. * <tr valign="top">
  2051. * <td>PM_STR</td>
  2052. * <td>String for Post meridian.</td>
  2053. * </tr>
  2054. * <tr valign="top">
  2055. * <td>D_T_FMT</td>
  2056. * <td>String that can be used as the format string for strftime to represent time and date.</td>
  2057. * </tr>
  2058. * <tr valign="top">
  2059. * <td>D_FMT</td>
  2060. * <td>String that can be used as the format string for strftime to represent date.</td>
  2061. * </tr>
  2062. * <tr valign="top">
  2063. * <td>T_FMT</td>
  2064. * <td>String that can be used as the format string for strftime to represent time.</td>
  2065. * </tr>
  2066. * <tr valign="top">
  2067. * <td>T_FMT_AMPM</td>
  2068. * <td>String that can be used as the format string for strftime to represent time in 12-hour format with ante/post meridian.</td>
  2069. * </tr>
  2070. * <tr valign="top">
  2071. * <td>ERA</td>
  2072. * <td>Alternate era.</td>
  2073. * </tr>
  2074. * <tr valign="top">
  2075. * <td>ERA_YEAR</td>
  2076. * <td>Year in alternate era format.</td>
  2077. * </tr>
  2078. * <tr valign="top">
  2079. * <td>ERA_D_T_FMT</td>
  2080. * <td>Date and time in alternate era format (string can be used in strftime).</td>
  2081. * </tr>
  2082. * <tr valign="top">
  2083. * <td>ERA_D_FMT</td>
  2084. * <td>Date in alternate era format (string can be used in strftime).</td>
  2085. * </tr>
  2086. * <tr valign="top">
  2087. * <td>ERA_T_FMT</td>
  2088. * <td>Time in alternate era format (string can be used in strftime).</td>
  2089. * </tr>
  2090. * <tr valign="top">
  2091. * LC_MONETARY Category Constants</td>
  2092. * </tr>
  2093. * <tr valign="top">
  2094. * <td>INT_CURR_SYMBOL</td>
  2095. * <td>International currency symbol.</td>
  2096. * </tr>
  2097. * <tr valign="top">
  2098. * <td>CURRENCY_SYMBOL</td>
  2099. * <td>Local currency symbol.</td>
  2100. * </tr>
  2101. * <tr valign="top">
  2102. * <td>CRNCYSTR</td>
  2103. * <td>Same value as CURRENCY_SYMBOL.</td>
  2104. * </tr>
  2105. * <tr valign="top">
  2106. * <td>MON_DECIMAL_POINT</td>
  2107. * <td>Decimal point character.</td>
  2108. * </tr>
  2109. * <tr valign="top">
  2110. * <td>MON_THOUSANDS_SEP</td>
  2111. * <td>Thousands separator (groups of three digits).</td>
  2112. * </tr>
  2113. * <tr valign="top">
  2114. * <td>MON_GROUPING</td>
  2115. * <td>Like "grouping" element.</td>
  2116. * </tr>
  2117. * <tr valign="top">
  2118. * <td>POSITIVE_SIGN</td>
  2119. * <td>Sign for positive values.</td>
  2120. * </tr>
  2121. * <tr valign="top">
  2122. * <td>NEGATIVE_SIGN</td>
  2123. * <td>Sign for negative values.</td>
  2124. * </tr>
  2125. * <tr valign="top">
  2126. * <td>INT_FRAC_DIGITS</td>
  2127. * <td>International fractional digits.</td>
  2128. * </tr>
  2129. * <tr valign="top">
  2130. * <td>FRAC_DIGITS</td>
  2131. * <td>Local fractional digits.</td>
  2132. * </tr>
  2133. * <tr valign="top">
  2134. * <td>P_CS_PRECEDES</td>
  2135. * <td>Returns 1 if CURRENCY_SYMBOL precedes a positive value.</td>
  2136. * </tr>
  2137. * <tr valign="top">
  2138. * <td>P_SEP_BY_SPACE</td>
  2139. * <td>Returns 1 if a space separates CURRENCY_SYMBOL from a positive value.</td>
  2140. * </tr>
  2141. * <tr valign="top">
  2142. * <td>N_CS_PRECEDES</td>
  2143. * <td>Returns 1 if CURRENCY_SYMBOL precedes a negative value.</td>
  2144. * </tr>
  2145. * <tr valign="top">
  2146. * <td>N_SEP_BY_SPACE</td>
  2147. * <td>Returns 1 if a space separates CURRENCY_SYMBOL from a negative value.</td>
  2148. * </tr>
  2149. * <tr valign="top">
  2150. * <td>P_SIGN_POSN</td>
  2151. * Returns 0 if parentheses surround the quantity and CURRENCY_SYMBOL.
  2152. * @return string the element as a string, or false if item
  2153. * is not valid.
  2154. */
  2155. function nl_langinfo ($item) {}
  2156. /**
  2157. * Calculate the soundex key of a string
  2158. * @link http://www.php.net/manual/en/function.soundex.php
  2159. * @param str string <p>
  2160. * The input string.
  2161. * </p>
  2162. * @return string the soundex key as a string.
  2163. */
  2164. function soundex ($str) {}
  2165. /**
  2166. * Calculate Levenshtein distance between two strings
  2167. * @link http://www.php.net/manual/en/function.levenshtein.php
  2168. * @param str1 string <p>
  2169. * One of the strings being evaluated for Levenshtein distance.
  2170. * </p>
  2171. * @param str2 string <p>
  2172. * One of the strings being evaluated for Levenshtein distance.
  2173. * </p>
  2174. * @return int This function returns the Levenshtein-Distance between the
  2175. * two argument strings or -1, if one of the argument strings
  2176. * is longer than the limit of 255 characters.
  2177. */
  2178. function levenshtein ($str1, $str2) {}
  2179. /**
  2180. * Return a specific character
  2181. * @link http://www.php.net/manual/en/function.chr.php
  2182. * @param ascii int <p>
  2183. * The ascii code.
  2184. * </p>
  2185. * @return string the specified character.
  2186. */
  2187. function chr ($ascii) {}
  2188. /**
  2189. * Return ASCII value of character
  2190. * @link http://www.php.net/manual/en/function.ord.php
  2191. * @param string string <p>
  2192. * A character.
  2193. * </p>
  2194. * @return int the ASCII value as an integer.
  2195. */
  2196. function ord ($string) {}
  2197. /**
  2198. * Parses the string into variables
  2199. * @link http://www.php.net/manual/en/function.parse-str.php
  2200. * @param str string <p>
  2201. * The input string.
  2202. * </p>
  2203. * @param arr array[optional] <p>
  2204. * If the second parameter arr is present,
  2205. * variables are stored in this variable as array elements instead.
  2206. * </p>
  2207. * @return void
  2208. */
  2209. function parse_str ($str, array &$arr = null) {}
  2210. /**
  2211. * Parse a CSV string into an array
  2212. * @link http://www.php.net/manual/en/function.str-getcsv.php
  2213. * @param input string <p>
  2214. * The string to parse.
  2215. * </p>
  2216. * @param delimiter string[optional] <p>
  2217. * Set the field delimiter (one character only).
  2218. * </p>
  2219. * @param enclosure string[optional] <p>
  2220. * Set the field enclosure character (one character only).
  2221. * </p>
  2222. * @param escape string[optional] <p>
  2223. * Set the escape character (one character only). Defaults as a backslash
  2224. * (\)
  2225. * </p>
  2226. * @return array an indexed array containing the fields read.
  2227. */
  2228. function str_getcsv ($input, $delimiter = null, $enclosure = null, $escape = null) {}
  2229. /**
  2230. * Pad a string to a certain length with another string
  2231. * @link http://www.php.net/manual/en/function.str-pad.php
  2232. * @param input string <p>
  2233. * The input string.
  2234. * </p>
  2235. * @param pad_length int <p>
  2236. * If the value of pad_length is negative,
  2237. * less than, or equal to the length of the input string, no padding
  2238. * takes place.
  2239. * </p>
  2240. * @param pad_string string[optional] <p>
  2241. * The pad_string may be truncated if the
  2242. * required number of padding characters can't be evenly divided by the
  2243. * pad_string's length.
  2244. * </p>
  2245. * @param pad_type int[optional] <p>
  2246. * Optional argument pad_type can be
  2247. * STR_PAD_RIGHT, STR_PAD_LEFT,
  2248. * or STR_PAD_BOTH. If
  2249. * pad_type is not specified it is assumed to be
  2250. * STR_PAD_RIGHT.
  2251. * </p>
  2252. * @return string the padded string.
  2253. */
  2254. function str_pad ($input, $pad_length, $pad_string = null, $pad_type = null) {}
  2255. /**
  2256. * &Alias; <function>rtrim</function>
  2257. * @link http://www.php.net/manual/en/function.chop.php
  2258. * @param str
  2259. * @param character_mask[optional]
  2260. */
  2261. function chop ($str, $character_mask) {}
  2262. /**
  2263. * &Alias; <function>strstr</function>
  2264. * @link http://www.php.net/manual/en/function.strchr.php
  2265. * @param haystack
  2266. * @param needle
  2267. * @param part[optional]
  2268. */
  2269. function strchr ($haystack, $needle, $part) {}
  2270. /**
  2271. * Return a formatted string
  2272. * @link http://www.php.net/manual/en/function.sprintf.php
  2273. * @param format string <p>
  2274. * The format string is composed of zero or more directives:
  2275. * ordinary characters (excluding %) that are
  2276. * copied directly to the result, and conversion
  2277. * specifications, each of which results in fetching its
  2278. * own parameter. This applies to both sprintf
  2279. * and printf.
  2280. * </p>
  2281. * <p>
  2282. * Each conversion specification consists of a percent sign
  2283. * (%), followed by one or more of these
  2284. * elements, in order:
  2285. * An optional sign specifier that forces a sign
  2286. * (- or +) to be used on a number. By default, only the - sign is used
  2287. * on a number if it's negative. This specifier forces positive numbers
  2288. * to have the + sign attached as well, and was added in PHP 4.3.0.
  2289. * @param args mixed[optional] <p>
  2290. * </p>
  2291. * @param _ mixed[optional]
  2292. * @return string a string produced according to the formatting string
  2293. * format.
  2294. */
  2295. function sprintf ($format, $args = null, $_ = null) {}
  2296. /**
  2297. * Output a formatted string
  2298. * @link http://www.php.net/manual/en/function.printf.php
  2299. * @param format string <p>
  2300. * See sprintf for a description of
  2301. * format.
  2302. * </p>
  2303. * @param args mixed[optional] <p>
  2304. * </p>
  2305. * @param _ mixed[optional]
  2306. * @return int the length of the outputted string.
  2307. */
  2308. function printf ($format, $args = null, $_ = null) {}
  2309. /**
  2310. * Output a formatted string
  2311. * @link http://www.php.net/manual/en/function.vprintf.php
  2312. * @param format string <p>
  2313. * See sprintf for a description of
  2314. * format.
  2315. * </p>
  2316. * @param args array <p>
  2317. * </p>
  2318. * @return int the length of the outputted string.
  2319. */
  2320. function vprintf ($format, array $args) {}
  2321. /**
  2322. * Return a formatted string
  2323. * @link http://www.php.net/manual/en/function.vsprintf.php
  2324. * @param format string <p>
  2325. * See sprintf for a description of
  2326. * format.
  2327. * </p>
  2328. * @param args array <p>
  2329. * </p>
  2330. * @return string Return array values as a formatted string according to
  2331. * format (which is described in the documentation
  2332. * for sprintf).
  2333. */
  2334. function vsprintf ($format, array $args) {}
  2335. /**
  2336. * Write a formatted string to a stream
  2337. * @link http://www.php.net/manual/en/function.fprintf.php
  2338. * @param handle resource &fs.file.pointer;
  2339. * @param format string <p>
  2340. * See sprintf for a description of
  2341. * format.
  2342. * </p>
  2343. * @param args mixed[optional] <p>
  2344. * </p>
  2345. * @param _ mixed[optional]
  2346. * @return int the length of the string written.
  2347. */
  2348. function fprintf ($handle, $format, $args = null, $_ = null) {}
  2349. /**
  2350. * Write a formatted string to a stream
  2351. * @link http://www.php.net/manual/en/function.vfprintf.php
  2352. * @param handle resource <p>
  2353. * </p>
  2354. * @param format string <p>
  2355. * See sprintf for a description of
  2356. * format.
  2357. * </p>
  2358. * @param args array <p>
  2359. * </p>
  2360. * @return int the length of the outputted string.
  2361. */
  2362. function vfprintf ($handle, $format, array $args) {}
  2363. /**
  2364. * Parses input from a string according to a format
  2365. * @link http://www.php.net/manual/en/function.sscanf.php
  2366. * @param str string <p>
  2367. * The input string being parsed.
  2368. * </p>
  2369. * @param format string <p>
  2370. * The interpreted format for str, which is
  2371. * described in the documentation for sprintf with
  2372. * following differences:
  2373. * Function is not locale-aware.
  2374. * F, g, G and
  2375. * b are not supported.
  2376. * D stands for decimal number.
  2377. * i stands for integer with base detection.
  2378. * n stands for number of characters processed so far.
  2379. * </p>
  2380. * @param _ mixed[optional]
  2381. * @return mixed If only
  2382. * two parameters were passed to this function, the values parsed
  2383. * will be returned as an array. Otherwise, if optional parameters are passed,
  2384. * the function will return the number of assigned values. The optional
  2385. * parameters must be passed by reference.
  2386. */
  2387. function sscanf ($str, $format, &$_ = null) {}
  2388. /**
  2389. * Parses input from a file according to a format
  2390. * @link http://www.php.net/manual/en/function.fscanf.php
  2391. * @param handle resource &fs.file.pointer;
  2392. * @param format string <p>
  2393. * The specified format as described in the
  2394. * sprintf documentation.
  2395. * </p>
  2396. * @param _ mixed[optional]
  2397. * @return mixed If only two parameters were passed to this function, the values parsed will be
  2398. * returned as an array. Otherwise, if optional parameters are passed, the
  2399. * function will return the number of assigned values. The optional
  2400. * parameters must be passed by reference.
  2401. */
  2402. function fscanf ($handle, $format, &$_ = null) {}
  2403. /**
  2404. * Parse a URL and return its components
  2405. * @link http://www.php.net/manual/en/function.parse-url.php
  2406. * @param url string <p>
  2407. * The URL to parse. Invalid characters are replaced by
  2408. * _.
  2409. * </p>
  2410. * @param component int[optional] <p>
  2411. * Specify one of PHP_URL_SCHEME,
  2412. * PHP_URL_HOST, PHP_URL_PORT,
  2413. * PHP_URL_USER, PHP_URL_PASS,
  2414. * PHP_URL_PATH, PHP_URL_QUERY
  2415. * or PHP_URL_FRAGMENT to retrieve just a specific
  2416. * URL component as a string.
  2417. * </p>
  2418. * @return mixed On seriously malformed URLs, parse_url may return
  2419. * false and emit a E_WARNING. Otherwise an associative
  2420. * array is returned, whose components may be (at least one):
  2421. * scheme - e.g. http
  2422. * host
  2423. * port
  2424. * user
  2425. * pass
  2426. * path
  2427. * query - after the question mark ?
  2428. * fragment - after the hashmark #
  2429. * </p>
  2430. * <p>
  2431. * If the component parameter is specified a
  2432. * string is returned instead of an array.
  2433. */
  2434. function parse_url ($url, $component = null) {}
  2435. /**
  2436. * URL-encodes string
  2437. * @link http://www.php.net/manual/en/function.urlencode.php
  2438. * @param str string <p>
  2439. * The string to be encoded.
  2440. * </p>
  2441. * @return string a string in which all non-alphanumeric characters except
  2442. * -_. have been replaced with a percent
  2443. * (%) sign followed by two hex digits and spaces encoded
  2444. * as plus (+) signs. It is encoded the same way that the
  2445. * posted data from a WWW form is encoded, that is the same way as in
  2446. * application/x-www-form-urlencoded media type. This
  2447. * differs from the RFC 1738 encoding (see
  2448. * rawurlencode) in that for historical reasons, spaces
  2449. * are encoded as plus (+) signs.
  2450. */
  2451. function urlencode ($str) {}
  2452. /**
  2453. * Decodes URL-encoded string
  2454. * @link http://www.php.net/manual/en/function.urldecode.php
  2455. * @param str string <p>
  2456. * The string to be decoded.
  2457. * </p>
  2458. * @return string the decoded string.
  2459. */
  2460. function urldecode ($str) {}
  2461. /**
  2462. * URL-encode according to RFC 1738
  2463. * @link http://www.php.net/manual/en/function.rawurlencode.php
  2464. * @param str string <p>
  2465. * The URL to be encoded.
  2466. * </p>
  2467. * @return string a string in which all non-alphanumeric characters except
  2468. * -_. have been replaced with a percent
  2469. * (%) sign followed by two hex digits. This is the
  2470. * encoding described in RFC 1738 for
  2471. * protecting literal characters from being interpreted as special URL
  2472. * delimiters, and for protecting URLs from being mangled by transmission
  2473. * media with character conversions (like some email systems).
  2474. */
  2475. function rawurlencode ($str) {}
  2476. /**
  2477. * Decode URL-encoded strings
  2478. * @link http://www.php.net/manual/en/function.rawurldecode.php
  2479. * @param str string <p>
  2480. * The URL to be decoded.
  2481. * </p>
  2482. * @return string the decoded URL, as a string.
  2483. */
  2484. function rawurldecode ($str) {}
  2485. /**
  2486. * Generate URL-encoded query string
  2487. * @link http://www.php.net/manual/en/function.http-build-query.php
  2488. * @param formdata array <p>
  2489. * May be an array or object containing properties.
  2490. * </p>
  2491. * <p>
  2492. * The array form may be a simple one-dimensional structure, or an array
  2493. * of arrays (who in turn may contain other arrays).
  2494. * </p>
  2495. * @param numeric_prefix string[optional] <p>
  2496. * If numeric indices are used in the base array and this parameter is
  2497. * provided, it will be prepended to the numeric index for elements in
  2498. * the base array only.
  2499. * </p>
  2500. * <p>
  2501. * This is meant to allow for legal variable names when the data is
  2502. * decoded by PHP or another CGI application later on.
  2503. * </p>
  2504. * @param arg_separator string[optional] <p>
  2505. * arg_separator.output
  2506. * is used to separate arguments, unless this parameter is specified,
  2507. * and is then used.
  2508. * </p>
  2509. * @return string a URL-encoded string.
  2510. */
  2511. function http_build_query (array $formdata, $numeric_prefix = null, $arg_separator = null) {}
  2512. /**
  2513. * Returns the target of a symbolic link
  2514. * @link http://www.php.net/manual/en/function.readlink.php
  2515. * @param path string <p>
  2516. * The symbolic link path.
  2517. * </p>
  2518. * @return string the contents of the symbolic link path or false on error.
  2519. */
  2520. function readlink ($path) {}
  2521. /**
  2522. * Gets information about a link
  2523. * @link http://www.php.net/manual/en/function.linkinfo.php
  2524. * @param path string <p>
  2525. * Path to the link.
  2526. * </p>
  2527. * @return int linkinfo returns the st_dev field
  2528. * of the Unix C stat structure returned by the lstat
  2529. * system call. Returns 0 or false in case of error.
  2530. */
  2531. function linkinfo ($path) {}
  2532. /**
  2533. * @param target
  2534. * @param link
  2535. */
  2536. function symlink ($target, $link) {}
  2537. /**
  2538. * Create a hard link
  2539. * @link http://www.php.net/manual/en/function.link.php
  2540. * @param from_path string <p>
  2541. * The link name.
  2542. * </p>
  2543. * @param to_path string <p>
  2544. * Target of the link.
  2545. * </p>
  2546. * @return bool Returns true on success or false on failure.
  2547. */
  2548. function link ($from_path, $to_path) {}
  2549. /**
  2550. * Deletes a file
  2551. * @link http://www.php.net/manual/en/function.unlink.php
  2552. * @param filename string <p>
  2553. * Path to the file.
  2554. * </p>
  2555. * @param context resource[optional] &note.context-support;
  2556. * @return bool Returns true on success or false on failure.
  2557. */
  2558. function unlink ($filename, $context = null) {}
  2559. /**
  2560. * Execute an external program
  2561. * @link http://www.php.net/manual/en/function.exec.php
  2562. * @param command string <p>
  2563. * The command that will be executed.
  2564. * </p>
  2565. * @param output array[optional] <p>
  2566. * If the output argument is present, then the
  2567. * specified array will be filled with every line of output from the
  2568. * command. Trailing whitespace, such as \n, is not
  2569. * included in this array. Note that if the array already contains some
  2570. * elements, exec will append to the end of the array.
  2571. * If you do not want the function to append elements, call
  2572. * unset on the array before passing it to
  2573. * exec.
  2574. * </p>
  2575. * @param return_var int[optional] <p>
  2576. * If the return_var argument is present
  2577. * along with the output argument, then the
  2578. * return status of the executed command will be written to this
  2579. * variable.
  2580. * </p>
  2581. * @return string The last line from the result of the command. If you need to execute a
  2582. * command and have all the data from the command passed directly back without
  2583. * any interference, use the passthru function.
  2584. * </p>
  2585. * <p>
  2586. * To get the output of the executed command, be sure to set and use the
  2587. * output parameter.
  2588. */
  2589. function exec ($command, array &$output = null, &$return_var = null) {}
  2590. /**
  2591. * Execute an external program and display the output
  2592. * @link http://www.php.net/manual/en/function.system.php
  2593. * @param command string <p>
  2594. * The command that will be executed.
  2595. * </p>
  2596. * @param return_var int[optional] <p>
  2597. * If the return_var argument is present, then the
  2598. * return status of the executed command will be written to this
  2599. * variable.
  2600. * </p>
  2601. * @return string the last line of the command output on success, and false
  2602. * on failure.
  2603. */
  2604. function system ($command, &$return_var = null) {}
  2605. /**
  2606. * Escape shell metacharacters
  2607. * @link http://www.php.net/manual/en/function.escapeshellcmd.php
  2608. * @param command string <p>
  2609. * The command that will be escaped.
  2610. * </p>
  2611. * @return string The escaped string.
  2612. */
  2613. function escapeshellcmd ($command) {}
  2614. /**
  2615. * Escape a string to be used as a shell argument
  2616. * @link http://www.php.net/manual/en/function.escapeshellarg.php
  2617. * @param arg string <p>
  2618. * The argument that will be escaped.
  2619. * </p>
  2620. * @return string The escaped string.
  2621. */
  2622. function escapeshellarg ($arg) {}
  2623. /**
  2624. * Execute an external program and display raw output
  2625. * @link http://www.php.net/manual/en/function.passthru.php
  2626. * @param command string <p>
  2627. * The command that will be executed.
  2628. * </p>
  2629. * @param return_var int[optional] <p>
  2630. * If the return_var argument is present, the
  2631. * return status of the Unix command will be placed here.
  2632. * </p>
  2633. * @return void
  2634. */
  2635. function passthru ($command, &$return_var = null) {}
  2636. /**
  2637. * Execute command via shell and return the complete output as a string
  2638. * @link http://www.php.net/manual/en/function.shell-exec.php
  2639. * @param cmd string <p>
  2640. * The command that will be executed.
  2641. * </p>
  2642. * @return string The output from the executed command.
  2643. */
  2644. function shell_exec ($cmd) {}
  2645. /**
  2646. * Execute a command and open file pointers for input/output
  2647. * @link http://www.php.net/manual/en/function.proc-open.php
  2648. * @param cmd string <p>
  2649. * The command to execute
  2650. * </p>
  2651. * @param descriptorspec array <p>
  2652. * An indexed array where the key represents the descriptor number and the
  2653. * value represents how PHP will pass that descriptor to the child
  2654. * process. 0 is stdin, 1 is stdout, while 2 is stderr.
  2655. * </p>
  2656. * <p>
  2657. * Each element can be:
  2658. * An array describing the pipe to pass to the process. The first
  2659. * element is the descriptor type and the second element is an option for
  2660. * the given type. Valid types are pipe (the second
  2661. * element is either r to pass the read end of the pipe
  2662. * to the process, or w to pass the write end) and
  2663. * file (the second element is a filename).
  2664. * A stream resource representing a real file descriptor (e.g. opened file,
  2665. * a socket, STDIN).
  2666. * </p>
  2667. * <p>
  2668. * The file descriptor numbers are not limited to 0, 1 and 2 - you may
  2669. * specify any valid file descriptor number and it will be passed to the
  2670. * child process. This allows your script to interoperate with other
  2671. * scripts that run as "co-processes". In particular, this is useful for
  2672. * passing passphrases to programs like PGP, GPG and openssl in a more
  2673. * secure manner. It is also useful for reading status information
  2674. * provided by those programs on auxiliary file descriptors.
  2675. * </p>
  2676. * @param pipes array <p>
  2677. * Will be set to an indexed array of file pointers that correspond to
  2678. * PHP's end of any pipes that are created.
  2679. * </p>
  2680. * @param cwd string[optional] <p>
  2681. * The initial working dir for the command. This must be an
  2682. * absolute directory path, or &null;
  2683. * if you want to use the default value (the working dir of the current
  2684. * PHP process)
  2685. * </p>
  2686. * @param env array[optional] <p>
  2687. * An array with the environment variables for the command that will be
  2688. * run, or &null; to use the same environment as the current PHP process
  2689. * </p>
  2690. * @param other_options array[optional] <p>
  2691. * Allows you to specify additional options. Currently supported options
  2692. * include:
  2693. * suppress_errors (windows only): suppresses errors
  2694. * generated by this function when it's set to true
  2695. * bypass_shell (windows only): bypass
  2696. * cmd.exe shell when set to true
  2697. * context: stream context used when opening files
  2698. * (created with stream_context_create)
  2699. * binary_pipes: open pipes in binary mode, instead
  2700. * of using the usual stream_encoding
  2701. * </p>
  2702. * @return resource a resource representing the process, which should be freed using
  2703. * proc_close when you are finished with it. On failure
  2704. * returns false.
  2705. */
  2706. function proc_open ($cmd, array $descriptorspec, array &$pipes, $cwd = null, array $env = null, array $other_options = null) {}
  2707. /**
  2708. * Close a process opened by <function>proc_open</function> and return the exit code of that process
  2709. * @link http://www.php.net/manual/en/function.proc-close.php
  2710. * @param process resource <p>
  2711. * The proc_open resource that will
  2712. * be closed.
  2713. * </p>
  2714. * @return int the termination status of the process that was run.
  2715. */
  2716. function proc_close ($process) {}
  2717. /**
  2718. * Kills a process opened by proc_open
  2719. * @link http://www.php.net/manual/en/function.proc-terminate.php
  2720. * @param process resource <p>
  2721. * The proc_open resource that will
  2722. * be closed.
  2723. * </p>
  2724. * @param signal int[optional] <p>
  2725. * This optional parameter is only useful on POSIX
  2726. * operating systems; you may specify a signal to send to the process
  2727. * using the kill(2) system call. The default is
  2728. * SIGTERM.
  2729. * </p>
  2730. * @return bool the termination status of the process that was run.
  2731. */
  2732. function proc_terminate ($process, $signal = null) {}
  2733. /**
  2734. * Get information about a process opened by <function>proc_open</function>
  2735. * @link http://www.php.net/manual/en/function.proc-get-status.php
  2736. * @param process resource <p>
  2737. * The proc_open resource that will
  2738. * be evaluated.
  2739. * </p>
  2740. * @return array An array of collected information on success, and false
  2741. * on failure. The returned array contains the following elements:
  2742. * </p>
  2743. * <p>
  2744. * <tr valign="top"><td>element</td><td>type</td><td>description</td></tr>
  2745. * <tr valign="top">
  2746. * <td>command</td>
  2747. * <td>string</td>
  2748. * <td>
  2749. * The command string that was passed to proc_open.
  2750. * </td>
  2751. * </tr>
  2752. * <tr valign="top">
  2753. * <td>pid</td>
  2754. * <td>int</td>
  2755. * <td>process id</td>
  2756. * </tr>
  2757. * <tr valign="top">
  2758. * <td>running</td>
  2759. * <td>bool</td>
  2760. * <td>
  2761. * true if the process is still running, false if it has
  2762. * terminated.
  2763. * </td>
  2764. * </tr>
  2765. * <tr valign="top">
  2766. * <td>signaled</td>
  2767. * <td>bool</td>
  2768. * <td>
  2769. * true if the child process has been terminated by
  2770. * an uncaught signal. Always set to false on Windows.
  2771. * </td>
  2772. * </tr>
  2773. * <tr valign="top">
  2774. * <td>stopped</td>
  2775. * <td>bool</td>
  2776. * <td>
  2777. * true if the child process has been stopped by a
  2778. * signal. Always set to false on Windows.
  2779. * </td>
  2780. * </tr>
  2781. * <tr valign="top">
  2782. * <td>exitcode</td>
  2783. * <td>int</td>
  2784. * <td>
  2785. * The exit code returned by the process (which is only
  2786. * meaningful if running is false).
  2787. * Only first call of this function return real value, next calls return
  2788. * -1.
  2789. * </td>
  2790. * </tr>
  2791. * <tr valign="top">
  2792. * <td>termsig</td>
  2793. * <td>int</td>
  2794. * <td>
  2795. * The number of the signal that caused the child process to terminate
  2796. * its execution (only meaningful if signaled is true).
  2797. * </td>
  2798. * </tr>
  2799. * <tr valign="top">
  2800. * <td>stopsig</td>
  2801. * <td>int</td>
  2802. * <td>
  2803. * The number of the signal that caused the child process to stop its
  2804. * execution (only meaningful if stopped is true).
  2805. * </td>
  2806. * </tr>
  2807. */
  2808. function proc_get_status ($process) {}
  2809. /**
  2810. * Change the priority of the current process
  2811. * @link http://www.php.net/manual/en/function.proc-nice.php
  2812. * @param increment int <p>
  2813. * The increment value of the priority change.
  2814. * </p>
  2815. * @return bool Returns true on success or false on failure.
  2816. * If an error occurs, like the user lacks permission to change the priority,
  2817. * an error of level E_WARNING is also generated.
  2818. */
  2819. function proc_nice ($increment) {}
  2820. /**
  2821. * Generate a random integer
  2822. * @link http://www.php.net/manual/en/function.rand.php
  2823. * @param min[optional]
  2824. * @param max[optional]
  2825. * @return int A pseudo random value between min
  2826. * (or 0) and max (or getrandmax, inclusive).
  2827. */
  2828. function rand ($min, $max) {}
  2829. /**
  2830. * Seed the random number generator
  2831. * @link http://www.php.net/manual/en/function.srand.php
  2832. * @param seed int[optional] <p>
  2833. * Optional seed value
  2834. * </p>
  2835. * @return void
  2836. */
  2837. function srand ($seed = null) {}
  2838. /**
  2839. * Show largest possible random value
  2840. * @link http://www.php.net/manual/en/function.getrandmax.php
  2841. * @return int The largest possible random value returned by rand
  2842. */
  2843. function getrandmax () {}
  2844. /**
  2845. * Generate a better random value
  2846. * @link http://www.php.net/manual/en/function.mt-rand.php
  2847. * @param min[optional]
  2848. * @param max[optional]
  2849. * @return int A random integer value between min (or 0)
  2850. * and max (or mt_getrandmax, inclusive)
  2851. */
  2852. function mt_rand ($min, $max) {}
  2853. /**
  2854. * Seed the better random number generator
  2855. * @link http://www.php.net/manual/en/function.mt-srand.php
  2856. * @param seed int[optional] <p>
  2857. * An optional seed value
  2858. * </p>
  2859. * @return void
  2860. */
  2861. function mt_srand ($seed = null) {}
  2862. /**
  2863. * Show largest possible random value
  2864. * @link http://www.php.net/manual/en/function.mt-getrandmax.php
  2865. * @return int the maximum random value returned by mt_rand
  2866. */
  2867. function mt_getrandmax () {}
  2868. /**
  2869. * Get port number associated with an Internet service and protocol
  2870. * @link http://www.php.net/manual/en/function.getservbyname.php
  2871. * @param service string <p>
  2872. * The Internet service name, as a string.
  2873. * </p>
  2874. * @param protocol string <p>
  2875. * protocol is either "tcp"
  2876. * or "udp" (in lowercase).
  2877. * </p>
  2878. * @return int the port number, or false if service or
  2879. * protocol is not found.
  2880. */
  2881. function getservbyname ($service, $protocol) {}
  2882. /**
  2883. * Get Internet service which corresponds to port and protocol
  2884. * @link http://www.php.net/manual/en/function.getservbyport.php
  2885. * @param port int <p>
  2886. * The port number.
  2887. * </p>
  2888. * @param protocol string <p>
  2889. * protocol is either "tcp"
  2890. * or "udp" (in lowercase).
  2891. * </p>
  2892. * @return string the Internet service name as a string.
  2893. */
  2894. function getservbyport ($port, $protocol) {}
  2895. /**
  2896. * Get protocol number associated with protocol name
  2897. * @link http://www.php.net/manual/en/function.getprotobyname.php
  2898. * @param name string <p>
  2899. * The protocol name.
  2900. * </p>
  2901. * @return int the protocol number or -1 if the protocol is not found.
  2902. */
  2903. function getprotobyname ($name) {}
  2904. /**
  2905. * Get protocol name associated with protocol number
  2906. * @link http://www.php.net/manual/en/function.getprotobynumber.php
  2907. * @param number int <p>
  2908. * The protocol number.
  2909. * </p>
  2910. * @return string the protocol name as a string.
  2911. */
  2912. function getprotobynumber ($number) {}
  2913. /**
  2914. * Gets PHP script owner's UID
  2915. * @link http://www.php.net/manual/en/function.getmyuid.php
  2916. * @return int the user ID of the current script, or false on error.
  2917. */
  2918. function getmyuid () {}
  2919. /**
  2920. * Get PHP script owner's GID
  2921. * @link http://www.php.net/manual/en/function.getmygid.php
  2922. * @return int the group ID of the current script, or false on error.
  2923. */
  2924. function getmygid () {}
  2925. /**
  2926. * Gets PHP's process ID
  2927. * @link http://www.php.net/manual/en/function.getmypid.php
  2928. * @return int the current PHP process ID, or false on error.
  2929. */
  2930. function getmypid () {}
  2931. /**
  2932. * Gets the inode of the current script
  2933. * @link http://www.php.net/manual/en/function.getmyinode.php
  2934. * @return int the current script's inode as an integer, or false on error.
  2935. */
  2936. function getmyinode () {}
  2937. /**
  2938. * Gets time of last page modification
  2939. * @link http://www.php.net/manual/en/function.getlastmod.php
  2940. * @return int the time of the last modification of the current
  2941. * page. The value returned is a Unix timestamp, suitable for
  2942. * feeding to date. Returns false on error.
  2943. */
  2944. function getlastmod () {}
  2945. /**
  2946. * Decodes data encoded with MIME base64
  2947. * @link http://www.php.net/manual/en/function.base64-decode.php
  2948. * @param data string <p>
  2949. * The encoded data.
  2950. * </p>
  2951. * @param strict bool[optional] <p>
  2952. * Returns false if input contains character from outside the base64
  2953. * alphabet.
  2954. * </p>
  2955. * @return string the original data&return.falseforfailure;. The returned data may be
  2956. * binary.
  2957. */
  2958. function base64_decode ($data, $strict = null) {}
  2959. /**
  2960. * Encodes data with MIME base64
  2961. * @link http://www.php.net/manual/en/function.base64-encode.php
  2962. * @param data string <p>
  2963. * The data to encode.
  2964. * </p>
  2965. * @return string The encoded data, as a string.
  2966. */
  2967. function base64_encode ($data) {}
  2968. /**
  2969. * Uuencode a string
  2970. * @link http://www.php.net/manual/en/function.convert-uuencode.php
  2971. * @param data string <p>
  2972. * The data to be encoded.
  2973. * </p>
  2974. * @return string the uuencoded data.
  2975. */
  2976. function convert_uuencode ($data) {}
  2977. /**
  2978. * Decode a uuencoded string
  2979. * @link http://www.php.net/manual/en/function.convert-uudecode.php
  2980. * @param data string <p>
  2981. * The uuencoded data.
  2982. * </p>
  2983. * @return string the decoded data as a string.
  2984. */
  2985. function convert_uudecode ($data) {}
  2986. /**
  2987. * Absolute value
  2988. * @link http://www.php.net/manual/en/function.abs.php
  2989. * @param number mixed <p>
  2990. * The numeric value to process
  2991. * </p>
  2992. * @return number The absolute value of number. If the
  2993. * argument number is
  2994. * of type float, the return type is also float,
  2995. * otherwise it is integer (as float usually has a
  2996. * bigger value range than integer).
  2997. */
  2998. function abs ($number) {}
  2999. /**
  3000. * Round fractions up
  3001. * @link http://www.php.net/manual/en/function.ceil.php
  3002. * @param value float <p>
  3003. * The value to round
  3004. * </p>
  3005. * @return float value rounded up to the next highest
  3006. * integer.
  3007. * The return value of ceil is still of type
  3008. * float as the value range of float is
  3009. * usually bigger than that of integer.
  3010. */
  3011. function ceil ($value) {}
  3012. /**
  3013. * Round fractions down
  3014. * @link http://www.php.net/manual/en/function.floor.php
  3015. * @param value float <p>
  3016. * The numeric value to round
  3017. * </p>
  3018. * @return float value rounded to the next lowest integer.
  3019. * The return value of floor is still of type
  3020. * float because the value range of float is
  3021. * usually bigger than that of integer.
  3022. */
  3023. function floor ($value) {}
  3024. /**
  3025. * Rounds a float
  3026. * @link http://www.php.net/manual/en/function.round.php
  3027. * @param val float <p>
  3028. * The value to round
  3029. * </p>
  3030. * @param precision int[optional] <p>
  3031. * The optional number of decimal digits to round to.
  3032. * </p>
  3033. * @param mode int[optional] <p>
  3034. * One of PHP_ROUND_HALF_UP,
  3035. * PHP_ROUND_HALF_DOWN,
  3036. * PHP_ROUND_HALF_EVEN, or
  3037. * PHP_ROUND_HALF_ODD.
  3038. * </p>
  3039. * @return float The rounded value
  3040. */
  3041. function round ($val, $precision = null, $mode = null) {}
  3042. /**
  3043. * Sine
  3044. * @link http://www.php.net/manual/en/function.sin.php
  3045. * @param arg float <p>
  3046. * A value in radians
  3047. * </p>
  3048. * @return float The sine of arg
  3049. */
  3050. function sin ($arg) {}
  3051. /**
  3052. * Cosine
  3053. * @link http://www.php.net/manual/en/function.cos.php
  3054. * @param arg float <p>
  3055. * An angle in radians
  3056. * </p>
  3057. * @return float The cosine of arg
  3058. */
  3059. function cos ($arg) {}
  3060. /**
  3061. * Tangent
  3062. * @link http://www.php.net/manual/en/function.tan.php
  3063. * @param arg float <p>
  3064. * The argument to process in radians
  3065. * </p>
  3066. * @return float The tangent of arg
  3067. */
  3068. function tan ($arg) {}
  3069. /**
  3070. * Arc sine
  3071. * @link http://www.php.net/manual/en/function.asin.php
  3072. * @param arg float <p>
  3073. * The argument to process
  3074. * </p>
  3075. * @return float The arc sine of arg in radians
  3076. */
  3077. function asin ($arg) {}
  3078. /**
  3079. * Arc cosine
  3080. * @link http://www.php.net/manual/en/function.acos.php
  3081. * @param arg float <p>
  3082. * The argument to process
  3083. * </p>
  3084. * @return float The arc cosine of arg in radians.
  3085. */
  3086. function acos ($arg) {}
  3087. /**
  3088. * Arc tangent
  3089. * @link http://www.php.net/manual/en/function.atan.php
  3090. * @param arg float <p>
  3091. * The argument to process
  3092. * </p>
  3093. * @return float The arc tangent of arg in radians.
  3094. */
  3095. function atan ($arg) {}
  3096. /**
  3097. * Inverse hyperbolic tangent
  3098. * @link http://www.php.net/manual/en/function.atanh.php
  3099. * @param arg float <p>
  3100. * The argument to process
  3101. * </p>
  3102. * @return float Inverse hyperbolic tangent of arg
  3103. */
  3104. function atanh ($arg) {}
  3105. /**
  3106. * Arc tangent of two variables
  3107. * @link http://www.php.net/manual/en/function.atan2.php
  3108. * @param y float <p>
  3109. * Dividend parameter
  3110. * </p>
  3111. * @param x float <p>
  3112. * Divisor parameter
  3113. * </p>
  3114. * @return float The arc tangent of y/x
  3115. * in radians.
  3116. */
  3117. function atan2 ($y, $x) {}
  3118. /**
  3119. * Hyperbolic sine
  3120. * @link http://www.php.net/manual/en/function.sinh.php
  3121. * @param arg float <p>
  3122. * The argument to process
  3123. * </p>
  3124. * @return float The hyperbolic sine of arg
  3125. */
  3126. function sinh ($arg) {}
  3127. /**
  3128. * Hyperbolic cosine
  3129. * @link http://www.php.net/manual/en/function.cosh.php
  3130. * @param arg float <p>
  3131. * The argument to process
  3132. * </p>
  3133. * @return float The hyperbolic cosine of arg
  3134. */
  3135. function cosh ($arg) {}
  3136. /**
  3137. * Hyperbolic tangent
  3138. * @link http://www.php.net/manual/en/function.tanh.php
  3139. * @param arg float <p>
  3140. * The argument to process
  3141. * </p>
  3142. * @return float The hyperbolic tangent of arg
  3143. */
  3144. function tanh ($arg) {}
  3145. /**
  3146. * Inverse hyperbolic sine
  3147. * @link http://www.php.net/manual/en/function.asinh.php
  3148. * @param arg float <p>
  3149. * The argument to process
  3150. * </p>
  3151. * @return float The inverse hyperbolic sine of arg
  3152. */
  3153. function asinh ($arg) {}
  3154. /**
  3155. * Inverse hyperbolic cosine
  3156. * @link http://www.php.net/manual/en/function.acosh.php
  3157. * @param arg float <p>
  3158. * The value to process
  3159. * </p>
  3160. * @return float The inverse hyperbolic cosine of arg
  3161. */
  3162. function acosh ($arg) {}
  3163. /**
  3164. * Returns exp(number) - 1, computed in a way that is accurate even
  3165. when the value of number is close to zero
  3166. * @link http://www.php.net/manual/en/function.expm1.php
  3167. * @param arg float <p>
  3168. * The argument to process
  3169. * </p>
  3170. * @return float 'e' to the power of arg minus one
  3171. */
  3172. function expm1 ($arg) {}
  3173. /**
  3174. * Returns log(1 + number), computed in a way that is accurate even when
  3175. the value of number is close to zero
  3176. * @link http://www.php.net/manual/en/function.log1p.php
  3177. * @param number float <p>
  3178. * The argument to process
  3179. * </p>
  3180. * @return float log(1 + number)
  3181. */
  3182. function log1p ($number) {}
  3183. /**
  3184. * Get value of pi
  3185. * @link http://www.php.net/manual/en/function.pi.php
  3186. * @return float The value of pi as float.
  3187. */
  3188. function pi () {}
  3189. /**
  3190. * Finds whether a value is a legal finite number
  3191. * @link http://www.php.net/manual/en/function.is-finite.php
  3192. * @param val float <p>
  3193. * The value to check
  3194. * </p>
  3195. * @return bool true if val is a legal finite
  3196. * number within the allowed range for a PHP float on this platform,
  3197. * else false.
  3198. */
  3199. function is_finite ($val) {}
  3200. /**
  3201. * Finds whether a value is not a number
  3202. * @link http://www.php.net/manual/en/function.is-nan.php
  3203. * @param val float <p>
  3204. * The value to check
  3205. * </p>
  3206. * @return bool true if val is 'not a number',
  3207. * else false.
  3208. */
  3209. function is_nan ($val) {}
  3210. /**
  3211. * Finds whether a value is infinite
  3212. * @link http://www.php.net/manual/en/function.is-infinite.php
  3213. * @param val float <p>
  3214. * The value to check
  3215. * </p>
  3216. * @return bool true if val is infinite, else false.
  3217. */
  3218. function is_infinite ($val) {}
  3219. /**
  3220. * Exponential expression
  3221. * @link http://www.php.net/manual/en/function.pow.php
  3222. * @param base number <p>
  3223. * The base to use
  3224. * </p>
  3225. * @param exp number <p>
  3226. * The exponent
  3227. * </p>
  3228. * @return number base raised to the power of exp.
  3229. * If the result can be represented as integer it will be returned as type
  3230. * integer, else it will be returned as type float.
  3231. * If the power cannot be computed false will be returned instead.
  3232. */
  3233. function pow ($base, $exp) {}
  3234. /**
  3235. * Calculates the exponent of <constant>e</constant>
  3236. * @link http://www.php.net/manual/en/function.exp.php
  3237. * @param arg float <p>
  3238. * The argument to process
  3239. * </p>
  3240. * @return float 'e' raised to the power of arg
  3241. */
  3242. function exp ($arg) {}
  3243. /**
  3244. * Natural logarithm
  3245. * @link http://www.php.net/manual/en/function.log.php
  3246. * @param arg float <p>
  3247. * The value to calculate the logarithm for
  3248. * </p>
  3249. * @param base float[optional] <p>
  3250. * The optional logarithmic base to use
  3251. * (defaults to 'e' and so to the natural logarithm).
  3252. * </p>
  3253. * @return float The logarithm of arg to
  3254. * base, if given, or the
  3255. * natural logarithm.
  3256. */
  3257. function log ($arg, $base = null) {}
  3258. /**
  3259. * Base-10 logarithm
  3260. * @link http://www.php.net/manual/en/function.log10.php
  3261. * @param arg float <p>
  3262. * The argument to process
  3263. * </p>
  3264. * @return float The base-10 logarithm of arg
  3265. */
  3266. function log10 ($arg) {}
  3267. /**
  3268. * Square root
  3269. * @link http://www.php.net/manual/en/function.sqrt.php
  3270. * @param arg float <p>
  3271. * The argument to process
  3272. * </p>
  3273. * @return float The square root of arg
  3274. * or the special value NAN for negative numbers.
  3275. */
  3276. function sqrt ($arg) {}
  3277. /**
  3278. * Calculate the length of the hypotenuse of a right-angle triangle
  3279. * @link http://www.php.net/manual/en/function.hypot.php
  3280. * @param x float <p>
  3281. * Length of first side
  3282. * </p>
  3283. * @param y float <p>
  3284. * Length of second side
  3285. * </p>
  3286. * @return float Calculated length of the hypotenuse
  3287. */
  3288. function hypot ($x, $y) {}
  3289. /**
  3290. * Converts the number in degrees to the radian equivalent
  3291. * @link http://www.php.net/manual/en/function.deg2rad.php
  3292. * @param number float <p>
  3293. * Angular value in degrees
  3294. * </p>
  3295. * @return float The radian equivalent of number
  3296. */
  3297. function deg2rad ($number) {}
  3298. /**
  3299. * Converts the radian number to the equivalent number in degrees
  3300. * @link http://www.php.net/manual/en/function.rad2deg.php
  3301. * @param number float <p>
  3302. * A radian value
  3303. * </p>
  3304. * @return float The equivalent of number in degrees
  3305. */
  3306. function rad2deg ($number) {}
  3307. /**
  3308. * Binary to decimal
  3309. * @link http://www.php.net/manual/en/function.bindec.php
  3310. * @param binary_string string <p>
  3311. * The binary string to convert
  3312. * </p>
  3313. * @return number The decimal value of binary_string
  3314. */
  3315. function bindec ($binary_string) {}
  3316. /**
  3317. * Hexadecimal to decimal
  3318. * @link http://www.php.net/manual/en/function.hexdec.php
  3319. * @param hex_string string <p>
  3320. * The hexadecimal string to convert
  3321. * </p>
  3322. * @return number The decimal representation of hex_string
  3323. */
  3324. function hexdec ($hex_string) {}
  3325. /**
  3326. * Octal to decimal
  3327. * @link http://www.php.net/manual/en/function.octdec.php
  3328. * @param octal_string string <p>
  3329. * The octal string to convert
  3330. * </p>
  3331. * @return number The decimal representation of octal_string
  3332. */
  3333. function octdec ($octal_string) {}
  3334. /**
  3335. * Decimal to binary
  3336. * @link http://www.php.net/manual/en/function.decbin.php
  3337. * @param number int <p>
  3338. * Decimal value to convert
  3339. * </p>
  3340. * <table>
  3341. * Range of inputs on 32-bit machines
  3342. * <tr valign="top">
  3343. * <td>positive number</td>
  3344. * <td>negative number</td>
  3345. * <td>return value</td>
  3346. * </tr>
  3347. * <tr valign="top">
  3348. * <td>0</td>
  3349. * <td></td>
  3350. * <td>0</td>
  3351. * </tr>
  3352. * <tr valign="top">
  3353. * <td>1</td>
  3354. * <td></td>
  3355. * <td>1</td>
  3356. * </tr>
  3357. * <tr valign="top">
  3358. * <td>2</td>
  3359. * <td></td>
  3360. * <td>10</td>
  3361. * </tr>
  3362. * <tr valign="top">
  3363. * ... normal progression ...</td>
  3364. * </tr>
  3365. * <tr valign="top">
  3366. * <td>2147483646</td>
  3367. * <td></td>
  3368. * <td>1111111111111111111111111111110</td>
  3369. * </tr>
  3370. * <tr valign="top">
  3371. * <td>2147483647 (largest signed integer)</td>
  3372. * <td></td>
  3373. * <td>1111111111111111111111111111111 (31 1's)</td>
  3374. * </tr>
  3375. * <tr valign="top">
  3376. * <td>2147483648</td>
  3377. * <td>-2147483648</td>
  3378. * <td>10000000000000000000000000000000</td>
  3379. * </tr>
  3380. * <tr valign="top">
  3381. * ... normal progression ...</td>
  3382. * </tr>
  3383. * <tr valign="top">
  3384. * <td>4294967294</td>
  3385. * <td>-2</td>
  3386. * <td>11111111111111111111111111111110</td>
  3387. * </tr>
  3388. * <tr valign="top">
  3389. * <td>4294967295 (largest unsigned integer)</td>
  3390. * <td>-1</td>
  3391. * <td>11111111111111111111111111111111 (32 1's)</td>
  3392. * </tr>
  3393. * </table>
  3394. * <table>
  3395. * Range of inputs on 64-bit machines
  3396. * <tr valign="top">
  3397. * <td>positive number</td>
  3398. * <td>negative number</td>
  3399. * <td>return value</td>
  3400. * </tr>
  3401. * <tr valign="top">
  3402. * <td>0</td>
  3403. * <td></td>
  3404. * <td>0</td>
  3405. * </tr>
  3406. * <tr valign="top">
  3407. * <td>1</td>
  3408. * <td></td>
  3409. * <td>1</td>
  3410. * </tr>
  3411. * <tr valign="top">
  3412. * <td>2</td>
  3413. * <td></td>
  3414. * <td>10</td>
  3415. * </tr>
  3416. * <tr valign="top">
  3417. * ... normal progression ...</td>
  3418. * </tr>
  3419. * <tr valign="top">
  3420. * <td>9223372036854775806</td>
  3421. * <td></td>
  3422. * <td>111111111111111111111111111111111111111111111111111111111111110</td>
  3423. * </tr>
  3424. * <tr valign="top">
  3425. * <td>9223372036854775807 (largest signed integer)</td>
  3426. * <td></td>
  3427. * <td>111111111111111111111111111111111111111111111111111111111111111 (31 1's)</td>
  3428. * </tr>
  3429. * <tr valign="top">
  3430. * <td></td>
  3431. * <td>-9223372036854775808</td>
  3432. * <td>1000000000000000000000000000000000000000000000000000000000000000</td>
  3433. * </tr>
  3434. * <tr valign="top">
  3435. * ... normal progression ...</td>
  3436. * </tr>
  3437. * <tr valign="top">
  3438. * <td></td>
  3439. * <td>-2</td>
  3440. * <td>1111111111111111111111111111111111111111111111111111111111111110</td>
  3441. * </tr>
  3442. * <tr valign="top">
  3443. * <td></td>
  3444. * <td>-1</td>
  3445. * <td>1111111111111111111111111111111111111111111111111111111111111111 (64 1's)</td>
  3446. * </tr>
  3447. * </table>
  3448. * @return string Binary string representation of number
  3449. */
  3450. function decbin ($number) {}
  3451. /**
  3452. * Decimal to octal
  3453. * @link http://www.php.net/manual/en/function.decoct.php
  3454. * @param number int <p>
  3455. * Decimal value to convert
  3456. * </p>
  3457. * @return string Octal string representation of number
  3458. */
  3459. function decoct ($number) {}
  3460. /**
  3461. * Decimal to hexadecimal
  3462. * @link http://www.php.net/manual/en/function.dechex.php
  3463. * @param number int <p>
  3464. * Decimal value to convert
  3465. * </p>
  3466. * @return string Hexadecimal string representation of number
  3467. */
  3468. function dechex ($number) {}
  3469. /**
  3470. * Convert a number between arbitrary bases
  3471. * @link http://www.php.net/manual/en/function.base-convert.php
  3472. * @param number string <p>
  3473. * The number to convert
  3474. * </p>
  3475. * @param frombase int <p>
  3476. * The base number is in
  3477. * </p>
  3478. * @param tobase int <p>
  3479. * The base to convert number to
  3480. * </p>
  3481. * @return string number converted to base tobase
  3482. */
  3483. function base_convert ($number, $frombase, $tobase) {}
  3484. /**
  3485. * Format a number with grouped thousands
  3486. * @link http://www.php.net/manual/en/function.number-format.php
  3487. * @param number float <p>
  3488. * The number being formatted.
  3489. * </p>
  3490. * @param decimals int[optional] <p>
  3491. * Sets the number of decimal points.
  3492. * </p>
  3493. * @return string A formatted version of number.
  3494. */
  3495. function number_format ($number, $decimals = null) {}
  3496. /**
  3497. * Returns the floating point remainder (modulo) of the division
  3498. of the arguments
  3499. * @link http://www.php.net/manual/en/function.fmod.php
  3500. * @param x float <p>
  3501. * The dividend
  3502. * </p>
  3503. * @param y float <p>
  3504. * The divisor
  3505. * </p>
  3506. * @return float The floating point remainder of
  3507. * x/y
  3508. */
  3509. function fmod ($x, $y) {}
  3510. /**
  3511. * Converts a packed internet address to a human readable representation
  3512. * @link http://www.php.net/manual/en/function.inet-ntop.php
  3513. * @param in_addr string <p>
  3514. * A 32bit IPv4, or 128bit IPv6 address.
  3515. * </p>
  3516. * @return string a string representation of the address&return.falseforfailure;.
  3517. */
  3518. function inet_ntop ($in_addr) {}
  3519. /**
  3520. * Converts a human readable IP address to its packed in_addr representation
  3521. * @link http://www.php.net/manual/en/function.inet-pton.php
  3522. * @param address string <p>
  3523. * A human readable IPv4 or IPv6 address.
  3524. * </p>
  3525. * @return string the in_addr representation of the given
  3526. * address
  3527. */
  3528. function inet_pton ($address) {}
  3529. /**
  3530. * Converts a string containing an (IPv4) Internet Protocol dotted address into a proper address
  3531. * @link http://www.php.net/manual/en/function.ip2long.php
  3532. * @param ip_address string <p>
  3533. * A standard format address.
  3534. * </p>
  3535. * @return int the IPv4 address or false if ip_address
  3536. * is invalid.
  3537. */
  3538. function ip2long ($ip_address) {}
  3539. /**
  3540. * Converts an (IPv4) Internet network address into a string in Internet standard dotted format
  3541. * @link http://www.php.net/manual/en/function.long2ip.php
  3542. * @param proper_address string <p>
  3543. * A proper address representation.
  3544. * </p>
  3545. * @return string the Internet IP address as a string.
  3546. */
  3547. function long2ip ($proper_address) {}
  3548. /**
  3549. * Gets the value of an environment variable
  3550. * @link http://www.php.net/manual/en/function.getenv.php
  3551. * @param varname string <p>
  3552. * The variable name.
  3553. * </p>
  3554. * @return string the value of the environment variable
  3555. * varname, or false on an error.
  3556. */
  3557. function getenv ($varname) {}
  3558. /**
  3559. * Sets the value of an environment variable
  3560. * @link http://www.php.net/manual/en/function.putenv.php
  3561. * @param setting string <p>
  3562. * The setting, like "FOO=BAR"
  3563. * </p>
  3564. * @return bool Returns true on success or false on failure.
  3565. */
  3566. function putenv ($setting) {}
  3567. /**
  3568. * Gets options from the command line argument list
  3569. * @link http://www.php.net/manual/en/function.getopt.php
  3570. * @param options string Each character in this string will be used as option characters and
  3571. * matched against options passed to the script starting with a single
  3572. * hyphen (-).
  3573. * For example, an option string "x" recognizes an
  3574. * option -x.
  3575. * Only a-z, A-Z and 0-9 are allowed.
  3576. * @param longopts array[optional] An array of options. Each element in this array will be used as option
  3577. * strings and matched against options passed to the script starting with
  3578. * two hyphens (--).
  3579. * For example, an longopts element "opt" recognizes an
  3580. * option --opt.
  3581. * Prior to PHP5.3.0 this parameter was only available on few systems
  3582. * @return array This function will return an array of option / argument pairs or false on
  3583. * failure.
  3584. * </p>
  3585. * <p>
  3586. * The parsing of options will end at the first non-option found, anything
  3587. * that follows is discarded.
  3588. */
  3589. function getopt ($options, array $longopts = null) {}
  3590. /**
  3591. * Gets system load average
  3592. * @link http://www.php.net/manual/en/function.sys-getloadavg.php
  3593. * @return array an array with three samples (last 1, 5 and 15
  3594. * minutes).
  3595. */
  3596. function sys_getloadavg () {}
  3597. /**
  3598. * Return current Unix timestamp with microseconds
  3599. * @link http://www.php.net/manual/en/function.microtime.php
  3600. * @param get_as_float bool[optional] <p>
  3601. * When called without the optional argument, this function returns the string
  3602. * "msec sec" where sec is the current time measured in the number of
  3603. * seconds since the Unix Epoch (0:00:00 January 1, 1970 GMT), and
  3604. * msec is the microseconds part.
  3605. * Both portions of the string are returned in units of seconds.
  3606. * </p>
  3607. * <p>
  3608. * If the optional get_as_float is set to
  3609. * true then a float (in seconds) is returned.
  3610. * </p>
  3611. * @return mixed
  3612. */
  3613. function microtime ($get_as_float = null) {}
  3614. /**
  3615. * Get current time
  3616. * @link http://www.php.net/manual/en/function.gettimeofday.php
  3617. * @param return_float bool[optional] <p>
  3618. * When set to true, a float instead of an array is returned.
  3619. * </p>
  3620. * @return mixed By default an array is returned. If return_float
  3621. * is set, then a float is returned.
  3622. * </p>
  3623. * <p>
  3624. * Array keys:
  3625. * "sec" - seconds since the Unix Epoch
  3626. * "usec" - microseconds
  3627. * "minuteswest" - minutes west of Greenwich
  3628. * "dsttime" - type of dst correction
  3629. */
  3630. function gettimeofday ($return_float = null) {}
  3631. /**
  3632. * Gets the current resource usages
  3633. * @link http://www.php.net/manual/en/function.getrusage.php
  3634. * @param who int[optional] <p>
  3635. * If who is 1, getrusage will be called with
  3636. * RUSAGE_CHILDREN.
  3637. * </p>
  3638. * @return array an associative array containing the data returned from the system
  3639. * call. All entries are accessible by using their documented field names.
  3640. */
  3641. function getrusage ($who = null) {}
  3642. /**
  3643. * Generate a unique ID
  3644. * @link http://www.php.net/manual/en/function.uniqid.php
  3645. * @param prefix string[optional] <p>
  3646. * Can be useful, for instance, if you generate identifiers
  3647. * simultaneously on several hosts that might happen to generate the
  3648. * identifier at the same microsecond.
  3649. * </p>
  3650. * <p>
  3651. * With an empty prefix, the returned string will
  3652. * be 13 characters long. If more_entropy is
  3653. * true, it will be 23 characters.
  3654. * </p>
  3655. * @param more_entropy bool[optional] <p>
  3656. * If set to true, uniqid will add additional
  3657. * entropy (using the combined linear congruential generator) at the end
  3658. * of the return value, which should make the results more unique.
  3659. * </p>
  3660. * @return string the unique identifier, as a string.
  3661. */
  3662. function uniqid ($prefix = null, $more_entropy = null) {}
  3663. /**
  3664. * Convert a quoted-printable string to an 8 bit string
  3665. * @link http://www.php.net/manual/en/function.quoted-printable-decode.php
  3666. * @param str string <p>
  3667. * The input string.
  3668. * </p>
  3669. * @return string the 8-bit binary string.
  3670. */
  3671. function quoted_printable_decode ($str) {}
  3672. /**
  3673. * Convert a 8 bit string to a quoted-printable string
  3674. * @link http://www.php.net/manual/en/function.quoted-printable-encode.php
  3675. * @param str string <p>
  3676. * The input string.
  3677. * </p>
  3678. * @return string the encoded string.
  3679. */
  3680. function quoted_printable_encode ($str) {}
  3681. /**
  3682. * Convert from one Cyrillic character set to another
  3683. * @link http://www.php.net/manual/en/function.convert-cyr-string.php
  3684. * @param str string <p>
  3685. * The string to be converted.
  3686. * </p>
  3687. * @param from string <p>
  3688. * The source Cyrillic character set, as a single character.
  3689. * </p>
  3690. * @param to string <p>
  3691. * The target Cyrillic character set, as a single character.
  3692. * </p>
  3693. * @return string the converted string.
  3694. */
  3695. function convert_cyr_string ($str, $from, $to) {}
  3696. /**
  3697. * Gets the name of the owner of the current PHP script
  3698. * @link http://www.php.net/manual/en/function.get-current-user.php
  3699. * @return string the username as a string.
  3700. */
  3701. function get_current_user () {}
  3702. /**
  3703. * Limits the maximum execution time
  3704. * @link http://www.php.net/manual/en/function.set-time-limit.php
  3705. * @param seconds int <p>
  3706. * The maximum execution time, in seconds. If set to zero, no time limit
  3707. * is imposed.
  3708. * </p>
  3709. * @return void
  3710. */
  3711. function set_time_limit ($seconds) {}
  3712. /**
  3713. * Gets the value of a PHP configuration option
  3714. * @link http://www.php.net/manual/en/function.get-cfg-var.php
  3715. * @param option string <p>
  3716. * The configuration option name.
  3717. * </p>
  3718. * @return string the current value of the PHP configuration variable specified by
  3719. * option, or false if an error occurs.
  3720. */
  3721. function get_cfg_var ($option) {}
  3722. /**
  3723. * &Alias; <function>set_magic_quotes_runtime</function>
  3724. * @link http://www.php.net/manual/en/function.magic-quotes-runtime.php
  3725. * @param new_setting
  3726. */
  3727. function magic_quotes_runtime ($new_setting) {}
  3728. /**
  3729. * Sets the current active configuration setting of magic_quotes_runtime
  3730. * @link http://www.php.net/manual/en/function.set-magic-quotes-runtime.php
  3731. * @param new_setting bool <p>
  3732. * false for off, true for on.
  3733. * </p>
  3734. * @return bool Returns true on success or false on failure.
  3735. */
  3736. function set_magic_quotes_runtime ($new_setting) {}
  3737. /**
  3738. * Gets the current configuration setting of magic_quotes_gpc
  3739. * @link http://www.php.net/manual/en/function.get-magic-quotes-gpc.php
  3740. * @return int 0 if magic_quotes_gpc is off, 1 otherwise.
  3741. */
  3742. function get_magic_quotes_gpc () {}
  3743. /**
  3744. * Gets the current active configuration setting of magic_quotes_runtime
  3745. * @link http://www.php.net/manual/en/function.get-magic-quotes-runtime.php
  3746. * @return int 0 if magic_quotes_runtime is off, 1 otherwise.
  3747. */
  3748. function get_magic_quotes_runtime () {}
  3749. /**
  3750. * Import GET/POST/Cookie variables into the global scope
  3751. * @link http://www.php.net/manual/en/function.import-request-variables.php
  3752. * @param types string <p>
  3753. * Using the types parameter, you can specify
  3754. * which request variables to import. You can use 'G', 'P' and 'C'
  3755. * characters respectively for GET, POST and Cookie. These characters are
  3756. * not case sensitive, so you can also use any combination of 'g', 'p'
  3757. * and 'c'. POST includes the POST uploaded file information.
  3758. * </p>
  3759. * <p>
  3760. * Note that the order of the letters matters, as when using
  3761. * "GP", the
  3762. * POST variables will overwrite GET variables with the same name. Any
  3763. * other letters than GPC are discarded.
  3764. * </p>
  3765. * @param prefix string[optional] <p>
  3766. * Variable name prefix, prepended before all variable's name imported
  3767. * into the global scope. So if you have a GET value named
  3768. * "userid", and provide a prefix
  3769. * "pref_", then you'll get a global variable named
  3770. * $pref_userid.
  3771. * </p>
  3772. * <p>
  3773. * Although the prefix parameter is optional, you
  3774. * will get an E_NOTICE level
  3775. * error if you specify no prefix, or specify an empty string as a
  3776. * prefix. This is a possible security hazard. Notice level errors are
  3777. * not displayed using the default error reporting level.
  3778. * </p>
  3779. * @return bool Returns true on success or false on failure.
  3780. */
  3781. function import_request_variables ($types, $prefix = null) {}
  3782. /**
  3783. * Send an error message somewhere
  3784. * @link http://www.php.net/manual/en/function.error-log.php
  3785. * @param message string <p>
  3786. * The error message that should be logged.
  3787. * </p>
  3788. * @param message_type int[optional] <p>
  3789. * Says where the error should go. The possible message types are as
  3790. * follows:
  3791. * </p>
  3792. * <p>
  3793. * <table>
  3794. * error_log log types
  3795. * <tr valign="top">
  3796. * <td>0</td>
  3797. * <td>
  3798. * message is sent to PHP's system logger, using
  3799. * the Operating System's system logging mechanism or a file, depending
  3800. * on what the error_log
  3801. * configuration directive is set to. This is the default option.
  3802. * </td>
  3803. * </tr>
  3804. * <tr valign="top">
  3805. * <td>1</td>
  3806. * <td>
  3807. * message is sent by email to the address in
  3808. * the destination parameter. This is the only
  3809. * message type where the fourth parameter,
  3810. * extra_headers is used.
  3811. * </td>
  3812. * </tr>
  3813. * <tr valign="top">
  3814. * <td>2</td>
  3815. * <td>
  3816. * No longer an option.
  3817. * </td>
  3818. * </tr>
  3819. * <tr valign="top">
  3820. * <td>3</td>
  3821. * <td>
  3822. * message is appended to the file
  3823. * destination. A newline is not automatically
  3824. * added to the end of the message string.
  3825. * </td>
  3826. * </tr>
  3827. * <tr valign="top">
  3828. * <td>4</td>
  3829. * <td>
  3830. * message is sent directly to the SAPI logging
  3831. * handler.
  3832. * </td>
  3833. * </tr>
  3834. * </table>
  3835. * </p>
  3836. * @param destination string[optional] <p>
  3837. * The destination. Its meaning depends on the
  3838. * message_type parameter as described above.
  3839. * </p>
  3840. * @param extra_headers string[optional] <p>
  3841. * The extra headers. It's used when the message_type
  3842. * parameter is set to 1.
  3843. * This message type uses the same internal function as
  3844. * mail does.
  3845. * </p>
  3846. * @return bool Returns true on success or false on failure.
  3847. */
  3848. function error_log ($message, $message_type = null, $destination = null, $extra_headers = null) {}
  3849. /**
  3850. * Get the last occurred error
  3851. * @link http://www.php.net/manual/en/function.error-get-last.php
  3852. * @return array an associative array describing the last error with keys "type",
  3853. * "message", "file" and "line". Returns &null; if there hasn't been an error
  3854. * yet.
  3855. */
  3856. function error_get_last () {}
  3857. /**
  3858. * Call a user function given by the first parameter
  3859. * @link http://www.php.net/manual/en/function.call-user-func.php
  3860. * @param function callback <p>
  3861. * The function to be called. Class methods may also be invoked
  3862. * statically using this function by passing
  3863. * array($classname, $methodname) to this parameter.
  3864. * Additionally class methods of an object instance may be called by passing
  3865. * array($objectinstance, $methodname) to this parameter.
  3866. * </p>
  3867. * @param parameter mixed[optional] <p>
  3868. * Zero or more parameters to be passed to the function.
  3869. * </p>
  3870. * <p>
  3871. * Note that the parameters for call_user_func are
  3872. * not passed by reference.
  3873. * Example #1 call_user_func example and references
  3874. * <pre>
  3875. * &lt;?php
  3876. * error_reporting(E_ALL);
  3877. * function increment(&$var)
  3878. * {
  3879. * &nbsp;&nbsp;$var++;
  3880. * }
  3881. *
  3882. * $a = 0;
  3883. * call_user_func('increment', $a);
  3884. * echo $a."\n";
  3885. *
  3886. * call_user_func_array('increment', array(&$a)); // You can use this instead before PHP 5.3
  3887. * echo $a."\n";
  3888. * ?&gt;
  3889. * </pre>
  3890. * The above example will output:
  3891. * <pre>
  3892. * 0
  3893. * 1
  3894. * </pre>
  3895. * </p>
  3896. * @param _ mixed[optional]
  3897. * @return mixed the function result, or false on error.
  3898. */
  3899. function call_user_func ($function, $parameter = null, $_ = null) {}
  3900. /**
  3901. * Call a user function given with an array of parameters
  3902. * @link http://www.php.net/manual/en/function.call-user-func-array.php
  3903. * @param function callback <p>
  3904. * The function to be called.
  3905. * </p>
  3906. * @param param_arr array <p>
  3907. * The parameters to be passed to the function, as an indexed array.
  3908. * </p>
  3909. * @return mixed the function result, or false on error.
  3910. */
  3911. function call_user_func_array ($function, array $param_arr) {}
  3912. /**
  3913. * Call a user method on an specific object [deprecated]
  3914. * @link http://www.php.net/manual/en/function.call-user-method.php
  3915. * @param method_name string <p>
  3916. * The method name being called.
  3917. * </p>
  3918. * @param obj object <p>
  3919. * The object that method_name
  3920. * is being called on.
  3921. * </p>
  3922. * @param parameter mixed[optional]
  3923. * @param _ mixed[optional]
  3924. * @return mixed
  3925. */
  3926. function call_user_method ($method_name, &$obj, $parameter = null, $_ = null) {}
  3927. /**
  3928. * Call a user method given with an array of parameters [deprecated]
  3929. * @link http://www.php.net/manual/en/function.call-user-method-array.php
  3930. * @param method_name string <p>
  3931. * The method name being called.
  3932. * </p>
  3933. * @param obj object <p>
  3934. * The object that method_name
  3935. * is being called on.
  3936. * </p>
  3937. * @param params array <p>
  3938. * An array of parameters.
  3939. * </p>
  3940. * @return mixed
  3941. */
  3942. function call_user_method_array ($method_name, &$obj, array $params) {}
  3943. /**
  3944. * Call a static method
  3945. * @link http://www.php.net/manual/en/function.forward-static-call.php
  3946. * @param function callback <p>
  3947. * The function or method to be called. This parameter may be an array,
  3948. * with the name of the class, and the method, or a string, with a function
  3949. * name.
  3950. * </p>
  3951. * @param parameter mixed[optional] <p>
  3952. * Zero or more parameters to be passed to the function.
  3953. * </p>
  3954. * @param _ mixed[optional]
  3955. * @return mixed the function result, or false on error.
  3956. */
  3957. function forward_static_call ($function, $parameter = null, $_ = null) {}
  3958. /**
  3959. * Call a static method and pass the arguments as array
  3960. * @link http://www.php.net/manual/en/function.forward-static-call-array.php
  3961. * @param function callback <p>
  3962. * The function or method to be called. This parameter may be an &array;,
  3963. * with the name of the class, and the method, or a &string;, with a function
  3964. * name.
  3965. * </p>
  3966. * @param parameters array[optional]
  3967. * @return mixed the function result, or false on error.
  3968. */
  3969. function forward_static_call_array ($function, array $parameters = null) {}
  3970. /**
  3971. * Generates a storable representation of a value
  3972. * @link http://www.php.net/manual/en/function.serialize.php
  3973. * @param value mixed <p>
  3974. * The value to be serialized. serialize
  3975. * handles all types, except the resource-type.
  3976. * You can even serialize arrays that contain
  3977. * references to itself. Circular references inside the array/object you
  3978. * are serializing will also be stored. Any other
  3979. * reference will be lost.
  3980. * </p>
  3981. * <p>
  3982. * When serializing objects, PHP will attempt to call the member function
  3983. * __sleep prior to serialization.
  3984. * This is to allow the object to do any last minute clean-up, etc. prior
  3985. * to being serialized. Likewise, when the object is restored using
  3986. * unserialize the __wakeup member function is called.
  3987. * </p>
  3988. * <p>
  3989. * Object's private members have the class name prepended to the member
  3990. * name; protected members have a '*' prepended to the member name.
  3991. * These prepended values have null bytes on either side.
  3992. * </p>
  3993. * @return string a string containing a byte-stream representation of
  3994. * value that can be stored anywhere.
  3995. */
  3996. function serialize ($value) {}
  3997. /**
  3998. * Creates a PHP value from a stored representation
  3999. * @link http://www.php.net/manual/en/function.unserialize.php
  4000. * @param str string <p>
  4001. * The serialized string.
  4002. * </p>
  4003. * <p>
  4004. * If the variable being unserialized is an object, after successfully
  4005. * reconstructing the object PHP will automatically attempt to call the
  4006. * __wakeup member function (if it exists).
  4007. * </p>
  4008. * <p>
  4009. * unserialize_callback_func directive
  4010. * <p>
  4011. * It's possible to set a callback-function which will be called,
  4012. * if an undefined class should be instantiated during unserializing.
  4013. * (to prevent getting an incomplete object "__PHP_Incomplete_Class".)
  4014. * Use your &php.ini;, ini_set or &htaccess;
  4015. * to define 'unserialize_callback_func'. Everytime an undefined class
  4016. * should be instantiated, it'll be called. To disable this feature just
  4017. * empty this setting.
  4018. * </p>
  4019. * </p>
  4020. * @return mixed The converted value is returned, and can be a boolean,
  4021. * integer, float, string,
  4022. * array or object.
  4023. * </p>
  4024. * <p>
  4025. * In case the passed string is not unserializeable, false is returned and
  4026. * E_NOTICE is issued.
  4027. */
  4028. function unserialize ($str) {}
  4029. /**
  4030. * Dumps information about a variable
  4031. * @link http://www.php.net/manual/en/function.var-dump.php
  4032. * @param expression mixed <p>
  4033. * The variable you want to export.
  4034. * </p>
  4035. * @param expression mixed[optional]
  4036. * @return void
  4037. */
  4038. function var_dump ($expression, $expression = null) {}
  4039. /**
  4040. * Outputs or returns a parsable string representation of a variable
  4041. * @link http://www.php.net/manual/en/function.var-export.php
  4042. * @param expression mixed <p>
  4043. * The variable you want to export.
  4044. * </p>
  4045. * @param return bool[optional] <p>
  4046. * If used and set to true, var_export will return
  4047. * the variable representation instead of outputing it.
  4048. * </p>
  4049. * &note.uses-ob;
  4050. * @return mixed the variable representation when the return
  4051. * parameter is used and evaluates to true. Otherwise, this function will
  4052. * return &null;.
  4053. */
  4054. function var_export ($expression, $return = null) {}
  4055. /**
  4056. * Dumps a string representation of an internal zend value to output
  4057. * @link http://www.php.net/manual/en/function.debug-zval-dump.php
  4058. * @param variable mixed <p>
  4059. * The variable being evaluated.
  4060. * </p>
  4061. * @return void
  4062. */
  4063. function debug_zval_dump ($variable) {}
  4064. /**
  4065. * Prints human-readable information about a variable
  4066. * @link http://www.php.net/manual/en/function.print-r.php
  4067. * @param expression mixed <p>
  4068. * The expression to be printed.
  4069. * </p>
  4070. * @param return bool[optional] <p>
  4071. * If you would like to capture the output of print_r,
  4072. * use the return parameter. When this parameter is set
  4073. * to true, print_r will return the information rather than print it.
  4074. * </p>
  4075. * @return mixed If given a string, integer or float,
  4076. * the value itself will be printed. If given an array, values
  4077. * will be presented in a format that shows keys and elements. Similar
  4078. * notation is used for objects.
  4079. * </p>
  4080. * <p>
  4081. * When the return parameter is true, this function
  4082. * will return a string. Otherwise, the return value is true.
  4083. */
  4084. function print_r ($expression, $return = null) {}
  4085. /**
  4086. * Returns the amount of memory allocated to PHP
  4087. * @link http://www.php.net/manual/en/function.memory-get-usage.php
  4088. * @param real_usage bool[optional] <p>
  4089. * Set this to true to get the real size of memory allocated from
  4090. * system. If not set or false only the memory used by
  4091. * emalloc() is reported.
  4092. * </p>
  4093. * @return int the memory amount in bytes.
  4094. */
  4095. function memory_get_usage ($real_usage = null) {}
  4096. /**
  4097. * Returns the peak of memory allocated by PHP
  4098. * @link http://www.php.net/manual/en/function.memory-get-peak-usage.php
  4099. * @param real_usage bool[optional] <p>
  4100. * Set this to true to get the real size of memory allocated from
  4101. * system. If not set or false only the memory used by
  4102. * emalloc() is reported.
  4103. * </p>
  4104. * @return int the memory peak in bytes.
  4105. */
  4106. function memory_get_peak_usage ($real_usage = null) {}
  4107. /**
  4108. * Register a function for execution on shutdown
  4109. * @link http://www.php.net/manual/en/function.register-shutdown-function.php
  4110. * @param function callback <p>
  4111. * The shutdown function to register.
  4112. * </p>
  4113. * <p>
  4114. * The shutdown functions are called as the part of the request so that
  4115. * it's possible to send the output from them. There is currently no way
  4116. * to process the data with output buffering functions in the shutdown
  4117. * function.
  4118. * </p>
  4119. * <p>
  4120. * Shutdown functions are called after closing all opened output buffers
  4121. * thus, for example, its output will not be compressed if zlib.output_compression is
  4122. * enabled.
  4123. * </p>
  4124. * @param parameter mixed[optional] <p>
  4125. * It is possible to pass parameters to the shutdown function by passing
  4126. * additional parameters.
  4127. * </p>
  4128. * @param _ mixed[optional]
  4129. * @return void
  4130. */
  4131. function register_shutdown_function ($function, $parameter = null, $_ = null) {}
  4132. /**
  4133. * Register a function for execution on each tick
  4134. * @link http://www.php.net/manual/en/function.register-tick-function.php
  4135. * @param function callback <p>
  4136. * The function name as a string, or an array consisting of an object and
  4137. * a method.
  4138. * </p>
  4139. * @param arg mixed[optional] <p>
  4140. * </p>
  4141. * @param _ mixed[optional]
  4142. * @return bool Returns true on success or false on failure.
  4143. */
  4144. function register_tick_function ($function, $arg = null, $_ = null) {}
  4145. /**
  4146. * De-register a function for execution on each tick
  4147. * @link http://www.php.net/manual/en/function.unregister-tick-function.php
  4148. * @param function_name string <p>
  4149. * The function name, as a string.
  4150. * </p>
  4151. * @return void
  4152. */
  4153. function unregister_tick_function ($function_name) {}
  4154. /**
  4155. * Syntax highlighting of a file
  4156. * @link http://www.php.net/manual/en/function.highlight-file.php
  4157. * @param filename string <p>
  4158. * Path to the PHP file to be highlighted.
  4159. * </p>
  4160. * @param return bool[optional] <p>
  4161. * Set this parameter to true to make this function return the
  4162. * highlighted code.
  4163. * </p>
  4164. * @return mixed If return is set to true, returns the highlighted
  4165. * code as a string instead of printing it out. Otherwise, it will return
  4166. * true on success, false on failure.
  4167. */
  4168. function highlight_file ($filename, $return = null) {}
  4169. /**
  4170. * &Alias; <function>highlight_file</function>
  4171. * @link http://www.php.net/manual/en/function.show-source.php
  4172. * @param file_name
  4173. * @param return[optional]
  4174. */
  4175. function show_source ($file_name, $return) {}
  4176. /**
  4177. * Syntax highlighting of a string
  4178. * @link http://www.php.net/manual/en/function.highlight-string.php
  4179. * @param str string <p>
  4180. * The PHP code to be highlighted. This should include the opening tag.
  4181. * </p>
  4182. * @param return bool[optional] <p>
  4183. * Set this parameter to true to make this function return the
  4184. * highlighted code.
  4185. * </p>
  4186. * @return mixed If return is set to true, returns the highlighted
  4187. * code as a string instead of printing it out. Otherwise, it will return
  4188. * true on success, false on failure.
  4189. */
  4190. function highlight_string ($str, $return = null) {}
  4191. /**
  4192. * Return source with stripped comments and whitespace
  4193. * @link http://www.php.net/manual/en/function.php-strip-whitespace.php
  4194. * @param filename string <p>
  4195. * Path to the PHP file.
  4196. * </p>
  4197. * @return string The stripped source code will be returned on success, or an empty string
  4198. * on failure.
  4199. * </p>
  4200. * <p>
  4201. * This function works as described as of PHP 5.0.1. Before this it would
  4202. * only return an empty string. For more information on this bug and its
  4203. * prior behavior, see bug report
  4204. * #29606.
  4205. */
  4206. function php_strip_whitespace ($filename) {}
  4207. /**
  4208. * Gets the value of a configuration option
  4209. * @link http://www.php.net/manual/en/function.ini-get.php
  4210. * @param varname string <p>
  4211. * The configuration option name.
  4212. * </p>
  4213. * @return string the value of the configuration option as a string on success, or
  4214. * an empty string on failure or for null values.
  4215. */
  4216. function ini_get ($varname) {}
  4217. /**
  4218. * Gets all configuration options
  4219. * @link http://www.php.net/manual/en/function.ini-get-all.php
  4220. * @param extension string[optional] <p>
  4221. * An optional extension name. If set, the function return only options
  4222. * specific for that extension.
  4223. * </p>
  4224. * @param details bool[optional] <p>
  4225. * Retrieve details settings or only the current value for each setting.
  4226. * Default is true (retrieve details).
  4227. * </p>
  4228. * @return array an associative array with directive name as the array key.
  4229. * </p>
  4230. * <p>
  4231. * When details is true (default) the array will
  4232. * contain global_value (set in
  4233. * &php.ini;), local_value (perhaps set with
  4234. * ini_set or &htaccess;), and
  4235. * access (the access level).
  4236. * </p>
  4237. * <p>
  4238. * When details is false the value will be the
  4239. * current value of the option.
  4240. * </p>
  4241. * <p>
  4242. * See the manual section
  4243. * for information on what access levels mean.
  4244. * </p>
  4245. * <p>
  4246. * It's possible for a directive to have multiple access levels, which is
  4247. * why access shows the appropriate bitmask values.
  4248. */
  4249. function ini_get_all ($extension = null, $details = null) {}
  4250. /**
  4251. * Sets the value of a configuration option
  4252. * @link http://www.php.net/manual/en/function.ini-set.php
  4253. * @param varname string <p>
  4254. * </p>
  4255. * <p>
  4256. * Not all the available options can be changed using
  4257. * ini_set. There is a list of all available options
  4258. * in the appendix.
  4259. * </p>
  4260. * @param newvalue string <p>
  4261. * The new value for the option.
  4262. * </p>
  4263. * @return string the old value on success, false on failure.
  4264. */
  4265. function ini_set ($varname, $newvalue) {}
  4266. /**
  4267. * &Alias; <function>ini_set</function>
  4268. * @link http://www.php.net/manual/en/function.ini-alter.php
  4269. * @param varname
  4270. * @param newvalue
  4271. */
  4272. function ini_alter ($varname, $newvalue) {}
  4273. /**
  4274. * Restores the value of a configuration option
  4275. * @link http://www.php.net/manual/en/function.ini-restore.php
  4276. * @param varname string <p>
  4277. * The configuration option name.
  4278. * </p>
  4279. * @return void
  4280. */
  4281. function ini_restore ($varname) {}
  4282. /**
  4283. * Gets the current include_path configuration option
  4284. * @link http://www.php.net/manual/en/function.get-include-path.php
  4285. * @return string the path, as a string.
  4286. */
  4287. function get_include_path () {}
  4288. /**
  4289. * Sets the include_path configuration option
  4290. * @link http://www.php.net/manual/en/function.set-include-path.php
  4291. * @param new_include_path string <p>
  4292. * The new value for the include_path
  4293. * </p>
  4294. * @return string the old include_path on
  4295. * success&return.falseforfailure;.
  4296. */
  4297. function set_include_path ($new_include_path) {}
  4298. /**
  4299. * Restores the value of the include_path configuration option
  4300. * @link http://www.php.net/manual/en/function.restore-include-path.php
  4301. * @return void
  4302. */
  4303. function restore_include_path () {}
  4304. /**
  4305. * Send a cookie
  4306. * @link http://www.php.net/manual/en/function.setcookie.php
  4307. * @param name string <p>
  4308. * The name of the cookie.
  4309. * </p>
  4310. * @param value string[optional] <p>
  4311. * The value of the cookie. This value is stored on the clients
  4312. * computer; do not store sensitive information.
  4313. * Assuming the name is 'cookiename', this
  4314. * value is retrieved through $_COOKIE['cookiename']
  4315. * </p>
  4316. * @param expire int[optional] <p>
  4317. * The time the cookie expires. This is a Unix timestamp so is
  4318. * in number of seconds since the epoch. In other words, you'll
  4319. * most likely set this with the time function
  4320. * plus the number of seconds before you want it to expire. Or
  4321. * you might use mktime.
  4322. * time()+60*60*24*30 will set the cookie to
  4323. * expire in 30 days. If set to 0, or omitted, the cookie will expire at
  4324. * the end of the session (when the browser closes).
  4325. * </p>
  4326. * <p>
  4327. * <p>
  4328. * You may notice the expire parameter takes on a
  4329. * Unix timestamp, as opposed to the date format Wdy, DD-Mon-YYYY
  4330. * HH:MM:SS GMT, this is because PHP does this conversion
  4331. * internally.
  4332. * </p>
  4333. * <p>
  4334. * expire is compared to the client's time which can
  4335. * differ from server's time.
  4336. * </p>
  4337. * </p>
  4338. * @param path string[optional] <p>
  4339. * The path on the server in which the cookie will be available on.
  4340. * If set to '/', the cookie will be available
  4341. * within the entire domain. If set to
  4342. * '/foo/', the cookie will only be available
  4343. * within the /foo/ directory and all
  4344. * sub-directories such as /foo/bar/ of
  4345. * domain. The default value is the
  4346. * current directory that the cookie is being set in.
  4347. * </p>
  4348. * @param domain string[optional] <p>
  4349. * The domain that the cookie is available.
  4350. * To make the cookie available on all subdomains of example.com
  4351. * then you'd set it to '.example.com'. The
  4352. * . is not required but makes it compatible
  4353. * with more browsers. Setting it to www.example.com
  4354. * will make the cookie only available in the www
  4355. * subdomain. Refer to tail matching in the
  4356. * spec for details.
  4357. * </p>
  4358. * @param secure bool[optional] <p>
  4359. * Indicates that the cookie should only be transmitted over a
  4360. * secure HTTPS connection from the client. When set to true, the
  4361. * cookie will only be set if a secure connection exists.
  4362. * On the server-side, it's on the programmer to send this
  4363. * kind of cookie only on secure connection (e.g. with respect to
  4364. * $_SERVER["HTTPS"]).
  4365. * </p>
  4366. * @param httponly bool[optional] <p>
  4367. * When true the cookie will be made accessible only through the HTTP
  4368. * protocol. This means that the cookie won't be accessible by
  4369. * scripting languages, such as JavaScript. This setting can effectively
  4370. * help to reduce identity theft through XSS attacks (although it is
  4371. * not supported by all browsers). Added in PHP 5.2.0.
  4372. * true or false
  4373. * </p>
  4374. * @return bool If output exists prior to calling this function,
  4375. * setcookie will fail and return false. If
  4376. * setcookie successfully runs, it will return true.
  4377. * This does not indicate whether the user accepted the cookie.
  4378. */
  4379. function setcookie ($name, $value = null, $expire = null, $path = null, $domain = null, $secure = null, $httponly = null) {}
  4380. /**
  4381. * Send a cookie without urlencoding the cookie value
  4382. * @link http://www.php.net/manual/en/function.setrawcookie.php
  4383. * @param name string
  4384. * @param value string[optional]
  4385. * @param expire int[optional]
  4386. * @param path string[optional]
  4387. * @param domain string[optional]
  4388. * @param secure bool[optional]
  4389. * @param httponly bool[optional]
  4390. * @return bool Returns true on success or false on failure.
  4391. */
  4392. function setrawcookie ($name, $value = null, $expire = null, $path = null, $domain = null, $secure = null, $httponly = null) {}
  4393. /**
  4394. * Send a raw HTTP header
  4395. * @link http://www.php.net/manual/en/function.header.php
  4396. * @param string string <p>
  4397. * The header string.
  4398. * </p>
  4399. * <p>
  4400. * There are two special-case header calls. The first is a header
  4401. * that starts with the string "HTTP/" (case is not
  4402. * significant), which will be used to figure out the HTTP status
  4403. * code to send. For example, if you have configured Apache to
  4404. * use a PHP script to handle requests for missing files (using
  4405. * the ErrorDocument directive), you may want to
  4406. * make sure that your script generates the proper status code.
  4407. * </p>
  4408. * <pre>
  4409. * &lt;?php
  4410. * header("HTTP/1.0 404 Not Found");
  4411. * ?&gt;
  4412. * </pre>
  4413. * <p>
  4414. * For FastCGI you must use the following for a 404 response:
  4415. * </p>
  4416. * <pre>
  4417. * &lt;?php
  4418. * header("Status: 404 Not Found");
  4419. * ?&gt;
  4420. * </pre>
  4421. * <p>
  4422. * The second special case is the "Location:" header. Not only does
  4423. * it send this header back to the browser, but it also returns a
  4424. * REDIRECT (302) status code to the browser
  4425. * unless the 201 or a 3xx status code has already been set.
  4426. * </p>
  4427. * <pre>
  4428. * &lt;?php
  4429. * header("Location: http://www.example.com/"); /&#42; Redirect browser &#42;/
  4430. * /&#42; Make sure that code below does not get executed when we redirect. &#42;/
  4431. * exit;
  4432. * ?&gt;
  4433. * </pre>
  4434. * @param replace bool[optional] <p>
  4435. * The optional replace parameter indicates
  4436. * whether the header should replace a previous similar header, or
  4437. * add a second header of the same type. By default it will replace,
  4438. * but if you pass in false as the second argument you can force
  4439. * multiple headers of the same type. For example:
  4440. * </p>
  4441. * <pre>
  4442. * &lt;?php
  4443. * header('WWW-Authenticate: Negotiate');
  4444. * header('WWW-Authenticate: NTLM', false);
  4445. * ?&gt;
  4446. * </pre>
  4447. * @param http_response_code int[optional] <p>
  4448. * Forces the HTTP response code to the specified value. Note that this parameter only has an
  4449. * effect if the string is not empty.
  4450. * </p>
  4451. * @return void
  4452. */
  4453. function header ($string, $replace = null, $http_response_code = null) {}
  4454. /**
  4455. * Remove previously set headers
  4456. * @link http://www.php.net/manual/en/function.header-remove.php
  4457. * @param name string[optional] <p>
  4458. * The header name to be removed.
  4459. * </p>
  4460. * This parameter is case-insensitive.
  4461. * @return void
  4462. */
  4463. function header_remove ($name = null) {}
  4464. /**
  4465. * Checks if or where headers have been sent
  4466. * @link http://www.php.net/manual/en/function.headers-sent.php
  4467. * @param file string[optional] <p>
  4468. * If the optional file and
  4469. * line parameters are set,
  4470. * headers_sent will put the PHP source file name
  4471. * and line number where output started in the file
  4472. * and line variables.
  4473. * </p>
  4474. * @param line int[optional] <p>
  4475. * The line number where the output started.
  4476. * </p>
  4477. * @return bool headers_sent will return false if no HTTP headers
  4478. * have already been sent or true otherwise.
  4479. */
  4480. function headers_sent (&$file = null, &$line = null) {}
  4481. /**
  4482. * Returns a list of response headers sent (or ready to send)
  4483. * @link http://www.php.net/manual/en/function.headers-list.php
  4484. * @return array a numerically indexed array of headers.
  4485. */
  4486. function headers_list () {}
  4487. /**
  4488. * Check whether client disconnected
  4489. * @link http://www.php.net/manual/en/function.connection-aborted.php
  4490. * @return int 1 if client disconnected, 0 otherwise.
  4491. */
  4492. function connection_aborted () {}
  4493. /**
  4494. * Returns connection status bitfield
  4495. * @link http://www.php.net/manual/en/function.connection-status.php
  4496. * @return int the connection status bitfield, which can be used against the
  4497. * CONNECTION_XXX constants to determine the connection
  4498. * status.
  4499. */
  4500. function connection_status () {}
  4501. /**
  4502. * Set whether a client disconnect should abort script execution
  4503. * @link http://www.php.net/manual/en/function.ignore-user-abort.php
  4504. * @param value string[optional] <p>
  4505. * If set, this function will set the ignore_user_abort ini setting
  4506. * to the given value. If not, this function will
  4507. * only return the previous setting without changing it.
  4508. * </p>
  4509. * @return int the previous setting, as an integer.
  4510. */
  4511. function ignore_user_abort ($value = null) {}
  4512. /**
  4513. * Parse a configuration file
  4514. * @link http://www.php.net/manual/en/function.parse-ini-file.php
  4515. * @param filename string <p>
  4516. * The filename of the ini file being parsed.
  4517. * </p>
  4518. * @param process_sections bool[optional] <p>
  4519. * By setting the process_sections
  4520. * parameter to true, you get a multidimensional array, with
  4521. * the section names and settings included. The default
  4522. * for process_sections is false
  4523. * </p>
  4524. * @param scanner_mode int[optional] <p>
  4525. * Can either be INI_SCANNER_NORMAL (default) or
  4526. * INI_SCANNER_RAW. If INI_SCANNER_RAW
  4527. * is supplied, then option values will not be parsed.
  4528. * </p>
  4529. * @return array The settings are returned as an associative array on success,
  4530. * and false on failure.
  4531. */
  4532. function parse_ini_file ($filename, $process_sections = null, $scanner_mode = null) {}
  4533. /**
  4534. * Parse a configuration string
  4535. * @link http://www.php.net/manual/en/function.parse-ini-string.php
  4536. * @param ini string <p>
  4537. * The contents of the ini file being parsed.
  4538. * </p>
  4539. * @param process_sections bool[optional] <p>
  4540. * By setting the process_sections
  4541. * parameter to true, you get a multidimensional array, with
  4542. * the section names and settings included. The default
  4543. * for process_sections is false
  4544. * </p>
  4545. * @param scanner_mode int[optional] <p>
  4546. * Can either be INI_SCANNER_NORMAL (default) or
  4547. * INI_SCANNER_RAW. If INI_SCANNER_RAW
  4548. * is supplied, then option values will not be parsed.
  4549. * </p>
  4550. * @return array The settings are returned as an associative array on success,
  4551. * and false on failure.
  4552. */
  4553. function parse_ini_string ($ini, $process_sections = null, $scanner_mode = null) {}
  4554. /**
  4555. * Tells whether the file was uploaded via HTTP POST
  4556. * @link http://www.php.net/manual/en/function.is-uploaded-file.php
  4557. * @param filename string <p>
  4558. * The filename being checked.
  4559. * </p>
  4560. * @return bool Returns true on success or false on failure.
  4561. */
  4562. function is_uploaded_file ($filename) {}
  4563. /**
  4564. * Moves an uploaded file to a new location
  4565. * @link http://www.php.net/manual/en/function.move-uploaded-file.php
  4566. * @param filename string <p>
  4567. * The filename of the uploaded file.
  4568. * </p>
  4569. * @param destination string <p>
  4570. * The destination of the moved file.
  4571. * </p>
  4572. * @return bool If filename is not a valid upload file,
  4573. * then no action will occur, and
  4574. * move_uploaded_file will return
  4575. * false.
  4576. * </p>
  4577. * <p>
  4578. * If filename is a valid upload file, but
  4579. * cannot be moved for some reason, no action will occur, and
  4580. * move_uploaded_file will return
  4581. * false. Additionally, a warning will be issued.
  4582. */
  4583. function move_uploaded_file ($filename, $destination) {}
  4584. /**
  4585. * Get the Internet host name corresponding to a given IP address
  4586. * @link http://www.php.net/manual/en/function.gethostbyaddr.php
  4587. * @param ip_address string <p>
  4588. * The host IP address.
  4589. * </p>
  4590. * @return string the host name or the unmodified ip_address
  4591. * on failure.
  4592. */
  4593. function gethostbyaddr ($ip_address) {}
  4594. /**
  4595. * Get the IPv4 address corresponding to a given Internet host name
  4596. * @link http://www.php.net/manual/en/function.gethostbyname.php
  4597. * @param hostname string <p>
  4598. * The host name.
  4599. * </p>
  4600. * @return string the IPv4 address or a string containing the unmodified
  4601. * hostname on failure.
  4602. */
  4603. function gethostbyname ($hostname) {}
  4604. /**
  4605. * Get a list of IPv4 addresses corresponding to a given Internet host
  4606. name
  4607. * @link http://www.php.net/manual/en/function.gethostbynamel.php
  4608. * @param hostname string <p>
  4609. * The host name.
  4610. * </p>
  4611. * @return array an array of IPv4 addresses or false if
  4612. * hostname could not be resolved.
  4613. */
  4614. function gethostbynamel ($hostname) {}
  4615. /**
  4616. * Gets the host name
  4617. * @link http://www.php.net/manual/en/function.gethostname.php
  4618. * @return string a string with the hostname on success, otherwise false is
  4619. * returned.
  4620. */
  4621. function gethostname () {}
  4622. /**
  4623. * &Alias; <function>checkdnsrr</function>
  4624. * @link http://www.php.net/manual/en/function.dns-check-record.php
  4625. * @param host
  4626. * @param type[optional]
  4627. */
  4628. function dns_check_record ($host, $type) {}
  4629. /**
  4630. * Check DNS records corresponding to a given Internet host name or IP address
  4631. * @link http://www.php.net/manual/en/function.checkdnsrr.php
  4632. * @param host string <p>
  4633. * host may either be the IP address in
  4634. * dotted-quad notation or the host name.
  4635. * </p>
  4636. * @param type string[optional] <p>
  4637. * type may be any one of: A, MX, NS, SOA,
  4638. * PTR, CNAME, AAAA, A6, SRV, NAPTR, TXT or ANY.
  4639. * </p>
  4640. * @return bool true if any records are found; returns false if no records
  4641. * were found or if an error occurred.
  4642. */
  4643. function checkdnsrr ($host, $type = null) {}
  4644. /**
  4645. * &Alias; <function>getmxrr</function>
  4646. * @link http://www.php.net/manual/en/function.dns-get-mx.php
  4647. * @param hostname
  4648. * @param mxhosts
  4649. * @param weight[optional]
  4650. */
  4651. function dns_get_mx ($hostname, &$mxhosts, &$weight) {}
  4652. /**
  4653. * Get MX records corresponding to a given Internet host name
  4654. * @link http://www.php.net/manual/en/function.getmxrr.php
  4655. * @param hostname string <p>
  4656. * The Internet host name.
  4657. * </p>
  4658. * @param mxhosts array <p>
  4659. * A list of the MX records found is placed into the array
  4660. * mxhosts.
  4661. * </p>
  4662. * @param weight array[optional] <p>
  4663. * If the weight array is given, it will be filled
  4664. * with the weight information gathered.
  4665. * </p>
  4666. * @return bool true if any records are found; returns false if no records
  4667. * were found or if an error occurred.
  4668. */
  4669. function getmxrr ($hostname, array &$mxhosts, array &$weight = null) {}
  4670. /**
  4671. * Fetch DNS Resource Records associated with a hostname
  4672. * @link http://www.php.net/manual/en/function.dns-get-record.php
  4673. * @param hostname string <p>
  4674. * hostname should be a valid DNS hostname such
  4675. * as "www.example.com". Reverse lookups can be generated
  4676. * using in-addr.arpa notation, but
  4677. * gethostbyaddr is more suitable for
  4678. * the majority of reverse lookups.
  4679. * </p>
  4680. * <p>
  4681. * Per DNS standards, email addresses are given in user.host format (for
  4682. * example: hostmaster.example.com as opposed to hostmaster@example.com),
  4683. * be sure to check this value and modify if necessary before using it
  4684. * with a functions such as mail.
  4685. * </p>
  4686. * @param type int[optional] <p>
  4687. * By default, dns_get_record will search for any
  4688. * resource records associated with hostname.
  4689. * To limit the query, specify the optional type
  4690. * parameter. May be any one of the following:
  4691. * DNS_A, DNS_CNAME,
  4692. * DNS_HINFO, DNS_MX,
  4693. * DNS_NS, DNS_PTR,
  4694. * DNS_SOA, DNS_TXT,
  4695. * DNS_AAAA, DNS_SRV,
  4696. * DNS_NAPTR, DNS_A6,
  4697. * DNS_ALL or DNS_ANY.
  4698. * </p>
  4699. * <p>
  4700. * Because of eccentricities in the performance of libresolv
  4701. * between platforms, DNS_ANY will not
  4702. * always return every record, the slower DNS_ALL
  4703. * will collect all records more reliably.
  4704. * </p>
  4705. * @param authns array[optional] <p>
  4706. * Passed by reference and, if given, will be populated with Resource
  4707. * Records for the Authoritative Name Servers.
  4708. * </p>
  4709. * @param addtl array[optional] <p>
  4710. * Passed by reference and, if given, will be populated with any
  4711. * Additional Records.
  4712. * </p>
  4713. * @return array This function returns an array of associative arrays. Each associative array contains
  4714. * at minimum the following keys:
  4715. * <table>
  4716. * Basic DNS attributes
  4717. * <tr valign="top">
  4718. * <td>Attribute</td>
  4719. * <td>Meaning</td>
  4720. * </tr>
  4721. * <tr valign="top">
  4722. * <td>host</td>
  4723. * <td>
  4724. * The record in the DNS namespace to which the rest of the associated data refers.
  4725. * </td>
  4726. * </tr>
  4727. * <tr valign="top">
  4728. * <td>class</td>
  4729. * <td>
  4730. * dns_get_record only returns Internet class records and as
  4731. * such this parameter will always return IN.
  4732. * </td>
  4733. * </tr>
  4734. * <tr valign="top">
  4735. * <td>type</td>
  4736. * <td>
  4737. * String containing the record type. Additional attributes will also be contained
  4738. * in the resulting array dependant on the value of type. See table below.
  4739. * </td>
  4740. * </tr>
  4741. * <tr valign="top">
  4742. * <td>ttl</td>
  4743. * <td>
  4744. * "Time To Live" remaining for this record. This will not equal
  4745. * the record's original ttl, but will rather equal the original ttl minus whatever
  4746. * length of time has passed since the authoritative name server was queried.
  4747. * </td>
  4748. * </tr>
  4749. * </table>
  4750. * </p>
  4751. * <p>
  4752. * <table>
  4753. * Other keys in associative arrays dependant on 'type'
  4754. * <tr valign="top">
  4755. * <td>Type</td>
  4756. * <td>Extra Columns</td>
  4757. * </tr>
  4758. * <tr valign="top">
  4759. * <td>A</td>
  4760. * <td>
  4761. * ip: An IPv4 addresses in dotted decimal notation.
  4762. * </td>
  4763. * </tr>
  4764. * <tr valign="top">
  4765. * <td>MX</td>
  4766. * <td>
  4767. * pri: Priority of mail exchanger.
  4768. * Lower numbers indicate greater priority.
  4769. * target: FQDN of the mail exchanger.
  4770. * See also dns_get_mx.
  4771. * </td>
  4772. * </tr>
  4773. * <tr valign="top">
  4774. * <td>CNAME</td>
  4775. * <td>
  4776. * target: FQDN of location in DNS namespace to which
  4777. * the record is aliased.
  4778. * </td>
  4779. * </tr>
  4780. * <tr valign="top">
  4781. * <td>NS</td>
  4782. * <td>
  4783. * target: FQDN of the name server which is authoritative
  4784. * for this hostname.
  4785. * </td>
  4786. * </tr>
  4787. * <tr valign="top">
  4788. * <td>PTR</td>
  4789. * <td>
  4790. * target: Location within the DNS namespace to which
  4791. * this record points.
  4792. * </td>
  4793. * </tr>
  4794. * <tr valign="top">
  4795. * <td>TXT</td>
  4796. * <td>
  4797. * txt: Arbitrary string data associated with this record.
  4798. * </td>
  4799. * </tr>
  4800. * <tr valign="top">
  4801. * <td>HINFO</td>
  4802. * <td>
  4803. * cpu: IANA number designating the CPU of the machine
  4804. * referenced by this record.
  4805. * os: IANA number designating the Operating System on
  4806. * the machine referenced by this record.
  4807. * See IANA's Operating System
  4808. * Names for the meaning of these values.
  4809. * </td>
  4810. * </tr>
  4811. * <tr valign="top">
  4812. * <td>SOA</td>
  4813. * <td>
  4814. * mname: FQDN of the machine from which the resource
  4815. * records originated.
  4816. * rname: Email address of the administrative contain
  4817. * for this domain.
  4818. * serial: Serial # of this revision of the requested
  4819. * domain.
  4820. * refresh: Refresh interval (seconds) secondary name
  4821. * servers should use when updating remote copies of this domain.
  4822. * retry: Length of time (seconds) to wait after a
  4823. * failed refresh before making a second attempt.
  4824. * expire: Maximum length of time (seconds) a secondary
  4825. * DNS server should retain remote copies of the zone data without a
  4826. * successful refresh before discarding.
  4827. * minimum-ttl: Minimum length of time (seconds) a
  4828. * client can continue to use a DNS resolution before it should request
  4829. * a new resolution from the server. Can be overridden by individual
  4830. * resource records.
  4831. * </td>
  4832. * </tr>
  4833. * <tr valign="top">
  4834. * <td>AAAA</td>
  4835. * <td>
  4836. * ipv6: IPv6 address
  4837. * </td>
  4838. * </tr>
  4839. * <tr valign="top">
  4840. * <td>A6(PHP &gt;= 5.1.0)</td>
  4841. * <td>
  4842. * masklen: Length (in bits) to inherit from the target
  4843. * specified by chain.
  4844. * ipv6: Address for this specific record to merge with
  4845. * chain.
  4846. * chain: Parent record to merge with
  4847. * ipv6 data.
  4848. * </td>
  4849. * </tr>
  4850. * <tr valign="top">
  4851. * <td>SRV</td>
  4852. * <td>
  4853. * pri: (Priority) lowest priorities should be used first.
  4854. * weight: Ranking to weight which of commonly prioritized
  4855. * targets should be chosen at random.
  4856. * target and port: hostname and port
  4857. * where the requested service can be found.
  4858. * For additional information see: RFC 2782
  4859. * </td>
  4860. * </tr>
  4861. * <tr valign="top">
  4862. * <td>NAPTR</td>
  4863. * <td>
  4864. * order and pref: Equivalent to
  4865. * pri and weight above.
  4866. * flags, services, regex,
  4867. * and replacement: Parameters as defined by
  4868. * RFC 2915.
  4869. * </td>
  4870. * </tr>
  4871. * </table>
  4872. */
  4873. function dns_get_record ($hostname, $type = null, array &$authns = null, array &$addtl = null) {}
  4874. /**
  4875. * Get the integer value of a variable
  4876. * @link http://www.php.net/manual/en/function.intval.php
  4877. * @param var mixed <p>
  4878. * The scalar value being converted to an integer
  4879. * </p>
  4880. * @param base int[optional] <p>
  4881. * The base for the conversion
  4882. * </p>
  4883. * @return int The integer value of var on success, or 0 on
  4884. * failure. Empty arrays and objects return 0, non-empty arrays and
  4885. * objects return 1.
  4886. * </p>
  4887. * <p>
  4888. * The maximum value depends on the system. 32 bit systems have a
  4889. * maximum signed integer range of -2147483648 to 2147483647. So for example
  4890. * on such a system, intval('1000000000000') will return
  4891. * 2147483647. The maximum signed integer value for 64 bit systems is
  4892. * 9223372036854775807.
  4893. * </p>
  4894. * <p>
  4895. * Strings will most likely return 0 although this depends on the
  4896. * leftmost characters of the string. The common rules of
  4897. * integer casting
  4898. * apply.
  4899. */
  4900. function intval ($var, $base = null) {}
  4901. /**
  4902. * Get float value of a variable
  4903. * @link http://www.php.net/manual/en/function.floatval.php
  4904. * @param var mixed <p>
  4905. * May be any scalar type. floatval should not be used
  4906. * on objects, as doing so will emit an E_NOTICE level
  4907. * error and return 1.
  4908. * </p>
  4909. * @return float The float value of the given variable. Empty arrays return 0, non-empty
  4910. * arrays return 1.
  4911. */
  4912. function floatval ($var) {}
  4913. /**
  4914. * &Alias; <function>floatval</function>
  4915. * @link http://www.php.net/manual/en/function.doubleval.php
  4916. * @param var
  4917. */
  4918. function doubleval ($var) {}
  4919. /**
  4920. * Get string value of a variable
  4921. * @link http://www.php.net/manual/en/function.strval.php
  4922. * @param var mixed <p>
  4923. * The variable that is being converted to a string.
  4924. * </p>
  4925. * <p>
  4926. * var may be any scalar type. You cannot use
  4927. * strval on arrays or objects.
  4928. * </p>
  4929. * @return string The string value of var.
  4930. */
  4931. function strval ($var) {}
  4932. /**
  4933. * Get the type of a variable
  4934. * @link http://www.php.net/manual/en/function.gettype.php
  4935. * @param var mixed <p>
  4936. * The variable being type checked.
  4937. * </p>
  4938. * @return string Possibles values for the returned string are:
  4939. * "boolean"
  4940. * "integer"
  4941. * "double" (for historical reasons "double" is
  4942. * returned in case of a float, and not simply
  4943. * "float")
  4944. * "string"
  4945. * "array"
  4946. * "object"
  4947. * "resource"
  4948. * "NULL"
  4949. * "unknown type"
  4950. */
  4951. function gettype ($var) {}
  4952. /**
  4953. * Set the type of a variable
  4954. * @link http://www.php.net/manual/en/function.settype.php
  4955. * @param var mixed <p>
  4956. * The variable being converted.
  4957. * </p>
  4958. * @param type string <p>
  4959. * Possibles values of type are:
  4960. * "boolean" (or, since PHP 4.2.0, "bool")
  4961. * @return bool Returns true on success or false on failure.
  4962. */
  4963. function settype (&$var, $type) {}
  4964. /**
  4965. * Finds whether a variable is &null;
  4966. * @link http://www.php.net/manual/en/function.is-null.php
  4967. * @param var mixed <p>
  4968. * The variable being evaluated.
  4969. * </p>
  4970. * @return bool true if var is null, false
  4971. * otherwise.
  4972. */
  4973. function is_null ($var) {}
  4974. /**
  4975. * Finds whether a variable is a resource
  4976. * @link http://www.php.net/manual/en/function.is-resource.php
  4977. * @param var mixed <p>
  4978. * The variable being evaluated.
  4979. * </p>
  4980. * @return bool true if var is a resource,
  4981. * false otherwise.
  4982. */
  4983. function is_resource ($var) {}
  4984. /**
  4985. * Finds out whether a variable is a boolean
  4986. * @link http://www.php.net/manual/en/function.is-bool.php
  4987. * @param var mixed <p>
  4988. * The variable being evaluated.
  4989. * </p>
  4990. * @return bool true if var is a boolean,
  4991. * false otherwise.
  4992. */
  4993. function is_bool ($var) {}
  4994. /**
  4995. * &Alias; <function>is_int</function>
  4996. * @link http://www.php.net/manual/en/function.is-long.php
  4997. * @param var
  4998. */
  4999. function is_long ($var) {}
  5000. /**
  5001. * Finds whether the type of a variable is float
  5002. * @link http://www.php.net/manual/en/function.is-float.php
  5003. * @param var mixed <p>
  5004. * The variable being evaluated.
  5005. * </p>
  5006. * @return bool true if var is a float,
  5007. * false otherwise.
  5008. */
  5009. function is_float ($var) {}
  5010. /**
  5011. * Find whether the type of a variable is integer
  5012. * @link http://www.php.net/manual/en/function.is-int.php
  5013. * @param var mixed <p>
  5014. * The variable being evaluated.
  5015. * </p>
  5016. * @return bool true if var is an integer,
  5017. * false otherwise.
  5018. */
  5019. function is_int ($var) {}
  5020. /**
  5021. * &Alias; <function>is_int</function>
  5022. * @link http://www.php.net/manual/en/function.is-integer.php
  5023. * @param var
  5024. */
  5025. function is_integer ($var) {}
  5026. /**
  5027. * &Alias; <function>is_float</function>
  5028. * @link http://www.php.net/manual/en/function.is-double.php
  5029. * @param var
  5030. */
  5031. function is_double ($var) {}
  5032. /**
  5033. * &Alias; <function>is_float</function>
  5034. * @link http://www.php.net/manual/en/function.is-real.php
  5035. * @param var
  5036. */
  5037. function is_real ($var) {}
  5038. /**
  5039. * Finds whether a variable is a number or a numeric string
  5040. * @link http://www.php.net/manual/en/function.is-numeric.php
  5041. * @param var mixed <p>
  5042. * The variable being evaluated.
  5043. * </p>
  5044. * @return bool true if var is a number or a numeric
  5045. * string, false otherwise.
  5046. */
  5047. function is_numeric ($var) {}
  5048. /**
  5049. * Find whether the type of a variable is string
  5050. * @link http://www.php.net/manual/en/function.is-string.php
  5051. * @param var mixed <p>
  5052. * The variable being evaluated.
  5053. * </p>
  5054. * @return bool true if var is of type string,
  5055. * false otherwise.
  5056. */
  5057. function is_string ($var) {}
  5058. /**
  5059. * Finds whether a variable is an array
  5060. * @link http://www.php.net/manual/en/function.is-array.php
  5061. * @param var mixed <p>
  5062. * The variable being evaluated.
  5063. * </p>
  5064. * @return bool true if var is an array,
  5065. * false otherwise.
  5066. */
  5067. function is_array ($var) {}
  5068. /**
  5069. * Finds whether a variable is an object
  5070. * @link http://www.php.net/manual/en/function.is-object.php
  5071. * @param var mixed <p>
  5072. * The variable being evaluated.
  5073. * </p>
  5074. * @return bool true if var is an object,
  5075. * false otherwise.
  5076. */
  5077. function is_object ($var) {}
  5078. /**
  5079. * Finds whether a variable is a scalar
  5080. * @link http://www.php.net/manual/en/function.is-scalar.php
  5081. * @param var mixed <p>
  5082. * The variable being evaluated.
  5083. * </p>
  5084. * @return bool true if var is a scalar false
  5085. * otherwise.
  5086. */
  5087. function is_scalar ($var) {}
  5088. /**
  5089. * Verify that the contents of a variable can be called as a function
  5090. * @link http://www.php.net/manual/en/function.is-callable.php
  5091. * @param name callback <p>
  5092. * Can be either the name of a function stored in a string variable, or
  5093. * an object and the name of a method within the object, like this:
  5094. * array($SomeObject, 'MethodName')
  5095. * </p>
  5096. * @param syntax_only bool[optional] <p>
  5097. * If set to true the function only verifies that
  5098. * name might be a function or method. It will only
  5099. * reject simple variables that are not strings, or an array that does
  5100. * not have a valid structure to be used as a callback. The valid ones
  5101. * are supposed to have only 2 entries, the first of which is an object
  5102. * or a string, and the second a string.
  5103. * </p>
  5104. * @param callable_name string[optional] <p>
  5105. * Receives the "callable name". In the example below it is
  5106. * "someClass::someMethod". Note, however, that despite the implication
  5107. * that someClass::SomeMethod() is a callable static method, this is not
  5108. * the case.
  5109. * </p>
  5110. * @return bool true if name is callable, false
  5111. * otherwise.
  5112. */
  5113. function is_callable ($name, $syntax_only = null, &$callable_name = null) {}
  5114. /**
  5115. * Closes process file pointer
  5116. * @link http://www.php.net/manual/en/function.pclose.php
  5117. * @param handle resource <p>
  5118. * The file pointer must be valid, and must have been returned by a
  5119. * successful call to popen.
  5120. * </p>
  5121. * @return int the termination status of the process that was run.
  5122. */
  5123. function pclose ($handle) {}
  5124. /**
  5125. * Opens process file pointer
  5126. * @link http://www.php.net/manual/en/function.popen.php
  5127. * @param command string <p>
  5128. * The command
  5129. * </p>
  5130. * @param mode string <p>
  5131. * The mode
  5132. * </p>
  5133. * @return resource a file pointer identical to that returned by
  5134. * fopen, except that it is unidirectional (may
  5135. * only be used for reading or writing) and must be closed with
  5136. * pclose. This pointer may be used with
  5137. * fgets, fgetss, and
  5138. * fwrite.
  5139. * </p>
  5140. * <p>
  5141. * If an error occurs, returns false.
  5142. */
  5143. function popen ($command, $mode) {}
  5144. /**
  5145. * Outputs a file
  5146. * @link http://www.php.net/manual/en/function.readfile.php
  5147. * @param filename string <p>
  5148. * The filename being read.
  5149. * </p>
  5150. * @param use_include_path bool[optional] <p>
  5151. * You can use the optional second parameter and set it to true, if
  5152. * you want to search for the file in the include_path, too.
  5153. * </p>
  5154. * @param context resource[optional] <p>
  5155. * A context stream resource.
  5156. * </p>
  5157. * @return int the number of bytes read from the file. If an error
  5158. * occurs, false is returned and unless the function was called as
  5159. * @readfile, an error message is printed.
  5160. */
  5161. function readfile ($filename, $use_include_path = null, $context = null) {}
  5162. /**
  5163. * Rewind the position of a file pointer
  5164. * @link http://www.php.net/manual/en/function.rewind.php
  5165. * @param handle resource <p>
  5166. * The file pointer must be valid, and must point to a file
  5167. * successfully opened by fopen.
  5168. * </p>
  5169. * @return bool Returns true on success or false on failure.
  5170. */
  5171. function rewind ($handle) {}
  5172. /**
  5173. * Removes directory
  5174. * @link http://www.php.net/manual/en/function.rmdir.php
  5175. * @param dirname string <p>
  5176. * Path to the directory.
  5177. * </p>
  5178. * @param context resource[optional] &note.context-support;
  5179. * @return bool Returns true on success or false on failure.
  5180. */
  5181. function rmdir ($dirname, $context = null) {}
  5182. /**
  5183. * Changes the current umask
  5184. * @link http://www.php.net/manual/en/function.umask.php
  5185. * @param mask int[optional] <p>
  5186. * The new umask.
  5187. * </p>
  5188. * @return int umask without arguments simply returns the
  5189. * current umask otherwise the old umask is returned.
  5190. */
  5191. function umask ($mask = null) {}
  5192. /**
  5193. * Closes an open file pointer
  5194. * @link http://www.php.net/manual/en/function.fclose.php
  5195. * @param handle resource <p>
  5196. * The file pointer must be valid, and must point to a file successfully
  5197. * opened by fopen or fsockopen.
  5198. * </p>
  5199. * @return bool Returns true on success or false on failure.
  5200. */
  5201. function fclose ($handle) {}
  5202. /**
  5203. * Tests for end-of-file on a file pointer
  5204. * @link http://www.php.net/manual/en/function.feof.php
  5205. * @param handle resource &fs.validfp.all;
  5206. * @return bool true if the file pointer is at EOF or an error occurs
  5207. * (including socket timeout); otherwise returns false.
  5208. */
  5209. function feof ($handle) {}
  5210. /**
  5211. * Gets character from file pointer
  5212. * @link http://www.php.net/manual/en/function.fgetc.php
  5213. * @param handle resource &fs.validfp.all;
  5214. * @return string a string containing a single character read from the file pointed
  5215. * to by handle. Returns false on EOF.
  5216. */
  5217. function fgetc ($handle) {}
  5218. /**
  5219. * Gets line from file pointer
  5220. * @link http://www.php.net/manual/en/function.fgets.php
  5221. * @param handle resource &fs.validfp.all;
  5222. * @param length int[optional] <p>
  5223. * Reading ends when length - 1 bytes have been
  5224. * read, on a newline (which is included in the return value), or on EOF
  5225. * (whichever comes first). If no length is specified, it will keep
  5226. * reading from the stream until it reaches the end of the line.
  5227. * </p>
  5228. * <p>
  5229. * Until PHP 4.3.0, omitting it would assume 1024 as the line length.
  5230. * If the majority of the lines in the file are all larger than 8KB,
  5231. * it is more resource efficient for your script to specify the maximum
  5232. * line length.
  5233. * </p>
  5234. * @return string a string of up to length - 1 bytes read from
  5235. * the file pointed to by handle.
  5236. * </p>
  5237. * <p>
  5238. * If an error occurs, returns false.
  5239. */
  5240. function fgets ($handle, $length = null) {}
  5241. /**
  5242. * Gets line from file pointer and strip HTML tags
  5243. * @link http://www.php.net/manual/en/function.fgetss.php
  5244. * @param handle resource &fs.validfp.all;
  5245. * @param length int[optional] <p>
  5246. * Length of the data to be retrieved.
  5247. * </p>
  5248. * @param allowable_tags string[optional] <p>
  5249. * You can use the optional third parameter to specify tags which should
  5250. * not be stripped.
  5251. * </p>
  5252. * @return string a string of up to length - 1 bytes read from
  5253. * the file pointed to by handle, with all HTML and PHP
  5254. * code stripped.
  5255. * </p>
  5256. * <p>
  5257. * If an error occurs, returns false.
  5258. */
  5259. function fgetss ($handle, $length = null, $allowable_tags = null) {}
  5260. /**
  5261. * Binary-safe file read
  5262. * @link http://www.php.net/manual/en/function.fread.php
  5263. * @param handle resource &fs.file.pointer;
  5264. * @param length int <p>
  5265. * Up to length number of bytes read.
  5266. * </p>
  5267. * @return string the read string &return.falseforfailure;.
  5268. */
  5269. function fread ($handle, $length) {}
  5270. /**
  5271. * Opens file or URL
  5272. * @link http://www.php.net/manual/en/function.fopen.php
  5273. * @param filename string <p>
  5274. * If filename is of the form "scheme://...", it
  5275. * is assumed to be a URL and PHP will search for a protocol handler
  5276. * (also known as a wrapper) for that scheme. If no wrappers for that
  5277. * protocol are registered, PHP will emit a notice to help you track
  5278. * potential problems in your script and then continue as though
  5279. * filename specifies a regular file.
  5280. * </p>
  5281. * <p>
  5282. * If PHP has decided that filename specifies
  5283. * a local file, then it will try to open a stream on that file.
  5284. * The file must be accessible to PHP, so you need to ensure that
  5285. * the file access permissions allow this access.
  5286. * If you have enabled &safemode;,
  5287. * or open_basedir further
  5288. * restrictions may apply.
  5289. * </p>
  5290. * <p>
  5291. * If PHP has decided that filename specifies
  5292. * a registered protocol, and that protocol is registered as a
  5293. * network URL, PHP will check to make sure that
  5294. * allow_url_fopen is
  5295. * enabled. If it is switched off, PHP will emit a warning and
  5296. * the fopen call will fail.
  5297. * </p>
  5298. * <p>
  5299. * The list of supported protocols can be found in . Some protocols (also referred to as
  5300. * wrappers) support context
  5301. * and/or &php.ini; options. Refer to the specific page for the
  5302. * protocol in use for a list of options which can be set. (e.g.
  5303. * &php.ini; value user_agent used by the
  5304. * http wrapper).
  5305. * </p>
  5306. * <p>
  5307. * On the Windows platform, be careful to escape any backslashes
  5308. * used in the path to the file, or use forward slashes.
  5309. * </p>
  5310. * <pre>
  5311. * &lt;?php
  5312. * $handle = fopen("c:\\folder\\resource.txt", "r");
  5313. * ?&gt;
  5314. * </pre>
  5315. * @param mode string <p>
  5316. * The mode parameter specifies the type of access
  5317. * you require to the stream. It may be any of the following:
  5318. * <table>
  5319. * A list of possible modes for fopen
  5320. * using mode
  5321. * <tr valign="top">
  5322. * <td>mode</td>
  5323. * <td>Description</td>
  5324. * </tr>
  5325. * <tr valign="top">
  5326. * <td>'r'</td>
  5327. * <td>
  5328. * Open for reading only; place the file pointer at the
  5329. * beginning of the file.
  5330. * </td>
  5331. * </tr>
  5332. * <tr valign="top">
  5333. * <td>'r+'</td>
  5334. * <td>
  5335. * Open for reading and writing; place the file pointer at
  5336. * the beginning of the file.
  5337. * </td>
  5338. * </tr>
  5339. * <tr valign="top">
  5340. * <td>'w'</td>
  5341. * <td>
  5342. * Open for writing only; place the file pointer at the
  5343. * beginning of the file and truncate the file to zero length.
  5344. * If the file does not exist, attempt to create it.
  5345. * </td>
  5346. * </tr>
  5347. * <tr valign="top">
  5348. * <td>'w+'</td>
  5349. * <td>
  5350. * Open for reading and writing; place the file pointer at
  5351. * the beginning of the file and truncate the file to zero
  5352. * length. If the file does not exist, attempt to create it.
  5353. * </td>
  5354. * </tr>
  5355. * <tr valign="top">
  5356. * <td>'a'</td>
  5357. * <td>
  5358. * Open for writing only; place the file pointer at the end of
  5359. * the file. If the file does not exist, attempt to create it.
  5360. * </td>
  5361. * </tr>
  5362. * <tr valign="top">
  5363. * <td>'a+'</td>
  5364. * <td>
  5365. * Open for reading and writing; place the file pointer at
  5366. * the end of the file. If the file does not exist, attempt to
  5367. * create it.
  5368. * </td>
  5369. * </tr>
  5370. * <tr valign="top">
  5371. * <td>'x'</td>
  5372. * <td>
  5373. * Create and open for writing only; place the file pointer at the
  5374. * beginning of the file. If the file already exists, the
  5375. * fopen call will fail by returning false and
  5376. * generating an error of level E_WARNING. If
  5377. * the file does not exist, attempt to create it. This is equivalent
  5378. * to specifying O_EXCL|O_CREAT flags for the
  5379. * underlying open(2) system call.
  5380. * </td>
  5381. * </tr>
  5382. * <tr valign="top">
  5383. * <td>'x+'</td>
  5384. * <td>
  5385. * Create and open for reading and writing; place the file pointer at
  5386. * the beginning of the file. If the file already exists, the
  5387. * fopen call will fail by returning false and
  5388. * generating an error of level E_WARNING. If
  5389. * the file does not exist, attempt to create it. This is equivalent
  5390. * to specifying O_EXCL|O_CREAT flags for the
  5391. * underlying open(2) system call.
  5392. * </td>
  5393. * </tr>
  5394. * </table>
  5395. * </p>
  5396. * <p>
  5397. * Different operating system families have different line-ending
  5398. * conventions. When you write a text file and want to insert a line
  5399. * break, you need to use the correct line-ending character(s) for your
  5400. * operating system. Unix based systems use \n as the
  5401. * line ending character, Windows based systems use \r\n
  5402. * as the line ending characters and Macintosh based systems use
  5403. * \r as the line ending character.
  5404. * </p>
  5405. * <p>
  5406. * If you use the wrong line ending characters when writing your files, you
  5407. * might find that other applications that open those files will "look
  5408. * funny".
  5409. * </p>
  5410. * <p>
  5411. * Windows offers a text-mode translation flag ('t')
  5412. * which will transparently translate \n to
  5413. * \r\n when working with the file. In contrast, you
  5414. * can also use 'b' to force binary mode, which will not
  5415. * translate your data. To use these flags, specify either
  5416. * 'b' or 't' as the last character
  5417. * of the mode parameter.
  5418. * </p>
  5419. * <p>
  5420. * The default translation mode depends on the SAPI and version of PHP that
  5421. * you are using, so you are encouraged to always specify the appropriate
  5422. * flag for portability reasons. You should use the 't'
  5423. * mode if you are working with plain-text files and you use
  5424. * \n to delimit your line endings in your script, but
  5425. * expect your files to be readable with applications such as notepad. You
  5426. * should use the 'b' in all other cases.
  5427. * </p>
  5428. * <p>
  5429. * If you do not specify the 'b' flag when working with binary files, you
  5430. * may experience strange problems with your data, including broken image
  5431. * files and strange problems with \r\n characters.
  5432. * </p>
  5433. * <p>
  5434. * For portability, it is strongly recommended that you always
  5435. * use the 'b' flag when opening files with fopen.
  5436. * </p>
  5437. * <p>
  5438. * Again, for portability, it is also strongly recommended that
  5439. * you re-write code that uses or relies upon the 't'
  5440. * mode so that it uses the correct line endings and
  5441. * 'b' mode instead.
  5442. * </p>
  5443. * @param use_include_path bool[optional] <p>
  5444. * The optional third use_include_path parameter
  5445. * can be set to '1' or true if you want to search for the file in the
  5446. * include_path, too.
  5447. * </p>
  5448. * @param context resource[optional] &note.context-support;
  5449. * @return resource a file pointer resource on success, or false on error.
  5450. */
  5451. function fopen ($filename, $mode, $use_include_path = null, $context = null) {}
  5452. /**
  5453. * Output all remaining data on a file pointer
  5454. * @link http://www.php.net/manual/en/function.fpassthru.php
  5455. * @param handle resource &fs.validfp.all;
  5456. * @return int If an error occurs, fpassthru returns
  5457. * false. Otherwise, fpassthru returns
  5458. * the number of characters read from handle
  5459. * and passed through to the output.
  5460. */
  5461. function fpassthru ($handle) {}
  5462. /**
  5463. * Truncates a file to a given length
  5464. * @link http://www.php.net/manual/en/function.ftruncate.php
  5465. * @param handle resource <p>
  5466. * The file pointer.
  5467. * </p>
  5468. * <p>
  5469. * The handle must be open for writing.
  5470. * </p>
  5471. * @param size int <p>
  5472. * The size to truncate to.
  5473. * </p>
  5474. * <p>
  5475. * If size is larger than the file it is extended
  5476. * with null bytes.
  5477. * </p>
  5478. * <p>
  5479. * If size is smaller than the extra data
  5480. * will be lost.
  5481. * </p>
  5482. * @return bool Returns true on success or false on failure.
  5483. */
  5484. function ftruncate ($handle, $size) {}
  5485. /**
  5486. * Gets information about a file using an open file pointer
  5487. * @link http://www.php.net/manual/en/function.fstat.php
  5488. * @param handle resource &fs.file.pointer;
  5489. * @return array an array with the statistics of the file; the format of the array
  5490. * is described in detail on the stat manual page.
  5491. */
  5492. function fstat ($handle) {}
  5493. /**
  5494. * Seeks on a file pointer
  5495. * @link http://www.php.net/manual/en/function.fseek.php
  5496. * @param handle resource &fs.file.pointer;
  5497. * @param offset int <p>
  5498. * The offset.
  5499. * </p>
  5500. * <p>
  5501. * To move to a position before the end-of-file, you need to pass
  5502. * a negative value in offset and
  5503. * set whence
  5504. * to SEEK_END.
  5505. * </p>
  5506. * @param whence int[optional] <p>
  5507. * whence values are:
  5508. * SEEK_SET - Set position equal to offset bytes.
  5509. * SEEK_CUR - Set position to current location plus offset.
  5510. * SEEK_END - Set position to end-of-file plus offset.
  5511. * </p>
  5512. * @return int Upon success, returns 0; otherwise, returns -1. Note that seeking
  5513. * past EOF is not considered an error.
  5514. */
  5515. function fseek ($handle, $offset, $whence = null) {}
  5516. /**
  5517. * Returns the current position of the file read/write pointer
  5518. * @link http://www.php.net/manual/en/function.ftell.php
  5519. * @param handle resource <p>
  5520. * The file pointer must be valid, and must point to a file successfully
  5521. * opened by fopen or popen.
  5522. * ftell gives undefined results for append-only streams
  5523. * (opened with "a" flag).
  5524. * </p>
  5525. * @return int the position of the file pointer referenced by
  5526. * handle as an integer; i.e., its offset into the file stream.
  5527. * </p>
  5528. * <p>
  5529. * If an error occurs, returns false.
  5530. */
  5531. function ftell ($handle) {}
  5532. /**
  5533. * Flushes the output to a file
  5534. * @link http://www.php.net/manual/en/function.fflush.php
  5535. * @param handle resource &fs.validfp.all;
  5536. * @return bool Returns true on success or false on failure.
  5537. */
  5538. function fflush ($handle) {}
  5539. /**
  5540. * Binary-safe file write
  5541. * @link http://www.php.net/manual/en/function.fwrite.php
  5542. * @param handle resource &fs.file.pointer;
  5543. * @param string string <p>
  5544. * The string that is to be written.
  5545. * </p>
  5546. * @param length int[optional] <p>
  5547. * If the length argument is given, writing will
  5548. * stop after length bytes have been written or
  5549. * the end of string is reached, whichever comes
  5550. * first.
  5551. * </p>
  5552. * <p>
  5553. * Note that if the length argument is given,
  5554. * then the magic_quotes_runtime
  5555. * configuration option will be ignored and no slashes will be
  5556. * stripped from string.
  5557. * </p>
  5558. * @return int
  5559. */
  5560. function fwrite ($handle, $string, $length = null) {}
  5561. /**
  5562. * &Alias; <function>fwrite</function>
  5563. * @link http://www.php.net/manual/en/function.fputs.php
  5564. * @param fp
  5565. * @param str
  5566. * @param length[optional]
  5567. */
  5568. function fputs ($fp, $str, $length) {}
  5569. /**
  5570. * Makes directory
  5571. * @link http://www.php.net/manual/en/function.mkdir.php
  5572. * @param pathname string <p>
  5573. * The directory path.
  5574. * </p>
  5575. * @param mode int[optional] <p>
  5576. * The mode is 0777 by default, which means the widest possible
  5577. * access. For more information on modes, read the details
  5578. * on the chmod page.
  5579. * </p>
  5580. * <p>
  5581. * mode is ignored on Windows.
  5582. * </p>
  5583. * <p>
  5584. * Note that you probably want to specify the mode as an octal number,
  5585. * which means it should have a leading zero. The mode is also modified
  5586. * by the current umask, which you can change using
  5587. * umask.
  5588. * </p>
  5589. * @param recursive bool[optional] <p>
  5590. * Allows the creation of nested directories specified in the
  5591. * pathname. Defaults to false.
  5592. * </p>
  5593. * @param context resource[optional] &note.context-support;
  5594. * @return bool Returns true on success or false on failure.
  5595. */
  5596. function mkdir ($pathname, $mode = null, $recursive = null, $context = null) {}
  5597. /**
  5598. * Renames a file or directory
  5599. * @link http://www.php.net/manual/en/function.rename.php
  5600. * @param oldname string <p>
  5601. * </p>
  5602. * <p>
  5603. * The old name. The wrapper used in oldname
  5604. * must match the wrapper used in
  5605. * newname.
  5606. * </p>
  5607. * @param newname string <p>
  5608. * The new name.
  5609. * </p>
  5610. * @param context resource[optional] &note.context-support;
  5611. * @return bool Returns true on success or false on failure.
  5612. */
  5613. function rename ($oldname, $newname, $context = null) {}
  5614. /**
  5615. * Copies file
  5616. * @link http://www.php.net/manual/en/function.copy.php
  5617. * @param source string <p>
  5618. * Path to the source file.
  5619. * </p>
  5620. * @param dest string <p>
  5621. * The destination path. If dest is a URL, the
  5622. * copy operation may fail if the wrapper does not support overwriting of
  5623. * existing files.
  5624. * </p>
  5625. * <p>
  5626. * If the destination file already exists, it will be overwritten.
  5627. * </p>
  5628. * @param context resource[optional] <p>
  5629. * A valid context resource created with
  5630. * stream_context_create.
  5631. * </p>
  5632. * @return bool Returns true on success or false on failure.
  5633. */
  5634. function copy ($source, $dest, $context = null) {}
  5635. /**
  5636. * Create file with unique file name
  5637. * @link http://www.php.net/manual/en/function.tempnam.php
  5638. * @param dir string <p>
  5639. * The directory where the temporary filename will be created.
  5640. * </p>
  5641. * @param prefix string <p>
  5642. * The prefix of the generated temporary filename.
  5643. * </p>
  5644. * Windows uses only the first three characters of prefix.
  5645. * @return string the new temporary filename, or false on
  5646. * failure.
  5647. */
  5648. function tempnam ($dir, $prefix) {}
  5649. /**
  5650. * Creates a temporary file
  5651. * @link http://www.php.net/manual/en/function.tmpfile.php
  5652. * @return resource a file handle, similar to the one returned by
  5653. * fopen, for the new file&return.falseforfailure;.
  5654. */
  5655. function tmpfile () {}
  5656. /**
  5657. * Reads entire file into an array
  5658. * @link http://www.php.net/manual/en/function.file.php
  5659. * @param filename string <p>
  5660. * Path to the file.
  5661. * </p>
  5662. * &tip.fopen-wrapper;
  5663. * @param flags int[optional] <p>
  5664. * The optional parameter flags can be one, or
  5665. * more, of the following constants:
  5666. * FILE_USE_INCLUDE_PATH
  5667. * Search for the file in the include_path.
  5668. * @param context resource[optional] <p>
  5669. * A context resource created with the
  5670. * stream_context_create function.
  5671. * </p>
  5672. * <p>
  5673. * &note.context-support;
  5674. * </p>
  5675. * @return array the file in an array. Each element of the array corresponds to a
  5676. * line in the file, with the newline still attached. Upon failure,
  5677. * file returns false.
  5678. * </p>
  5679. * <p>
  5680. * Each line in the resulting array will include the line ending, unless
  5681. * FILE_IGNORE_NEW_LINES is used, so you still need to
  5682. * use rtrim if you do not want the line ending
  5683. * present.
  5684. */
  5685. function file ($filename, $flags = null, $context = null) {}
  5686. /**
  5687. * Reads entire file into a string
  5688. * @link http://www.php.net/manual/en/function.file-get-contents.php
  5689. * @param filename string <p>
  5690. * Name of the file to read.
  5691. * </p>
  5692. * @param use_include_path bool[optional] <p>
  5693. * As of PHP 5 the FILE_USE_INCLUDE_PATH can be used
  5694. * to trigger include path
  5695. * search.
  5696. * </p>
  5697. * @param context resource[optional] <p>
  5698. * A valid context resource created with
  5699. * stream_context_create. If you don't need to use a
  5700. * custom context, you can skip this parameter by &null;.
  5701. * </p>
  5702. * @param offset int[optional] <p>
  5703. * The offset where the reading starts on the original stream.
  5704. * </p>
  5705. * @param maxlen int[optional] <p>
  5706. * Maximum length of data read. The default is to read until end
  5707. * of file is reached. Note that this parameter is applied to the
  5708. * stream processed by the filters.
  5709. * </p>
  5710. * @return string The function returns the read data&return.falseforfailure;.
  5711. */
  5712. function file_get_contents ($filename, $use_include_path = null, $context = null, $offset = null, $maxlen = null) {}
  5713. /**
  5714. * Write a string to a file
  5715. * @link http://www.php.net/manual/en/function.file-put-contents.php
  5716. * @param filename string <p>
  5717. * Path to the file where to write the data.
  5718. * </p>
  5719. * @param data mixed <p>
  5720. * The data to write. Can be either a string, an
  5721. * array or a stream resource.
  5722. * </p>
  5723. * <p>
  5724. * If data is a stream resource, the
  5725. * remaining buffer of that stream will be copied to the specified file.
  5726. * This is similar with using stream_copy_to_stream.
  5727. * </p>
  5728. * <p>
  5729. * You can also specify the data parameter as a single
  5730. * dimension array. This is equivalent to
  5731. * file_put_contents($filename, implode('', $array)).
  5732. * </p>
  5733. * @param flags int[optional] <p>
  5734. * The value of flags can be any combination of
  5735. * the following flags (with some restrictions), joined with the binary OR
  5736. * (|) operator.
  5737. * </p>
  5738. * <p>
  5739. * <table>
  5740. * Available flags
  5741. * <tr valign="top">
  5742. * <td>Flag</td>
  5743. * <td>Description</td>
  5744. * </tr>
  5745. * <tr valign="top">
  5746. * <td>
  5747. * FILE_USE_INCLUDE_PATH
  5748. * </td>
  5749. * <td>
  5750. * Search for filename in the include directory.
  5751. * See include_path for more
  5752. * information.
  5753. * </td>
  5754. * </tr>
  5755. * <tr valign="top">
  5756. * <td>
  5757. * FILE_APPEND
  5758. * </td>
  5759. * <td>
  5760. * If file filename already exists, append
  5761. * the data to the file instead of overwriting it. Mutually
  5762. * exclusive with LOCK_EX since appends are atomic and thus there
  5763. * is no reason to lock.
  5764. * </td>
  5765. * </tr>
  5766. * <tr valign="top">
  5767. * <td>
  5768. * LOCK_EX
  5769. * </td>
  5770. * <td>
  5771. * Acquire an exclusive lock on the file while proceeding to the
  5772. * writing. Mutually exclusive with FILE_APPEND.
  5773. * </td>
  5774. * </tr>
  5775. * </table>
  5776. * </p>
  5777. * @param context resource[optional] <p>
  5778. * A valid context resource created with
  5779. * stream_context_create.
  5780. * </p>
  5781. * @return int The function returns the number of bytes that were written to the file, or
  5782. * false on failure.
  5783. */
  5784. function file_put_contents ($filename, $data, $flags = null, $context = null) {}
  5785. /**
  5786. * Runs the equivalent of the select() system call on the given
  5787. arrays of streams with a timeout specified by tv_sec and tv_usec
  5788. * @link http://www.php.net/manual/en/function.stream-select.php
  5789. * @param read array <p>
  5790. * The streams listed in the read array will be watched to
  5791. * see if characters become available for reading (more precisely, to see if
  5792. * a read will not block - in particular, a stream resource is also ready on
  5793. * end-of-file, in which case an fread will return
  5794. * a zero length string).
  5795. * </p>
  5796. * @param write array <p>
  5797. * The streams listed in the write array will be
  5798. * watched to see if a write will not block.
  5799. * </p>
  5800. * @param except array <p>
  5801. * The streams listed in the except array will be
  5802. * watched for high priority exceptional ("out-of-band") data arriving.
  5803. * </p>
  5804. * <p>
  5805. * When stream_select returns, the arrays
  5806. * read, write and
  5807. * except are modified to indicate which stream
  5808. * resource(s) actually changed status.
  5809. * </p>
  5810. * You do not need to pass every array to
  5811. * stream_select. You can leave it out and use an
  5812. * empty array or &null; instead. Also do not forget that those arrays are
  5813. * passed by reference and will be modified after
  5814. * stream_select returns.
  5815. * @param tv_sec int <p>
  5816. * The tv_sec and tv_usec
  5817. * together form the timeout parameter,
  5818. * tv_sec specifies the number of seconds while
  5819. * tv_usec the number of microseconds.
  5820. * The timeout is an upper bound on the amount of time
  5821. * that stream_select will wait before it returns.
  5822. * If tv_sec and tv_usec are
  5823. * both set to 0, stream_select will
  5824. * not wait for data - instead it will return immediately, indicating the
  5825. * current status of the streams.
  5826. * </p>
  5827. * <p>
  5828. * If tv_sec is &null; stream_select
  5829. * can block indefinitely, returning only when an event on one of the
  5830. * watched streams occurs (or if a signal interrupts the system call).
  5831. * </p>
  5832. * <p>
  5833. * Using a timeout value of 0 allows you to
  5834. * instantaneously poll the status of the streams, however, it is NOT a
  5835. * good idea to use a 0 timeout value in a loop as it
  5836. * will cause your script to consume too much CPU time.
  5837. * </p>
  5838. * <p>
  5839. * It is much better to specify a timeout value of a few seconds, although
  5840. * if you need to be checking and running other code concurrently, using a
  5841. * timeout value of at least 200000 microseconds will
  5842. * help reduce the CPU usage of your script.
  5843. * </p>
  5844. * <p>
  5845. * Remember that the timeout value is the maximum time that will elapse;
  5846. * stream_select will return as soon as the
  5847. * requested streams are ready for use.
  5848. * </p>
  5849. * @param tv_usec int[optional] <p>
  5850. * See tv_sec description.
  5851. * </p>
  5852. * @return int On success stream_select returns the number of
  5853. * stream resources contained in the modified arrays, which may be zero if
  5854. * the timeout expires before anything interesting happens. On error false
  5855. * is returned and a warning raised (this can happen if the system call is
  5856. * interrupted by an incoming signal).
  5857. */
  5858. function stream_select (array &$read, array &$write, array &$except, $tv_sec, $tv_usec = null) {}
  5859. /**
  5860. * Create a streams context
  5861. * @link http://www.php.net/manual/en/function.stream-context-create.php
  5862. * @param options array[optional] <p>
  5863. * Must be an associative array of associative arrays in the format
  5864. * $arr['wrapper']['option'] = $value.
  5865. * </p>
  5866. * <p>
  5867. * Default to an empty array.
  5868. * </p>
  5869. * @param params array[optional] <p>
  5870. * Must be an associative array in the format
  5871. * $arr['parameter'] = $value.
  5872. * Refer to context parameters for
  5873. * a listing of standard stream parameters.
  5874. * </p>
  5875. * @return resource A stream context resource.
  5876. */
  5877. function stream_context_create (array $options = null, array $params = null) {}
  5878. /**
  5879. * Set parameters for a stream/wrapper/context
  5880. * @link http://www.php.net/manual/en/function.stream-context-set-params.php
  5881. * @param stream_or_context resource <p>
  5882. * The stream or context to apply the parameters too.
  5883. * </p>
  5884. * @param params array <p>
  5885. * An array of parameters to set.
  5886. * </p>
  5887. * <p>
  5888. * params should be an associative array of the structure:
  5889. * $params['paramname'] = "paramvalue";.
  5890. * </p>
  5891. * @return bool Returns true on success or false on failure.
  5892. */
  5893. function stream_context_set_params ($stream_or_context, array $params) {}
  5894. /**
  5895. * Retrieves parameters from a context
  5896. * @link http://www.php.net/manual/en/function.stream-context-get-params.php
  5897. * @param stream_or_context resource <p>
  5898. * A stream resource or a
  5899. * context resource
  5900. * </p>
  5901. * @return array an associate array containing all context options and parameters.
  5902. */
  5903. function stream_context_get_params ($stream_or_context) {}
  5904. /**
  5905. * Sets an option for a stream/wrapper/context
  5906. * @link http://www.php.net/manual/en/function.stream-context-set-option.php
  5907. * @param stream_or_context resource <p>
  5908. * The stream or context resource to apply the options too.
  5909. * </p>
  5910. * @param wrapper string
  5911. * @param option string
  5912. * @param value mixed
  5913. * @return bool Returns true on success or false on failure.
  5914. */
  5915. function stream_context_set_option ($stream_or_context, $wrapper, $option, $value) {}
  5916. /**
  5917. * Retrieve options for a stream/wrapper/context
  5918. * @link http://www.php.net/manual/en/function.stream-context-get-options.php
  5919. * @param stream_or_context resource <p>
  5920. * The stream or context to get options from
  5921. * </p>
  5922. * @return array an associative array with the options.
  5923. */
  5924. function stream_context_get_options ($stream_or_context) {}
  5925. /**
  5926. * Retreive the default streams context
  5927. * @link http://www.php.net/manual/en/function.stream-context-get-default.php
  5928. * @param options array[optional] options must be an associative
  5929. * array of associative arrays in the format
  5930. * $arr['wrapper']['option'] = $value.
  5931. * <p>
  5932. * As of PHP 5.3.0, the stream_context_set_default function
  5933. * can be used to set the default context.
  5934. * </p>
  5935. * @return resource A stream context resource.
  5936. */
  5937. function stream_context_get_default (array $options = null) {}
  5938. /**
  5939. * Set the default streams context
  5940. * @link http://www.php.net/manual/en/function.stream-context-set-default.php
  5941. * @param options array <p>
  5942. * The options to set for the default context.
  5943. * </p>
  5944. * <p>
  5945. * options must be an associative
  5946. * array of associative arrays in the format
  5947. * $arr['wrapper']['option'] = $value.
  5948. * </p>
  5949. * @return resource the default stream context.
  5950. */
  5951. function stream_context_set_default (array $options) {}
  5952. /**
  5953. * Attach a filter to a stream
  5954. * @link http://www.php.net/manual/en/function.stream-filter-prepend.php
  5955. * @param stream resource <p>
  5956. * The target stream.
  5957. * </p>
  5958. * @param filtername string <p>
  5959. * The filter name.
  5960. * </p>
  5961. * @param read_write int[optional] <p>
  5962. * By default, stream_filter_prepend will
  5963. * attach the filter to the read filter chain
  5964. * if the file was opened for reading (i.e. File Mode:
  5965. * r, and/or +). The filter
  5966. * will also be attached to the write filter chain
  5967. * if the file was opened for writing (i.e. File Mode:
  5968. * w, a, and/or +).
  5969. * STREAM_FILTER_READ,
  5970. * STREAM_FILTER_WRITE, and/or
  5971. * STREAM_FILTER_ALL can also be passed to the
  5972. * read_write parameter to override this behavior.
  5973. * See stream_filter_append for an example of
  5974. * using this parameter.
  5975. * </p>
  5976. * @param params mixed[optional] <p>
  5977. * This filter will be added with the specified params
  5978. * to the beginning of the list and will therefore be
  5979. * called first during stream operations. To add a filter to the end of the
  5980. * list, use stream_filter_append.
  5981. * </p>
  5982. * @return resource a resource which can be used to refer to this filter
  5983. * instance during a call to stream_filter_remove.
  5984. */
  5985. function stream_filter_prepend ($stream, $filtername, $read_write = null, $params = null) {}
  5986. /**
  5987. * Attach a filter to a stream
  5988. * @link http://www.php.net/manual/en/function.stream-filter-append.php
  5989. * @param stream resource <p>
  5990. * The target stream.
  5991. * </p>
  5992. * @param filtername string <p>
  5993. * The filter name.
  5994. * </p>
  5995. * @param read_write int[optional] <p>
  5996. * By default, stream_filter_append will
  5997. * attach the filter to the read filter chain
  5998. * if the file was opened for reading (i.e. File Mode:
  5999. * r, and/or +). The filter
  6000. * will also be attached to the write filter chain
  6001. * if the file was opened for writing (i.e. File Mode:
  6002. * w, a, and/or +).
  6003. * STREAM_FILTER_READ,
  6004. * STREAM_FILTER_WRITE, and/or
  6005. * STREAM_FILTER_ALL can also be passed to the
  6006. * read_write parameter to override this behavior.
  6007. * </p>
  6008. * @param params mixed[optional] <p>
  6009. * This filter will be added with the specified
  6010. * params to the end of
  6011. * the list and will therefore be called last during stream operations.
  6012. * To add a filter to the beginning of the list, use
  6013. * stream_filter_prepend.
  6014. * </p>
  6015. * @return resource a resource which can be used to refer to this filter
  6016. * instance during a call to stream_filter_remove.
  6017. */
  6018. function stream_filter_append ($stream, $filtername, $read_write = null, $params = null) {}
  6019. /**
  6020. * Remove a filter from a stream
  6021. * @link http://www.php.net/manual/en/function.stream-filter-remove.php
  6022. * @param stream_filter resource <p>
  6023. * The stream filter to be removed.
  6024. * </p>
  6025. * @return bool Returns true on success or false on failure.
  6026. */
  6027. function stream_filter_remove ($stream_filter) {}
  6028. /**
  6029. * Open Internet or Unix domain socket connection
  6030. * @link http://www.php.net/manual/en/function.stream-socket-client.php
  6031. * @param remote_socket string <p>
  6032. * Address to the socket to connect to.
  6033. * </p>
  6034. * @param errno int[optional] <p>
  6035. * Will be set to the system level error number if connection fails.
  6036. * </p>
  6037. * @param errstr string[optional] <p>
  6038. * Will be set to the system level error message if the connection fails.
  6039. * </p>
  6040. * @param timeout float[optional] <p>
  6041. * Number of seconds until the connect() system call
  6042. * should timeout.
  6043. * This parameter only applies when not making asynchronous
  6044. * connection attempts.
  6045. * <p>
  6046. * To set a timeout for reading/writing data over the socket, use the
  6047. * stream_set_timeout, as the
  6048. * timeout only applies while making connecting
  6049. * the socket.
  6050. * </p>
  6051. * </p>
  6052. * @param flags int[optional] <p>
  6053. * Bitmask field which may be set to any combination of connection flags.
  6054. * Currently the select of connection flags is limited to
  6055. * STREAM_CLIENT_CONNECT (default),
  6056. * STREAM_CLIENT_ASYNC_CONNECT and
  6057. * STREAM_CLIENT_PERSISTENT.
  6058. * </p>
  6059. * @param context resource[optional] <p>
  6060. * A valid context resource created with stream_context_create.
  6061. * </p>
  6062. * @return resource On success a stream resource is returned which may
  6063. * be used together with the other file functions (such as
  6064. * fgets, fgetss,
  6065. * fwrite, fclose, and
  6066. * feof), false on failure.
  6067. */
  6068. function stream_socket_client ($remote_socket, &$errno = null, &$errstr = null, $timeout = null, $flags = null, $context = null) {}
  6069. /**
  6070. * Create an Internet or Unix domain server socket
  6071. * @link http://www.php.net/manual/en/function.stream-socket-server.php
  6072. * @param local_socket string <p>
  6073. * The type of socket created is determined by the transport specified
  6074. * using standard URL formatting: transport://target.
  6075. * </p>
  6076. * <p>
  6077. * For Internet Domain sockets (AF_INET) such as TCP and UDP, the
  6078. * target portion of the
  6079. * remote_socket parameter should consist of a
  6080. * hostname or IP address followed by a colon and a port number. For
  6081. * Unix domain sockets, the target portion should
  6082. * point to the socket file on the filesystem.
  6083. * </p>
  6084. * <p>
  6085. * Depending on the environment, Unix domain sockets may not be available.
  6086. * A list of available transports can be retrieved using
  6087. * stream_get_transports. See
  6088. * for a list of bulitin transports.
  6089. * </p>
  6090. * @param errno int[optional] <p>
  6091. * If the optional errno and errstr
  6092. * arguments are present they will be set to indicate the actual system
  6093. * level error that occurred in the system-level socket(),
  6094. * bind(), and listen() calls. If
  6095. * the value returned in errno is
  6096. * 0 and the function returned false, it is an
  6097. * indication that the error occurred before the bind()
  6098. * call. This is most likely due to a problem initializing the socket.
  6099. * Note that the errno and
  6100. * errstr arguments will always be passed by reference.
  6101. * </p>
  6102. * @param errstr string[optional] <p>
  6103. * See errno description.
  6104. * </p>
  6105. * @param flags int[optional] <p>
  6106. * A bitmask field which may be set to any combination of socket creation
  6107. * flags.
  6108. * </p>
  6109. * <p>
  6110. * For UDP sockets, you must use STREAM_SERVER_BIND as
  6111. * the flags parameter.
  6112. * </p>
  6113. * @param context resource[optional] <p>
  6114. * </p>
  6115. * @return resource the created stream, or false on error.
  6116. */
  6117. function stream_socket_server ($local_socket, &$errno = null, &$errstr = null, $flags = null, $context = null) {}
  6118. /**
  6119. * Accept a connection on a socket created by <function>stream_socket_server</function>
  6120. * @link http://www.php.net/manual/en/function.stream-socket-accept.php
  6121. * @param server_socket resource
  6122. * @param timeout float[optional] <p>
  6123. * Override the default socket accept timeout. Time should be given in
  6124. * seconds.
  6125. * </p>
  6126. * @param peername string[optional] <p>
  6127. * Will be set to the name (address) of the client which connected, if
  6128. * included and available from the selected transport.
  6129. * </p>
  6130. * <p>
  6131. * Can also be determined later using
  6132. * stream_socket_get_name.
  6133. * </p>
  6134. * @return resource Returns true on success or false on failure.
  6135. */
  6136. function stream_socket_accept ($server_socket, $timeout = null, &$peername = null) {}
  6137. /**
  6138. * Retrieve the name of the local or remote sockets
  6139. * @link http://www.php.net/manual/en/function.stream-socket-get-name.php
  6140. * @param handle resource <p>
  6141. * The socket to get the name of.
  6142. * </p>
  6143. * @param want_peer bool <p>
  6144. * If set to true the remote socket name will be returned, if set
  6145. * to false the local socket name will be returned.
  6146. * </p>
  6147. * @return string The name of the socket.
  6148. */
  6149. function stream_socket_get_name ($handle, $want_peer) {}
  6150. /**
  6151. * Receives data from a socket, connected or not
  6152. * @link http://www.php.net/manual/en/function.stream-socket-recvfrom.php
  6153. * @param socket resource <p>
  6154. * The remote socket.
  6155. * </p>
  6156. * @param length int <p>
  6157. * The number of bytes to receive from the socket.
  6158. * </p>
  6159. * @param flags int[optional] <p>
  6160. * The value of flags can be any combination
  6161. * of the following:
  6162. * <table>
  6163. * Possible values for flags
  6164. * <tr valign="top">
  6165. * <td>STREAM_OOB</td>
  6166. * <td>
  6167. * Process OOB (out-of-band) data.
  6168. * </td>
  6169. * </tr>
  6170. * <tr valign="top">
  6171. * <td>STREAM_PEEK</td>
  6172. * <td>
  6173. * Retrieve data from the socket, but do not consume the buffer.
  6174. * Subsequent calls to fread or
  6175. * stream_socket_recvfrom will see
  6176. * the same data.
  6177. * </td>
  6178. * </tr>
  6179. * </table>
  6180. * </p>
  6181. * @param address string[optional] <p>
  6182. * If address is provided it will be populated with
  6183. * the address of the remote socket.
  6184. * </p>
  6185. * @return string the read data, as a string
  6186. */
  6187. function stream_socket_recvfrom ($socket, $length, $flags = null, &$address = null) {}
  6188. /**
  6189. * Sends a message to a socket, whether it is connected or not
  6190. * @link http://www.php.net/manual/en/function.stream-socket-sendto.php
  6191. * @param socket resource <p>
  6192. * The socket to send data to.
  6193. * </p>
  6194. * @param data string <p>
  6195. * The data to be sent.
  6196. * </p>
  6197. * @param flags int[optional] <p>
  6198. * The value of flags can be any combination
  6199. * of the following:
  6200. * <table>
  6201. * possible values for flags
  6202. * <tr valign="top">
  6203. * <td>STREAM_OOB</td>
  6204. * <td>
  6205. * Process OOB (out-of-band) data.
  6206. * </td>
  6207. * </tr>
  6208. * </table>
  6209. * </p>
  6210. * @param address string[optional] <p>
  6211. * The address specified when the socket stream was created will be used
  6212. * unless an alternate address is specified in address.
  6213. * </p>
  6214. * <p>
  6215. * If specified, it must be in dotted quad (or [ipv6]) format.
  6216. * </p>
  6217. * @return int a result code, as an integer.
  6218. */
  6219. function stream_socket_sendto ($socket, $data, $flags = null, $address = null) {}
  6220. /**
  6221. * Turns encryption on/off on an already connected socket
  6222. * @link http://www.php.net/manual/en/function.stream-socket-enable-crypto.php
  6223. * @param stream resource <p>
  6224. * The stream resource.
  6225. * </p>
  6226. * @param enable bool <p>
  6227. * Enable/disable cryptography on the stream.
  6228. * </p>
  6229. * @param crypto_type int[optional] <p>
  6230. * Setup encryption on the stream.
  6231. * Valid methods are
  6232. * STREAM_CRYPTO_METHOD_SSLv2_CLIENT
  6233. * @param session_stream resource[optional] <p>
  6234. * Seed the stream with settings from session_stream.
  6235. * </p>
  6236. * @return mixed true on success, false if negotiation has failed or
  6237. * 0 if there isn't enough data and you should try again
  6238. * (only for non-blocking sockets).
  6239. */
  6240. function stream_socket_enable_crypto ($stream, $enable, $crypto_type = null, $session_stream = null) {}
  6241. /**
  6242. * Shutdown a full-duplex connection
  6243. * @link http://www.php.net/manual/en/function.stream-socket-shutdown.php
  6244. * @param stream resource <p>
  6245. * An open stream (opened with stream_socket_client,
  6246. * for example)
  6247. * </p>
  6248. * @param how int <p>
  6249. * One of the following constants: STREAM_SHUT_RD
  6250. * (disable further receptions), STREAM_SHUT_WR
  6251. * (disable further transmissions) or
  6252. * STREAM_SHUT_RDWR (disable further receptions and
  6253. * transmissions).
  6254. * </p>
  6255. * @return bool Returns true on success or false on failure.
  6256. */
  6257. function stream_socket_shutdown ($stream, $how) {}
  6258. /**
  6259. * Creates a pair of connected, indistinguishable socket streams
  6260. * @link http://www.php.net/manual/en/function.stream-socket-pair.php
  6261. * @param domain int <p>
  6262. * The protocol family to be used: STREAM_PF_INET,
  6263. * STREAM_PF_INET6 or
  6264. * STREAM_PF_UNIX
  6265. * </p>
  6266. * @param type int <p>
  6267. * The type of communication to be used:
  6268. * STREAM_SOCK_DGRAM,
  6269. * STREAM_SOCK_RAW,
  6270. * STREAM_SOCK_RDM,
  6271. * STREAM_SOCK_SEQPACKET or
  6272. * STREAM_SOCK_STREAM
  6273. * </p>
  6274. * @param protocol int <p>
  6275. * The protocol to be used: STREAM_IPPROTO_ICMP,
  6276. * STREAM_IPPROTO_IP,
  6277. * STREAM_IPPROTO_RAW,
  6278. * STREAM_IPPROTO_TCP or
  6279. * STREAM_IPPROTO_UDP
  6280. * </p>
  6281. * @return array an array with the two socket resources on success, or
  6282. * false on failure.
  6283. */
  6284. function stream_socket_pair ($domain, $type, $protocol) {}
  6285. /**
  6286. * Copies data from one stream to another
  6287. * @link http://www.php.net/manual/en/function.stream-copy-to-stream.php
  6288. * @param source resource <p>
  6289. * The source stream
  6290. * </p>
  6291. * @param dest resource <p>
  6292. * The destination stream
  6293. * </p>
  6294. * @param maxlength int[optional] <p>
  6295. * Maximum bytes to copy
  6296. * </p>
  6297. * @param offset int[optional] <p>
  6298. * The offset where to start to copy data
  6299. * </p>
  6300. * @return int the total count of bytes copied.
  6301. */
  6302. function stream_copy_to_stream ($source, $dest, $maxlength = null, $offset = null) {}
  6303. /**
  6304. * Reads remainder of a stream into a string
  6305. * @link http://www.php.net/manual/en/function.stream-get-contents.php
  6306. * @param handle resource <p>
  6307. * A stream resource (e.g. returned from fopen)
  6308. * </p>
  6309. * @param maxlength int[optional] <p>
  6310. * The maximum bytes to read. Defaults to -1 (read all the remaining
  6311. * buffer).
  6312. * </p>
  6313. * @param offset int[optional] <p>
  6314. * Seek to the specified offset before reading.
  6315. * </p>
  6316. * @return string a string&return.falseforfailure;.
  6317. */
  6318. function stream_get_contents ($handle, $maxlength = null, $offset = null) {}
  6319. /**
  6320. * Tells whether the stream supports locking.
  6321. * @link http://www.php.net/manual/en/function.stream-supports-lock.php
  6322. * @param stream resource <p>
  6323. * The stream to check.
  6324. * </p>
  6325. * @return bool Returns true on success or false on failure.
  6326. */
  6327. function stream_supports_lock ($stream) {}
  6328. /**
  6329. * Gets line from file pointer and parse for CSV fields
  6330. * @link http://www.php.net/manual/en/function.fgetcsv.php
  6331. * @param handle resource <p>
  6332. * A valid file pointer to a file successfully opened by
  6333. * fopen, popen, or
  6334. * fsockopen.
  6335. * </p>
  6336. * @param length int[optional] <p>
  6337. * Must be greater than the longest line (in characters) to be found in
  6338. * the CSV file (allowing for trailing line-end characters). It became
  6339. * optional in PHP 5. Omitting this parameter (or setting it to 0 in PHP
  6340. * 5.0.4 and later) the maximum line length is not limited, which is
  6341. * slightly slower.
  6342. * </p>
  6343. * @param delimiter string[optional] <p>
  6344. * Set the field delimiter (one character only).
  6345. * </p>
  6346. * @param enclosure string[optional] <p>
  6347. * Set the field enclosure character (one character only).
  6348. * </p>
  6349. * @param escape string[optional] <p>
  6350. * Set the escape character (one character only). Defaults as a backslash.
  6351. * </p>
  6352. * @return array an indexed array containing the fields read.
  6353. * </p>
  6354. * <p>
  6355. * A blank line in a CSV file will be returned as an array
  6356. * comprising a single null field, and will not be treated
  6357. * as an error.
  6358. * </p>
  6359. * &note.line-endings;
  6360. * <p>
  6361. * fgetcsv returns &null; if an invalid
  6362. * handle is supplied or false on other errors,
  6363. * including end of file.
  6364. */
  6365. function fgetcsv ($handle, $length = null, $delimiter = null, $enclosure = null, $escape = null) {}
  6366. /**
  6367. * Format line as CSV and write to file pointer
  6368. * @link http://www.php.net/manual/en/function.fputcsv.php
  6369. * @param handle resource &fs.validfp.all;
  6370. * @param fields array <p>
  6371. * An array of values.
  6372. * </p>
  6373. * @param delimiter string[optional] <p>
  6374. * The optional delimiter parameter sets the field
  6375. * delimiter (one character only).
  6376. * </p>
  6377. * @param enclosure string[optional] <p>
  6378. * The optional enclosure parameter sets the field
  6379. * enclosure (one character only).
  6380. * </p>
  6381. * @return int the length of the written string&return.falseforfailure;.
  6382. */
  6383. function fputcsv ($handle, array $fields, $delimiter = null, $enclosure = null) {}
  6384. /**
  6385. * Portable advisory file locking
  6386. * @link http://www.php.net/manual/en/function.flock.php
  6387. * @param handle resource <p>
  6388. * An open file pointer.
  6389. * </p>
  6390. * @param operation int <p>
  6391. * operation is one of the following:
  6392. * LOCK_SH to acquire a shared lock (reader).
  6393. * @param wouldblock int[optional] <p>
  6394. * The optional third argument is set to true if the lock would block
  6395. * (EWOULDBLOCK errno condition). (not supported on Windows)
  6396. * </p>
  6397. * @return bool Returns true on success or false on failure.
  6398. */
  6399. function flock ($handle, $operation, &$wouldblock = null) {}
  6400. /**
  6401. * Extracts all meta tag content attributes from a file and returns an array
  6402. * @link http://www.php.net/manual/en/function.get-meta-tags.php
  6403. * @param filename string <p>
  6404. * The path to the HTML file, as a string. This can be a local file or an
  6405. * URL.
  6406. * </p>
  6407. * <p>
  6408. * Example #1 What get_meta_tags() parses
  6409. * <pre>
  6410. * &lt;meta name="author" content="name"&gt;
  6411. * &lt;meta name="keywords" content="php documentation"&gt;
  6412. * &lt;meta name="DESCRIPTION" content="a php manual"&gt;
  6413. * &lt;meta name="geo.position" content="49.33;-86.59"&gt;
  6414. * &lt;/head&gt; &lt;!-- parsing stops here --&gt;
  6415. * </pre>
  6416. * (pay attention to line endings - PHP uses a native function to
  6417. * parse the input, so a Mac file won't work on Unix).
  6418. * </p>
  6419. * @param use_include_path bool[optional] <p>
  6420. * Setting use_include_path to true will result
  6421. * in PHP trying to open the file along the standard include path as per
  6422. * the include_path directive.
  6423. * This is used for local files, not URLs.
  6424. * </p>
  6425. * @return array an array with all the parsed meta tags.
  6426. * </p>
  6427. * <p>
  6428. * The value of the name property becomes the key, the value of the content
  6429. * property becomes the value of the returned array, so you can easily use
  6430. * standard array functions to traverse it or access single values.
  6431. * Special characters in the value of the name property are substituted with
  6432. * '_', the rest is converted to lower case. If two meta tags have the same
  6433. * name, only the last one is returned.
  6434. */
  6435. function get_meta_tags ($filename, $use_include_path = null) {}
  6436. /**
  6437. * Sets file buffering on the given stream
  6438. * @link http://www.php.net/manual/en/function.stream-set-write-buffer.php
  6439. * @param stream resource <p>
  6440. * The file pointer.
  6441. * </p>
  6442. * @param buffer int <p>
  6443. * The number of bytes to buffer. If buffer
  6444. * is 0 then write operations are unbuffered. This ensures that all writes
  6445. * with fwrite are completed before other processes are
  6446. * allowed to write to that output stream.
  6447. * </p>
  6448. * @return int 0 on success, or EOF if the request cannot be honored.
  6449. */
  6450. function stream_set_write_buffer ($stream, $buffer) {}
  6451. /**
  6452. * &Alias; <function>stream_set_write_buffer</function>
  6453. * @link http://www.php.net/manual/en/function.set-file-buffer.php
  6454. * @param fp
  6455. * @param buffer
  6456. */
  6457. function set_file_buffer ($fp, $buffer) {}
  6458. /**
  6459. * &Alias; <function>stream_set_blocking</function>
  6460. * @link http://www.php.net/manual/en/function.set-socket-blocking.php
  6461. * @param socket
  6462. * @param mode
  6463. */
  6464. function set_socket_blocking ($socket, $mode) {}
  6465. /**
  6466. * Set blocking/non-blocking mode on a stream
  6467. * @link http://www.php.net/manual/en/function.stream-set-blocking.php
  6468. * @param stream resource <p>
  6469. * The stream.
  6470. * </p>
  6471. * @param mode int <p>
  6472. * If mode is 0, the given stream
  6473. * will be switched to non-blocking mode, and if 1, it
  6474. * will be switched to blocking mode. This affects calls like
  6475. * fgets and fread
  6476. * that read from the stream. In non-blocking mode an
  6477. * fgets call will always return right away
  6478. * while in blocking mode it will wait for data to become available
  6479. * on the stream.
  6480. * </p>
  6481. * @return bool Returns true on success or false on failure.
  6482. */
  6483. function stream_set_blocking ($stream, $mode) {}
  6484. /**
  6485. * &Alias; <function>stream_set_blocking</function>
  6486. * @link http://www.php.net/manual/en/function.socket-set-blocking.php
  6487. * @param socket
  6488. * @param mode
  6489. */
  6490. function socket_set_blocking ($socket, $mode) {}
  6491. /**
  6492. * Retrieves header/meta data from streams/file pointers
  6493. * @link http://www.php.net/manual/en/function.stream-get-meta-data.php
  6494. * @param stream resource <p>
  6495. * The stream can be any stream created by fopen,
  6496. * fsockopen and pfsockopen.
  6497. * </p>
  6498. * @return array The result array contains the following items:
  6499. * </p>
  6500. * <p>
  6501. * timed_out (bool) - true if the stream
  6502. * timed out while waiting for data on the last call to
  6503. * fread or fgets.
  6504. * </p>
  6505. * <p>
  6506. * blocked (bool) - true if the stream is
  6507. * in blocking IO mode. See stream_set_blocking.
  6508. * </p>
  6509. * <p>
  6510. * eof (bool) - true if the stream has reached
  6511. * end-of-file. Note that for socket streams this member can be true
  6512. * even when unread_bytes is non-zero. To
  6513. * determine if there is more data to be read, use
  6514. * feof instead of reading this item.
  6515. * </p>
  6516. * <p>
  6517. * unread_bytes (int) - the number of bytes
  6518. * currently contained in the PHP's own internal buffer.
  6519. * </p>
  6520. * You shouldn't use this value in a script.
  6521. * <p>
  6522. * stream_type (string) - a label describing
  6523. * the underlying implementation of the stream.
  6524. * </p>
  6525. * <p>
  6526. * wrapper_type (string) - a label describing
  6527. * the protocol wrapper implementation layered over the stream.
  6528. * See for more information about wrappers.
  6529. * </p>
  6530. * <p>
  6531. * wrapper_data (mixed) - wrapper specific
  6532. * data attached to this stream. See for
  6533. * more information about wrappers and their wrapper data.
  6534. * </p>
  6535. * <p>
  6536. * filters (array) - and array containing
  6537. * the names of any filters that have been stacked onto this stream.
  6538. * Documentation on filters can be found in the
  6539. * Filters appendix.
  6540. * </p>
  6541. * <p>
  6542. * mode (string) - the type of access required for
  6543. * this stream (see Table 1 of the fopen() reference)
  6544. * </p>
  6545. * <p>
  6546. * seekable (bool) - whether the current stream can
  6547. * be seeked.
  6548. * </p>
  6549. * <p>
  6550. * uri (string) - the URI/filename associated with this
  6551. * stream.
  6552. */
  6553. function stream_get_meta_data ($stream) {}
  6554. /**
  6555. * Gets line from stream resource up to a given delimiter
  6556. * @link http://www.php.net/manual/en/function.stream-get-line.php
  6557. * @param handle resource <p>
  6558. * A valid file handle.
  6559. * </p>
  6560. * @param length int <p>
  6561. * The number of bytes to read from the handle.
  6562. * </p>
  6563. * @param ending string[optional] <p>
  6564. * An optional string delimiter.
  6565. * </p>
  6566. * @return string a string of up to length bytes read from the file
  6567. * pointed to by handle.
  6568. * </p>
  6569. * <p>
  6570. * If an error occurs, returns false.
  6571. */
  6572. function stream_get_line ($handle, $length, $ending = null) {}
  6573. /**
  6574. * Register a URL wrapper implemented as a PHP class
  6575. * @link http://www.php.net/manual/en/function.stream-wrapper-register.php
  6576. * @param protocol string <p>
  6577. * The wrapper name to be registered.
  6578. * </p>
  6579. * @param classname string <p>
  6580. * The classname which implements the protocol.
  6581. * </p>
  6582. * @param flags int[optional] <p>
  6583. * Should be set to STREAM_IS_URL if
  6584. * protocol is a URL protocol. Default is 0, local
  6585. * stream.
  6586. * </p>
  6587. * @return bool Returns true on success or false on failure.
  6588. * </p>
  6589. * <p>
  6590. * stream_wrapper_register will return false if the
  6591. * protocol already has a handler.
  6592. */
  6593. function stream_wrapper_register ($protocol, $classname, $flags = null) {}
  6594. /**
  6595. * &Alias; <function>stream_wrapper_register</function>
  6596. * @link http://www.php.net/manual/en/function.stream-register-wrapper.php
  6597. * @param protocol
  6598. * @param classname
  6599. * @param flags[optional]
  6600. */
  6601. function stream_register_wrapper ($protocol, $classname, $flags) {}
  6602. /**
  6603. * Unregister a URL wrapper
  6604. * @link http://www.php.net/manual/en/function.stream-wrapper-unregister.php
  6605. * @param protocol string <p>
  6606. * </p>
  6607. * @return bool Returns true on success or false on failure.
  6608. */
  6609. function stream_wrapper_unregister ($protocol) {}
  6610. /**
  6611. * Restores a previously unregistered built-in wrapper
  6612. * @link http://www.php.net/manual/en/function.stream-wrapper-restore.php
  6613. * @param protocol string <p>
  6614. * </p>
  6615. * @return bool Returns true on success or false on failure.
  6616. */
  6617. function stream_wrapper_restore ($protocol) {}
  6618. /**
  6619. * Retrieve list of registered streams
  6620. * @link http://www.php.net/manual/en/function.stream-get-wrappers.php
  6621. * @return array an indexed array containing the name of all stream wrappers
  6622. * available on the running system.
  6623. */
  6624. function stream_get_wrappers () {}
  6625. /**
  6626. * Retrieve list of registered socket transports
  6627. * @link http://www.php.net/manual/en/function.stream-get-transports.php
  6628. * @return array an indexed array of socket transports names.
  6629. */
  6630. function stream_get_transports () {}
  6631. /**
  6632. * Resolve filename against the include path
  6633. * @link http://www.php.net/manual/en/function.stream-resolve-include-path.php
  6634. * @param filename string
  6635. * @param context resource[optional] <p>
  6636. * A valid context resource created with stream_context_create.
  6637. * </p>
  6638. * @return string On success, the resolved absolute filename is returned. On failure, false is returned.
  6639. */
  6640. function stream_resolve_include_path ($filename, $context = null) {}
  6641. /**
  6642. * Checks if a stream is a local stream
  6643. * @link http://www.php.net/manual/en/function.stream-is-local.php
  6644. * @param stream_or_url mixed <p>
  6645. * The stream resource or URL to check.
  6646. * </p>
  6647. * @return bool Returns true on success or false on failure.
  6648. */
  6649. function stream_is_local ($stream_or_url) {}
  6650. /**
  6651. * Fetches all the headers sent by the server in response to a HTTP request
  6652. * @link http://www.php.net/manual/en/function.get-headers.php
  6653. * @param url string <p>
  6654. * The target URL.
  6655. * </p>
  6656. * @param format int[optional] <p>
  6657. * If the optional format parameter is set to non-zero,
  6658. * get_headers parses the response and sets the
  6659. * array's keys.
  6660. * </p>
  6661. * @return array an indexed or associative array with the headers, or false on
  6662. * failure.
  6663. */
  6664. function get_headers ($url, $format = null) {}
  6665. /**
  6666. * Set timeout period on a stream
  6667. * @link http://www.php.net/manual/en/function.stream-set-timeout.php
  6668. * @param stream resource <p>
  6669. * The target stream.
  6670. * </p>
  6671. * @param seconds int <p>
  6672. * The seconds part of the timeout to be set.
  6673. * </p>
  6674. * @param microseconds int[optional] <p>
  6675. * The microseconds part of the timeout to be set.
  6676. * </p>
  6677. * @return bool Returns true on success or false on failure.
  6678. */
  6679. function stream_set_timeout ($stream, $seconds, $microseconds = null) {}
  6680. /**
  6681. * &Alias; <function>stream_set_timeout</function>
  6682. * @link http://www.php.net/manual/en/function.socket-set-timeout.php
  6683. * @param stream
  6684. * @param seconds
  6685. * @param microseconds
  6686. */
  6687. function socket_set_timeout ($stream, $seconds, $microseconds) {}
  6688. /**
  6689. * &Alias; <function>stream_get_meta_data</function>
  6690. * @link http://www.php.net/manual/en/function.socket-get-status.php
  6691. * @param fp
  6692. */
  6693. function socket_get_status ($fp) {}
  6694. /**
  6695. * Returns canonicalized absolute pathname
  6696. * @link http://www.php.net/manual/en/function.realpath.php
  6697. * @param path string <p>
  6698. * The path being checked.
  6699. * </p>
  6700. * @return string the canonicalized absolute pathname on success. The resulting path
  6701. * will have no symbolic link, '/./' or '/../' components.
  6702. * </p>
  6703. * <p>
  6704. * realpath returns false on failure, e.g. if
  6705. * the file does not exist.
  6706. * </p>
  6707. * <p>
  6708. * The running script must have executable permissions on all directories in
  6709. * the hierarchy, otherwise realpath will return
  6710. * false.
  6711. */
  6712. function realpath ($path) {}
  6713. /**
  6714. * Match filename against a pattern
  6715. * @link http://www.php.net/manual/en/function.fnmatch.php
  6716. * @param pattern string <p>
  6717. * The shell wildcard pattern.
  6718. * </p>
  6719. * @param string string <p>
  6720. * The tested string. This function is especially useful for filenames,
  6721. * but may also be used on regular strings.
  6722. * </p>
  6723. * <p>
  6724. * The average user may be used to shell patterns or at least in their
  6725. * simplest form to '?' and '*'
  6726. * wildcards so using fnmatch instead of
  6727. * preg_match for
  6728. * frontend search expression input may be way more convenient for
  6729. * non-programming users.
  6730. * </p>
  6731. * @param flags int[optional] <p>
  6732. * The value of flags can be any combination of
  6733. * the following flags, joined with the
  6734. * binary OR (|) operator.
  6735. * <table>
  6736. * A list of possible flags for fnmatch
  6737. * <tr valign="top">
  6738. * <td>Flag</td>
  6739. * <td>Description</td>
  6740. * </tr>
  6741. * <tr valign="top">
  6742. * <td>FNM_NOESCAPE</td>
  6743. * <td>
  6744. * Disable backslash escaping.
  6745. * </td>
  6746. * </tr>
  6747. * <tr valign="top">
  6748. * <td>FNM_PATHNAME</td>
  6749. * <td>
  6750. * Slash in string only matches slash in the given pattern.
  6751. * </td>
  6752. * </tr>
  6753. * <tr valign="top">
  6754. * <td>FNM_PERIOD</td>
  6755. * <td>
  6756. * Leading period in string must be exactly matched by period in the given pattern.
  6757. * </td>
  6758. * </tr>
  6759. * <tr valign="top">
  6760. * <td>FNM_CASEFOLD</td>
  6761. * <td>
  6762. * Caseless match. Part of the GNU extension.
  6763. * </td>
  6764. * </tr>
  6765. * </table>
  6766. * </p>
  6767. * @return bool true if there is a match, false otherwise.
  6768. */
  6769. function fnmatch ($pattern, $string, $flags = null) {}
  6770. /**
  6771. * Open Internet or Unix domain socket connection
  6772. * @link http://www.php.net/manual/en/function.fsockopen.php
  6773. * @param hostname string <p>
  6774. * If you have compiled in OpenSSL support, you may prefix the
  6775. * hostname with either ssl://
  6776. * or tls:// to use an SSL or TLS client connection
  6777. * over TCP/IP to connect to the remote host.
  6778. * </p>
  6779. * @param port int[optional] <p>
  6780. * The port number.
  6781. * </p>
  6782. * @param errno int[optional] <p>
  6783. * If provided, holds the system level error number that occurred in the
  6784. * system-level connect() call.
  6785. * </p>
  6786. * <p>
  6787. * If the value returned in errno is
  6788. * 0 and the function returned false, it is an
  6789. * indication that the error occurred before the
  6790. * connect() call. This is most likely due to a
  6791. * problem initializing the socket.
  6792. * </p>
  6793. * @param errstr string[optional] <p>
  6794. * The error message as a string.
  6795. * </p>
  6796. * @param timeout float[optional] <p>
  6797. * The connection timeout, in seconds.
  6798. * </p>
  6799. * <p>
  6800. * If you need to set a timeout for reading/writing data over the
  6801. * socket, use stream_set_timeout, as the
  6802. * timeout parameter to
  6803. * fsockopen only applies while connecting the
  6804. * socket.
  6805. * </p>
  6806. * @return resource fsockopen returns a file pointer which may be used
  6807. * together with the other file functions (such as
  6808. * fgets, fgetss,
  6809. * fwrite, fclose, and
  6810. * feof). If the call fails, it will return false
  6811. */
  6812. function fsockopen ($hostname, $port = null, &$errno = null, &$errstr = null, $timeout = null) {}
  6813. /**
  6814. * Open persistent Internet or Unix domain socket connection
  6815. * @link http://www.php.net/manual/en/function.pfsockopen.php
  6816. * @param hostname string
  6817. * @param port int[optional]
  6818. * @param errno int[optional]
  6819. * @param errstr string[optional]
  6820. * @param timeout float[optional]
  6821. * @return resource
  6822. */
  6823. function pfsockopen ($hostname, $port = null, &$errno = null, &$errstr = null, $timeout = null) {}
  6824. /**
  6825. * Pack data into binary string
  6826. * @link http://www.php.net/manual/en/function.pack.php
  6827. * @param format string <p>
  6828. * The format string consists of format codes
  6829. * followed by an optional repeater argument. The repeater argument can
  6830. * be either an integer value or * for repeating to
  6831. * the end of the input data. For a, A, h, H the repeat count specifies
  6832. * how many characters of one data argument are taken, for @ it is the
  6833. * absolute position where to put the next data, for everything else the
  6834. * repeat count specifies how many data arguments are consumed and packed
  6835. * into the resulting binary string.
  6836. * </p>
  6837. * <p>
  6838. * Currently implemented formats are:
  6839. * <table>
  6840. * pack format characters
  6841. * <tr valign="top">
  6842. * <td>Code</td>
  6843. * <td>Description</td>
  6844. * </tr>
  6845. * <tr valign="top">
  6846. * <td>a</td>
  6847. * <td>NUL-padded string</td>
  6848. * </tr>
  6849. * <tr valign="top">
  6850. * <td>A</td>
  6851. * <td>SPACE-padded string</td></tr>
  6852. * <tr valign="top">
  6853. * <td>h</td>
  6854. * <td>Hex string, low nibble first</td></tr>
  6855. * <tr valign="top">
  6856. * <td>H</td>
  6857. * <td>Hex string, high nibble first</td></tr>
  6858. * <tr valign="top"><td>c</td><td>signed char</td></tr>
  6859. * <tr valign="top">
  6860. * <td>C</td>
  6861. * <td>unsigned char</td></tr>
  6862. * <tr valign="top">
  6863. * <td>s</td>
  6864. * <td>signed short (always 16 bit, machine byte order)</td>
  6865. * </tr>
  6866. * <tr valign="top">
  6867. * <td>S</td>
  6868. * <td>unsigned short (always 16 bit, machine byte order)</td>
  6869. * </tr>
  6870. * <tr valign="top">
  6871. * <td>n</td>
  6872. * <td>unsigned short (always 16 bit, big endian byte order)</td>
  6873. * </tr>
  6874. * <tr valign="top">
  6875. * <td>v</td>
  6876. * <td>unsigned short (always 16 bit, little endian byte order)</td>
  6877. * </tr>
  6878. * <tr valign="top">
  6879. * <td>i</td>
  6880. * <td>signed integer (machine dependent size and byte order)</td>
  6881. * </tr>
  6882. * <tr valign="top">
  6883. * <td>I</td>
  6884. * <td>unsigned integer (machine dependent size and byte order)</td>
  6885. * </tr>
  6886. * <tr valign="top">
  6887. * <td>l</td>
  6888. * <td>signed long (always 32 bit, machine byte order)</td>
  6889. * </tr>
  6890. * <tr valign="top">
  6891. * <td>L</td>
  6892. * <td>unsigned long (always 32 bit, machine byte order)</td>
  6893. * </tr>
  6894. * <tr valign="top">
  6895. * <td>N</td>
  6896. * <td>unsigned long (always 32 bit, big endian byte order)</td>
  6897. * </tr>
  6898. * <tr valign="top">
  6899. * <td>V</td>
  6900. * <td>unsigned long (always 32 bit, little endian byte order)</td>
  6901. * </tr>
  6902. * <tr valign="top">
  6903. * <td>f</td>
  6904. * <td>float (machine dependent size and representation)</td>
  6905. * </tr>
  6906. * <tr valign="top">
  6907. * <td>d</td>
  6908. * <td>double (machine dependent size and representation)</td>
  6909. * </tr>
  6910. * <tr valign="top">
  6911. * <td>x</td>
  6912. * <td>NUL byte</td>
  6913. * </tr>
  6914. * <tr valign="top">
  6915. * <td>X</td>
  6916. * <td>Back up one byte</td>
  6917. * </tr>
  6918. * <tr valign="top">
  6919. * <td>@</td>
  6920. * <td>NUL-fill to absolute position</td>
  6921. * </tr>
  6922. * </table>
  6923. * </p>
  6924. * @param args mixed[optional] <p>
  6925. * </p>
  6926. * @param _ mixed[optional]
  6927. * @return string a binary string containing data.
  6928. */
  6929. function pack ($format, $args = null, $_ = null) {}
  6930. /**
  6931. * Unpack data from binary string
  6932. * @link http://www.php.net/manual/en/function.unpack.php
  6933. * @param format string <p>
  6934. * See pack for an explanation of the format codes.
  6935. * </p>
  6936. * @param data string <p>
  6937. * The packed data.
  6938. * </p>
  6939. * @return array an associative array containing unpacked elements of binary
  6940. * string.
  6941. */
  6942. function unpack ($format, $data) {}
  6943. /**
  6944. * Tells what the user's browser is capable of
  6945. * @link http://www.php.net/manual/en/function.get-browser.php
  6946. * @param user_agent string[optional] <p>
  6947. * The User Agent to be analyzed. By default, the value of HTTP
  6948. * User-Agent header is used; however, you can alter this (i.e., look up
  6949. * another browser's info) by passing this parameter.
  6950. * </p>
  6951. * <p>
  6952. * You can bypass this parameter with a &null; value.
  6953. * </p>
  6954. * @param return_array bool[optional] <p>
  6955. * If set to true, this function will return an array
  6956. * instead of an object.
  6957. * </p>
  6958. * @return mixed The information is returned in an object or an array which will contain
  6959. * various data elements representing, for instance, the browser's major and
  6960. * minor version numbers and ID string; true/false values for features
  6961. * such as frames, JavaScript, and cookies; and so forth.
  6962. * </p>
  6963. * <p>
  6964. * The cookies value simply means that the browser
  6965. * itself is capable of accepting cookies and does not mean the user has
  6966. * enabled the browser to accept cookies or not. The only way to test if
  6967. * cookies are accepted is to set one with setcookie,
  6968. * reload, and check for the value.
  6969. */
  6970. function get_browser ($user_agent = null, $return_array = null) {}
  6971. /**
  6972. * One-way string hashing
  6973. * @link http://www.php.net/manual/en/function.crypt.php
  6974. * @param str string <p>
  6975. * The string to be hashed.
  6976. * </p>
  6977. * @param salt string[optional] <p>
  6978. * An optional salt string to base the hashing on. If not provided,
  6979. * one will be randomly generated by PHP each time you call this function.
  6980. * </p>
  6981. * <p>
  6982. * If you are using the supplied salt, you should be aware that the salt
  6983. * is generated once. If you are calling this function repeatedly, this
  6984. * may impact both appearance and security.
  6985. * </p>
  6986. * @return string the hashed string or a string that is shorter than 13 characters
  6987. * and is guaranteed to differ from the salt on failure.
  6988. */
  6989. function crypt ($str, $salt = null) {}
  6990. /**
  6991. * Open directory handle
  6992. * @link http://www.php.net/manual/en/function.opendir.php
  6993. * @param path string <p>
  6994. * The directory path that is to be opened
  6995. * </p>
  6996. * @param context resource[optional] <p>
  6997. * For a description of the context parameter,
  6998. * refer to the streams section of
  6999. * the manual.
  7000. * </p>
  7001. * @return resource a directory handle resource on success, or
  7002. * false on failure.
  7003. * </p>
  7004. * <p>
  7005. * If path is not a valid directory or the
  7006. * directory can not be opened due to permission restrictions or
  7007. * filesystem errors, opendir returns false and
  7008. * generates a PHP error of level
  7009. * E_WARNING. You can suppress the error output of
  7010. * opendir by prepending
  7011. * '@' to the
  7012. * front of the function name.
  7013. */
  7014. function opendir ($path, $context = null) {}
  7015. /**
  7016. * Close directory handle
  7017. * @link http://www.php.net/manual/en/function.closedir.php
  7018. * @param dir_handle resource[optional] <p>
  7019. * The directory handle resource previously opened
  7020. * with opendir. If the directory handle is
  7021. * not specified, the last link opened by opendir
  7022. * is assumed.
  7023. * </p>
  7024. * @return void
  7025. */
  7026. function closedir ($dir_handle = null) {}
  7027. /**
  7028. * Change directory
  7029. * @link http://www.php.net/manual/en/function.chdir.php
  7030. * @param directory string <p>
  7031. * The new current directory
  7032. * </p>
  7033. * @return bool Returns true on success or false on failure.
  7034. */
  7035. function chdir ($directory) {}
  7036. /**
  7037. * Gets the current working directory
  7038. * @link http://www.php.net/manual/en/function.getcwd.php
  7039. * @return string the current working directory on success, or false on
  7040. * failure.
  7041. * </p>
  7042. * <p>
  7043. * On some Unix variants, getcwd will return
  7044. * false if any one of the parent directories does not have the
  7045. * readable or search mode set, even if the current directory
  7046. * does. See chmod for more information on
  7047. * modes and permissions.
  7048. */
  7049. function getcwd () {}
  7050. /**
  7051. * Rewind directory handle
  7052. * @link http://www.php.net/manual/en/function.rewinddir.php
  7053. * @param dir_handle resource[optional] <p>
  7054. * The directory handle resource previously opened
  7055. * with opendir. If the directory handle is
  7056. * not specified, the last link opened by opendir
  7057. * is assumed.
  7058. * </p>
  7059. * @return void
  7060. */
  7061. function rewinddir ($dir_handle = null) {}
  7062. /**
  7063. * Read entry from directory handle
  7064. * @link http://www.php.net/manual/en/function.readdir.php
  7065. * @param dir_handle resource[optional] <p>
  7066. * The directory handle resource previously opened
  7067. * with opendir. If the directory handle is
  7068. * not specified, the last link opened by opendir
  7069. * is assumed.
  7070. * </p>
  7071. * @return string the filename on success&return.falseforfailure;.
  7072. */
  7073. function readdir ($dir_handle = null) {}
  7074. /**
  7075. * Return an instance of the Directory class
  7076. * @link http://www.php.net/manual/en/class.dir.php
  7077. * @param directory
  7078. * @param context[optional]
  7079. * @return string
  7080. */
  7081. function dir ($directory, $context) {}
  7082. /**
  7083. * List files and directories inside the specified path
  7084. * @link http://www.php.net/manual/en/function.scandir.php
  7085. * @param directory string <p>
  7086. * The directory that will be scanned.
  7087. * </p>
  7088. * @param sorting_order int[optional] <p>
  7089. * By default, the sorted order is alphabetical in ascending order. If
  7090. * the optional sorting_order is set to non-zero,
  7091. * then the sort order is alphabetical in descending order.
  7092. * </p>
  7093. * @param context resource[optional] <p>
  7094. * For a description of the context parameter,
  7095. * refer to the streams section of
  7096. * the manual.
  7097. * </p>
  7098. * @return array an array of filenames on success, or false on
  7099. * failure. If directory is not a directory, then
  7100. * boolean false is returned, and an error of level
  7101. * E_WARNING is generated.
  7102. */
  7103. function scandir ($directory, $sorting_order = null, $context = null) {}
  7104. /**
  7105. * Find pathnames matching a pattern
  7106. * @link http://www.php.net/manual/en/function.glob.php
  7107. * @param pattern string <p>
  7108. * The pattern. No tilde expansion or parameter substitution is done.
  7109. * </p>
  7110. * @param flags int[optional] <p>
  7111. * Valid flags:
  7112. * GLOB_MARK - Adds a slash to each directory returned
  7113. * @return array an array containing the matched files/directories, an empty array
  7114. * if no file matched or false on error.
  7115. * </p>
  7116. * <p>
  7117. * On some systems it is impossible to distinguish between empty match and an
  7118. * error.
  7119. */
  7120. function glob ($pattern, $flags = null) {}
  7121. /**
  7122. * Gets last access time of file
  7123. * @link http://www.php.net/manual/en/function.fileatime.php
  7124. * @param filename string <p>
  7125. * Path to the file.
  7126. * </p>
  7127. * @return int the time the file was last accessed, &return.falseforfailure;.
  7128. * The time is returned as a Unix timestamp.
  7129. */
  7130. function fileatime ($filename) {}
  7131. /**
  7132. * Gets inode change time of file
  7133. * @link http://www.php.net/manual/en/function.filectime.php
  7134. * @param filename string <p>
  7135. * Path to the file.
  7136. * </p>
  7137. * @return int the time the file was last changed, &return.falseforfailure;.
  7138. * The time is returned as a Unix timestamp.
  7139. */
  7140. function filectime ($filename) {}
  7141. /**
  7142. * Gets file group
  7143. * @link http://www.php.net/manual/en/function.filegroup.php
  7144. * @param filename string <p>
  7145. * Path to the file.
  7146. * </p>
  7147. * @return int the group ID of the file, or false in case
  7148. * of an error. The group ID is returned in numerical format, use
  7149. * posix_getgrgid to resolve it to a group name.
  7150. * Upon failure, false is returned.
  7151. */
  7152. function filegroup ($filename) {}
  7153. /**
  7154. * Gets file inode
  7155. * @link http://www.php.net/manual/en/function.fileinode.php
  7156. * @param filename string <p>
  7157. * Path to the file.
  7158. * </p>
  7159. * @return int the inode number of the file, &return.falseforfailure;.
  7160. */
  7161. function fileinode ($filename) {}
  7162. /**
  7163. * Gets file modification time
  7164. * @link http://www.php.net/manual/en/function.filemtime.php
  7165. * @param filename string <p>
  7166. * Path to the file.
  7167. * </p>
  7168. * @return int the time the file was last modified, &return.falseforfailure;.
  7169. * The time is returned as a Unix timestamp, which is
  7170. * suitable for the date function.
  7171. */
  7172. function filemtime ($filename) {}
  7173. /**
  7174. * Gets file owner
  7175. * @link http://www.php.net/manual/en/function.fileowner.php
  7176. * @param filename string <p>
  7177. * Path to the file.
  7178. * </p>
  7179. * @return int the user ID of the owner of the file, &return.falseforfailure;.
  7180. * The user ID is returned in numerical format, use
  7181. * posix_getpwuid to resolve it to a username.
  7182. */
  7183. function fileowner ($filename) {}
  7184. /**
  7185. * Gets file permissions
  7186. * @link http://www.php.net/manual/en/function.fileperms.php
  7187. * @param filename string <p>
  7188. * Path to the file.
  7189. * </p>
  7190. * @return int the permissions on the file, &return.falseforfailure;.
  7191. */
  7192. function fileperms ($filename) {}
  7193. /**
  7194. * Gets file size
  7195. * @link http://www.php.net/manual/en/function.filesize.php
  7196. * @param filename string <p>
  7197. * Path to the file.
  7198. * </p>
  7199. * @return int the size of the file in bytes, or false (and generates an error
  7200. * of level E_WARNING) in case of an error.
  7201. */
  7202. function filesize ($filename) {}
  7203. /**
  7204. * Gets file type
  7205. * @link http://www.php.net/manual/en/function.filetype.php
  7206. * @param filename string <p>
  7207. * Path to the file.
  7208. * </p>
  7209. * @return string the type of the file. Possible values are fifo, char,
  7210. * dir, block, link, file, socket and unknown.
  7211. * </p>
  7212. * <p>
  7213. * Returns false if an error occurs. filetype will also
  7214. * produce an E_NOTICE message if the stat call fails
  7215. * or if the file type is unknown.
  7216. */
  7217. function filetype ($filename) {}
  7218. /**
  7219. * Checks whether a file or directory exists
  7220. * @link http://www.php.net/manual/en/function.file-exists.php
  7221. * @param filename string <p>
  7222. * Path to the file or directory.
  7223. * </p>
  7224. * <p>
  7225. * On windows, use //computername/share/filename or
  7226. * \\computername\share\filename to check files on
  7227. * network shares.
  7228. * </p>
  7229. * @return bool true if the file or directory specified by
  7230. * filename exists; false otherwise.
  7231. * </p>
  7232. * <p>
  7233. * This function will return false for symlinks pointing to non-existing
  7234. * files.
  7235. * </p>
  7236. * <p>
  7237. * This function returns false for files inaccessible due to safe mode restrictions. However these
  7238. * files still can be included if
  7239. * they are located in safe_mode_include_dir.
  7240. * </p>
  7241. * <p>
  7242. * The check is done using the real UID/GID instead of the effective one.
  7243. */
  7244. function file_exists ($filename) {}
  7245. /**
  7246. * Tells whether the filename is writable
  7247. * @link http://www.php.net/manual/en/function.is-writable.php
  7248. * @param filename string <p>
  7249. * The filename being checked.
  7250. * </p>
  7251. * @return bool true if the filename exists and is
  7252. * writable.
  7253. */
  7254. function is_writable ($filename) {}
  7255. /**
  7256. * &Alias; <function>is_writable</function>
  7257. * @link http://www.php.net/manual/en/function.is-writeable.php
  7258. * @param filename
  7259. */
  7260. function is_writeable ($filename) {}
  7261. /**
  7262. * Tells whether a file exists and is readable
  7263. * @link http://www.php.net/manual/en/function.is-readable.php
  7264. * @param filename string <p>
  7265. * Path to the file.
  7266. * </p>
  7267. * @return bool true if the file or directory specified by
  7268. * filename exists and is readable, false otherwise.
  7269. */
  7270. function is_readable ($filename) {}
  7271. /**
  7272. * Tells whether the filename is executable
  7273. * @link http://www.php.net/manual/en/function.is-executable.php
  7274. * @param filename string <p>
  7275. * Path to the file.
  7276. * </p>
  7277. * @return bool true if the filename exists and is executable, or false on
  7278. * error.
  7279. */
  7280. function is_executable ($filename) {}
  7281. /**
  7282. * Tells whether the filename is a regular file
  7283. * @link http://www.php.net/manual/en/function.is-file.php
  7284. * @param filename string <p>
  7285. * Path to the file.
  7286. * </p>
  7287. * @return bool true if the filename exists and is a regular file, false
  7288. * otherwise.
  7289. */
  7290. function is_file ($filename) {}
  7291. /**
  7292. * Tells whether the filename is a directory
  7293. * @link http://www.php.net/manual/en/function.is-dir.php
  7294. * @param filename string <p>
  7295. * Path to the file. If filename is a relative
  7296. * filename, it will be checked relative to the current working
  7297. * directory. If filename is a symbolic or hard link
  7298. * then the link will be resolved and checked. If you have enabled &safemode;,
  7299. * or open_basedir further
  7300. * restrictions may apply.
  7301. * </p>
  7302. * @return bool true if the filename exists and is a directory, false
  7303. * otherwise.
  7304. */
  7305. function is_dir ($filename) {}
  7306. /**
  7307. * Tells whether the filename is a symbolic link
  7308. * @link http://www.php.net/manual/en/function.is-link.php
  7309. * @param filename string <p>
  7310. * Path to the file.
  7311. * </p>
  7312. * @return bool true if the filename exists and is a symbolic link, false
  7313. * otherwise.
  7314. */
  7315. function is_link ($filename) {}
  7316. /**
  7317. * Gives information about a file
  7318. * @link http://www.php.net/manual/en/function.stat.php
  7319. * @param filename string <p>
  7320. * Path to the file.
  7321. * </p>
  7322. * @return array <table>
  7323. * stat and fstat result
  7324. * format
  7325. * <tr valign="top">
  7326. * <td>Numeric</td>
  7327. * <td>Associative (since PHP 4.0.6)</td>
  7328. * <td>Description</td>
  7329. * </tr>
  7330. * <tr valign="top">
  7331. * <td>0</td>
  7332. * <td>dev</td>
  7333. * <td>device number</td>
  7334. * </tr>
  7335. * <tr valign="top">
  7336. * <td>1</td>
  7337. * <td>ino</td>
  7338. * <td>inode number *</td>
  7339. * </tr>
  7340. * <tr valign="top">
  7341. * <td>2</td>
  7342. * <td>mode</td>
  7343. * <td>inode protection mode</td>
  7344. * </tr>
  7345. * <tr valign="top">
  7346. * <td>3</td>
  7347. * <td>nlink</td>
  7348. * <td>number of links</td>
  7349. * </tr>
  7350. * <tr valign="top">
  7351. * <td>4</td>
  7352. * <td>uid</td>
  7353. * <td>userid of owner *</td>
  7354. * </tr>
  7355. * <tr valign="top">
  7356. * <td>5</td>
  7357. * <td>gid</td>
  7358. * <td>groupid of owner *</td>
  7359. * </tr>
  7360. * <tr valign="top">
  7361. * <td>6</td>
  7362. * <td>rdev</td>
  7363. * <td>device type, if inode device</td>
  7364. * </tr>
  7365. * <tr valign="top">
  7366. * <td>7</td>
  7367. * <td>size</td>
  7368. * <td>size in bytes</td>
  7369. * </tr>
  7370. * <tr valign="top">
  7371. * <td>8</td>
  7372. * <td>atime</td>
  7373. * <td>time of last access (Unix timestamp)</td>
  7374. * </tr>
  7375. * <tr valign="top">
  7376. * <td>9</td>
  7377. * <td>mtime</td>
  7378. * <td>time of last modification (Unix timestamp)</td>
  7379. * </tr>
  7380. * <tr valign="top">
  7381. * <td>10</td>
  7382. * <td>ctime</td>
  7383. * <td>time of last inode change (Unix timestamp)</td>
  7384. * </tr>
  7385. * <tr valign="top">
  7386. * <td>11</td>
  7387. * <td>blksize</td>
  7388. * <td>blocksize of filesystem IO **</td>
  7389. * </tr>
  7390. * <tr valign="top">
  7391. * <td>12</td>
  7392. * <td>blocks</td>
  7393. * <td>number of 512-byte blocks allocated **</td>
  7394. * </tr>
  7395. * </table>
  7396. * * On Windows this will always be 0.
  7397. * </p>
  7398. * <p>
  7399. * ** Only valid on systems supporting the st_blksize type - other
  7400. * systems (e.g. Windows) return -1.
  7401. * </p>
  7402. * <p>
  7403. * In case of error, stat returns false.
  7404. */
  7405. function stat ($filename) {}
  7406. /**
  7407. * Gives information about a file or symbolic link
  7408. * @link http://www.php.net/manual/en/function.lstat.php
  7409. * @param filename string <p>
  7410. * Path to a file or a symbolic link.
  7411. * </p>
  7412. * @return array See the manual page for stat for information on
  7413. * the structure of the array that lstat returns.
  7414. * This function is identical to the stat function
  7415. * except that if the filename parameter is a symbolic
  7416. * link, the status of the symbolic link is returned, not the status of the
  7417. * file pointed to by the symbolic link.
  7418. */
  7419. function lstat ($filename) {}
  7420. /**
  7421. * Changes file owner
  7422. * @link http://www.php.net/manual/en/function.chown.php
  7423. * @param filename string <p>
  7424. * Path to the file.
  7425. * </p>
  7426. * @param user mixed <p>
  7427. * A user name or number.
  7428. * </p>
  7429. * @return bool Returns true on success or false on failure.
  7430. */
  7431. function chown ($filename, $user) {}
  7432. /**
  7433. * Changes file group
  7434. * @link http://www.php.net/manual/en/function.chgrp.php
  7435. * @param filename string <p>
  7436. * Path to the file.
  7437. * </p>
  7438. * @param group mixed <p>
  7439. * A group name or number.
  7440. * </p>
  7441. * @return bool Returns true on success or false on failure.
  7442. */
  7443. function chgrp ($filename, $group) {}
  7444. /**
  7445. * Changes user ownership of symlink
  7446. * @link http://www.php.net/manual/en/function.lchown.php
  7447. * @param filename string <p>
  7448. * Path to the file.
  7449. * </p>
  7450. * @param user mixed <p>
  7451. * User name or number.
  7452. * </p>
  7453. * @return bool Returns true on success or false on failure.
  7454. */
  7455. function lchown ($filename, $user) {}
  7456. /**
  7457. * Changes group ownership of symlink
  7458. * @link http://www.php.net/manual/en/function.lchgrp.php
  7459. * @param filename string <p>
  7460. * Path to the symlink.
  7461. * </p>
  7462. * @param group mixed <p>
  7463. * The group specified by name or number.
  7464. * </p>
  7465. * @return bool Returns true on success or false on failure.
  7466. */
  7467. function lchgrp ($filename, $group) {}
  7468. /**
  7469. * Changes file mode
  7470. * @link http://www.php.net/manual/en/function.chmod.php
  7471. * @param filename string <p>
  7472. * Path to the file.
  7473. * </p>
  7474. * @param mode int <p>
  7475. * Note that mode is not automatically
  7476. * assumed to be an octal value, so strings (such as "g+w") will
  7477. * not work properly. To ensure the expected operation,
  7478. * you need to prefix mode with a zero (0):
  7479. * </p>
  7480. * <pre>
  7481. * &lt;?php
  7482. * chmod("/somedir/somefile", 755); // decimal; probably incorrect
  7483. * chmod("/somedir/somefile", "u+rwx,go+rx"); // string; incorrect
  7484. * chmod("/somedir/somefile", 0755); // octal; correct value of mode
  7485. * ?&gt;
  7486. * </pre>
  7487. * <p>
  7488. * The mode parameter consists of three octal
  7489. * number components specifying access restrictions for the owner,
  7490. * the user group in which the owner is in, and to everybody else in
  7491. * this order. One component can be computed by adding up the needed
  7492. * permissions for that target user base. Number 1 means that you
  7493. * grant execute rights, number 2 means that you make the file
  7494. * writeable, number 4 means that you make the file readable. Add
  7495. * up these numbers to specify needed rights. You can also read more
  7496. * about modes on Unix systems with 'man 1 chmod'
  7497. * and 'man 2 chmod'.
  7498. * </p>
  7499. * <pre>
  7500. * &lt;?php
  7501. * // Read and write for owner, nothing for everybody else
  7502. * chmod("/somedir/somefile", 0600);
  7503. *
  7504. * // Read and write for owner, read for everybody else
  7505. * chmod("/somedir/somefile", 0644);
  7506. *
  7507. * // Everything for owner, read and execute for others
  7508. * chmod("/somedir/somefile", 0755);
  7509. *
  7510. * // Everything for owner, read and execute for owner's group
  7511. * chmod("/somedir/somefile", 0750);
  7512. * ?&gt;
  7513. * </pre>
  7514. * <p>
  7515. * @return bool Returns true on success or false on failure.
  7516. */
  7517. function chmod ($filename, $mode) {}
  7518. /**
  7519. * Sets access and modification time of file
  7520. * @link http://www.php.net/manual/en/function.touch.php
  7521. * @param filename string <p>
  7522. * The name of the file being touched.
  7523. * </p>
  7524. * @param time int[optional] <p>
  7525. * The touch time. If time is not supplied,
  7526. * the current system time is used.
  7527. * </p>
  7528. * @param atime int[optional] <p>
  7529. * If present, the access time of the given filename is set to
  7530. * the value of atime. Otherwise, it is set to
  7531. * time.
  7532. * </p>
  7533. * @return bool Returns true on success or false on failure.
  7534. */
  7535. function touch ($filename, $time = null, $atime = null) {}
  7536. /**
  7537. * Clears file status cache
  7538. * @link http://www.php.net/manual/en/function.clearstatcache.php
  7539. * @param clear_realpath_cache bool[optional] <p>
  7540. * Whether to clear the realpath cache or not.
  7541. * </p>
  7542. * @param filename string[optional] <p>
  7543. * Clear the realpath cache for a specific filename; only used if
  7544. * clear_realpath_cache is true.
  7545. * </p>
  7546. * @return void
  7547. */
  7548. function clearstatcache ($clear_realpath_cache = null, $filename = null) {}
  7549. /**
  7550. * Returns the total size of a filesystem or disk partition
  7551. * @link http://www.php.net/manual/en/function.disk-total-space.php
  7552. * @param directory string <p>
  7553. * A directory of the filesystem or disk partition.
  7554. * </p>
  7555. * @return float the total number of bytes as a float
  7556. * &return.falseforfailure;.
  7557. */
  7558. function disk_total_space ($directory) {}
  7559. /**
  7560. * Returns available space on filesystem or disk partition
  7561. * @link http://www.php.net/manual/en/function.disk-free-space.php
  7562. * @param directory string <p>
  7563. * A directory of the filesystem or disk partition.
  7564. * </p>
  7565. * <p>
  7566. * Given a file name instead of a directory, the behaviour of the
  7567. * function is unspecified and may differ between operating systems and
  7568. * PHP versions.
  7569. * </p>
  7570. * @return float the number of available bytes as a float
  7571. * &return.falseforfailure;.
  7572. */
  7573. function disk_free_space ($directory) {}
  7574. /**
  7575. * &Alias; <function>disk_free_space</function>
  7576. * @link http://www.php.net/manual/en/function.diskfreespace.php
  7577. * @param path
  7578. */
  7579. function diskfreespace ($path) {}
  7580. /**
  7581. * Get realpath cache size
  7582. * @link http://www.php.net/manual/en/function.realpath_cache_size.php
  7583. * @return int how much memory realpath cache is using.
  7584. */
  7585. function realpath_cache_size () {}
  7586. /**
  7587. * Get realpath cache entries
  7588. * @link http://www.php.net/manual/en/function.realpath_cache_get.php
  7589. * @return array an array of realpath cache entries. The keys are original path
  7590. * entries, and the values are arrays of data items, containing the resolved
  7591. * path, expiration date, and other options kept in the cache.
  7592. */
  7593. function realpath_cache_get () {}
  7594. /**
  7595. * Send mail
  7596. * @link http://www.php.net/manual/en/function.mail.php
  7597. * @param to string <p>
  7598. * Receiver, or receivers of the mail.
  7599. * </p>
  7600. * <p>
  7601. * The formatting of this string must comply with
  7602. * RFC 2822. Some examples are:
  7603. * user@example.com
  7604. * user@example.com, anotheruser@example.com
  7605. * User &lt;user@example.com&gt;
  7606. * User &lt;user@example.com&gt;, Another User &lt;anotheruser@example.com&gt;
  7607. * </p>
  7608. * @param subject string <p>
  7609. * Subject of the email to be sent.
  7610. * </p>
  7611. * <p>
  7612. * Subject must satisfy RFC 2047.
  7613. * </p>
  7614. * @param message string <p>
  7615. * Message to be sent.
  7616. * </p>
  7617. * <p>
  7618. * Each line should be separated with a LF (\n). Lines should not be larger
  7619. * than 70 characters.
  7620. * </p>
  7621. * <p>
  7622. * (Windows only) When PHP is talking to a SMTP server directly, if a full
  7623. * stop is found on the start of a line, it is removed. To counter-act this,
  7624. * replace these occurrences with a double dot.
  7625. * </p>
  7626. * <pre>
  7627. * &lt;?php
  7628. * $text = str_replace("\n.", "\n..", $text);
  7629. * ?&gt;
  7630. * </pre>
  7631. * @param additional_headers string[optional] <p>
  7632. * String to be inserted at the end of the email header.
  7633. * </p>
  7634. * <p>
  7635. * This is typically used to add extra headers (From, Cc, and Bcc).
  7636. * Multiple extra headers should be separated with a CRLF (\r\n).
  7637. * </p>
  7638. * <p>
  7639. * When sending mail, the mail must contain
  7640. * a From header. This can be set with the
  7641. * additional_headers parameter, or a default
  7642. * can be set in &php.ini;.
  7643. * </p>
  7644. * <p>
  7645. * Failing to do this will result in an error
  7646. * message similar to Warning: mail(): "sendmail_from" not
  7647. * set in php.ini or custom "From:" header missing.
  7648. * The From header sets also
  7649. * Return-Path under Windows.
  7650. * </p>
  7651. * <p>
  7652. * If messages are not received, try using a LF (\n) only.
  7653. * Some poor quality Unix mail transfer agents replace LF by CRLF
  7654. * automatically (which leads to doubling CR if CRLF is used).
  7655. * This should be a last resort, as it does not comply with
  7656. * RFC 2822.
  7657. * </p>
  7658. * @param additional_parameters string[optional] <p>
  7659. * The additional_parameters parameter
  7660. * can be used to pass additional flags as command line options to the
  7661. * program configured to be used when sending mail, as defined by the
  7662. * sendmail_path configuration setting. For example,
  7663. * this can be used to set the envelope sender address when using
  7664. * sendmail with the -f sendmail option.
  7665. * </p>
  7666. * <p>
  7667. * The user that the webserver runs as should be added as a trusted user to the
  7668. * sendmail configuration to prevent a 'X-Warning' header from being added
  7669. * to the message when the envelope sender (-f) is set using this method.
  7670. * For sendmail users, this file is /etc/mail/trusted-users.
  7671. * </p>
  7672. * @return bool true if the mail was successfully accepted for delivery, false otherwise.
  7673. * </p>
  7674. * <p>
  7675. * It is important to note that just because the mail was accepted for delivery,
  7676. * it does NOT mean the mail will actually reach the intended destination.
  7677. */
  7678. function mail ($to, $subject, $message, $additional_headers = null, $additional_parameters = null) {}
  7679. /**
  7680. * Calculate the hash value needed by EZMLM
  7681. * @link http://www.php.net/manual/en/function.ezmlm-hash.php
  7682. * @param addr string <p>
  7683. * The email address that's being hashed.
  7684. * </p>
  7685. * @return int The hash value of addr.
  7686. */
  7687. function ezmlm_hash ($addr) {}
  7688. /**
  7689. * Open connection to system logger
  7690. * @link http://www.php.net/manual/en/function.openlog.php
  7691. * @param ident string <p>
  7692. * The string ident is added to each message.
  7693. * </p>
  7694. * @param option int <p>
  7695. * The option argument is used to indicate
  7696. * what logging options will be used when generating a log message.
  7697. * <table>
  7698. * openlog Options
  7699. * <tr valign="top">
  7700. * <td>Constant</td>
  7701. * <td>Description</td>
  7702. * </tr>
  7703. * <tr valign="top">
  7704. * <td>LOG_CONS</td>
  7705. * <td>
  7706. * if there is an error while sending data to the system logger,
  7707. * write directly to the system console
  7708. * </td>
  7709. * </tr>
  7710. * <tr valign="top">
  7711. * <td>LOG_NDELAY</td>
  7712. * <td>
  7713. * open the connection to the logger immediately
  7714. * </td>
  7715. * </tr>
  7716. * <tr valign="top">
  7717. * <td>LOG_ODELAY</td>
  7718. * <td>
  7719. * (default) delay opening the connection until the first
  7720. * message is logged
  7721. * </td>
  7722. * </tr>
  7723. * <tr valign="top">
  7724. * <td>LOG_PERROR</td>
  7725. * <td>print log message also to standard error</td>
  7726. * </tr>
  7727. * <tr valign="top">
  7728. * <td>LOG_PID</td>
  7729. * <td>include PID with each message</td>
  7730. * </tr>
  7731. * </table>
  7732. * You can use one or more of this options. When using multiple options
  7733. * you need to OR them, i.e. to open the connection
  7734. * immediately, write to the console and include the PID in each message,
  7735. * you will use: LOG_CONS | LOG_NDELAY | LOG_PID
  7736. * </p>
  7737. * @param facility int <p>
  7738. * The facility argument is used to specify what
  7739. * type of program is logging the message. This allows you to specify
  7740. * (in your machine's syslog configuration) how messages coming from
  7741. * different facilities will be handled.
  7742. * <table>
  7743. * openlog Facilities
  7744. * <tr valign="top">
  7745. * <td>Constant</td>
  7746. * <td>Description</td>
  7747. * </tr>
  7748. * <tr valign="top">
  7749. * <td>LOG_AUTH</td>
  7750. * <td>
  7751. * security/authorization messages (use
  7752. * LOG_AUTHPRIV instead
  7753. * in systems where that constant is defined)
  7754. * </td>
  7755. * </tr>
  7756. * <tr valign="top">
  7757. * <td>LOG_AUTHPRIV</td>
  7758. * <td>security/authorization messages (private)</td>
  7759. * </tr>
  7760. * <tr valign="top">
  7761. * <td>LOG_CRON</td>
  7762. * <td>clock daemon (cron and at)</td>
  7763. * </tr>
  7764. * <tr valign="top">
  7765. * <td>LOG_DAEMON</td>
  7766. * <td>other system daemons</td>
  7767. * </tr>
  7768. * <tr valign="top">
  7769. * <td>LOG_KERN</td>
  7770. * <td>kernel messages</td>
  7771. * </tr>
  7772. * <tr valign="top">
  7773. * <td>LOG_LOCAL0 ... LOG_LOCAL7</td>
  7774. * <td>reserved for local use, these are not available in Windows</td>
  7775. * </tr>
  7776. * <tr valign="top">
  7777. * <td>LOG_LPR</td>
  7778. * <td>line printer subsystem</td>
  7779. * </tr>
  7780. * <tr valign="top">
  7781. * <td>LOG_MAIL</td>
  7782. * <td>mail subsystem</td>
  7783. * </tr>
  7784. * <tr valign="top">
  7785. * <td>LOG_NEWS</td>
  7786. * <td>USENET news subsystem</td>
  7787. * </tr>
  7788. * <tr valign="top">
  7789. * <td>LOG_SYSLOG</td>
  7790. * <td>messages generated internally by syslogd</td>
  7791. * </tr>
  7792. * <tr valign="top">
  7793. * <td>LOG_USER</td>
  7794. * <td>generic user-level messages</td>
  7795. * </tr>
  7796. * <tr valign="top">
  7797. * <td>LOG_UUCP</td>
  7798. * <td>UUCP subsystem</td>
  7799. * </tr>
  7800. * </table>
  7801. * </p>
  7802. * <p>
  7803. * LOG_USER is the only valid log type under Windows
  7804. * operating systems
  7805. * </p>
  7806. * @return bool Returns true on success or false on failure.
  7807. */
  7808. function openlog ($ident, $option, $facility) {}
  7809. /**
  7810. * Generate a system log message
  7811. * @link http://www.php.net/manual/en/function.syslog.php
  7812. * @param priority int <p>
  7813. * priority is a combination of the facility and
  7814. * the level. Possible values are:
  7815. * <table>
  7816. * syslog Priorities (in descending order)
  7817. * <tr valign="top">
  7818. * <td>Constant</td>
  7819. * <td>Description</td>
  7820. * </tr>
  7821. * <tr valign="top">
  7822. * <td>LOG_EMERG</td>
  7823. * <td>system is unusable</td>
  7824. * </tr>
  7825. * <tr valign="top">
  7826. * <td>LOG_ALERT</td>
  7827. * <td>action must be taken immediately</td>
  7828. * </tr>
  7829. * <tr valign="top">
  7830. * <td>LOG_CRIT</td>
  7831. * <td>critical conditions</td>
  7832. * </tr>
  7833. * <tr valign="top">
  7834. * <td>LOG_ERR</td>
  7835. * <td>error conditions</td>
  7836. * </tr>
  7837. * <tr valign="top">
  7838. * <td>LOG_WARNING</td>
  7839. * <td>warning conditions</td>
  7840. * </tr>
  7841. * <tr valign="top">
  7842. * <td>LOG_NOTICE</td>
  7843. * <td>normal, but significant, condition</td>
  7844. * </tr>
  7845. * <tr valign="top">
  7846. * <td>LOG_INFO</td>
  7847. * <td>informational message</td>
  7848. * </tr>
  7849. * <tr valign="top">
  7850. * <td>LOG_DEBUG</td>
  7851. * <td>debug-level message</td>
  7852. * </tr>
  7853. * </table>
  7854. * </p>
  7855. * @param message string <p>
  7856. * The message to send, except that the two characters
  7857. * %m will be replaced by the error message string
  7858. * (strerror) corresponding to the present value of
  7859. * errno.
  7860. * </p>
  7861. * @return bool Returns true on success or false on failure.
  7862. */
  7863. function syslog ($priority, $message) {}
  7864. /**
  7865. * Close connection to system logger
  7866. * @link http://www.php.net/manual/en/function.closelog.php
  7867. * @return bool Returns true on success or false on failure.
  7868. */
  7869. function closelog () {}
  7870. /**
  7871. * Initializes all syslog related variables
  7872. * @link http://www.php.net/manual/en/function.define-syslog-variables.php
  7873. * @return void
  7874. */
  7875. function define_syslog_variables () {}
  7876. /**
  7877. * Combined linear congruential generator
  7878. * @link http://www.php.net/manual/en/function.lcg-value.php
  7879. * @return float A pseudo random float value in the range of (0, 1)
  7880. */
  7881. function lcg_value () {}
  7882. /**
  7883. * Calculate the metaphone key of a string
  7884. * @link http://www.php.net/manual/en/function.metaphone.php
  7885. * @param str string <p>
  7886. * The input string.
  7887. * </p>
  7888. * @param phonemes int[optional] <p>
  7889. * This parameter restricts the returned metaphone key to
  7890. * phonemes characters in length.
  7891. * The default value of 0 means no restriction.
  7892. * </p>
  7893. * @return string the metaphone key as a string, &return.falseforfailure;.
  7894. */
  7895. function metaphone ($str, $phonemes = null) {}
  7896. /**
  7897. * Turn on output buffering
  7898. * @link http://www.php.net/manual/en/function.ob-start.php
  7899. * @param output_callback callback[optional] <p>
  7900. * An optional output_callback function may be
  7901. * specified. This function takes a string as a parameter and should
  7902. * return a string. The function will be called when
  7903. * the output buffer is flushed (sent) or cleaned (with
  7904. * ob_flush, ob_clean or similar
  7905. * function) or when the output buffer
  7906. * is flushed to the browser at the end of the request. When
  7907. * output_callback is called, it will receive the
  7908. * contents of the output buffer as its parameter and is expected to
  7909. * return a new output buffer as a result, which will be sent to the
  7910. * browser. If the output_callback is not a
  7911. * callable function, this function will return false.
  7912. * </p>
  7913. * <p>
  7914. * If the callback function has two parameters, the second parameter is
  7915. * filled with a bit-field consisting of
  7916. * PHP_OUTPUT_HANDLER_START,
  7917. * PHP_OUTPUT_HANDLER_CONT and
  7918. * PHP_OUTPUT_HANDLER_END.
  7919. * </p>
  7920. * <p>
  7921. * If output_callback returns false original
  7922. * input is sent to the browser.
  7923. * </p>
  7924. * <p>
  7925. * The output_callback parameter may be bypassed
  7926. * by passing a &null; value.
  7927. * </p>
  7928. * <p>
  7929. * ob_end_clean, ob_end_flush,
  7930. * ob_clean, ob_flush and
  7931. * ob_start may not be called from a callback
  7932. * function. If you call them from callback function, the behavior is
  7933. * undefined. If you would like to delete the contents of a buffer,
  7934. * return "" (a null string) from callback function.
  7935. * You can't even call functions using the output buffering functions like
  7936. * print_r($expression, true) or
  7937. * highlight_file($filename, true) from a callback
  7938. * function.
  7939. * </p>
  7940. * <p>
  7941. * In PHP 4.0.4, ob_gzhandler was introduced to
  7942. * facilitate sending gz-encoded data to web browsers that support
  7943. * compressed web pages. ob_gzhandler determines
  7944. * what type of content encoding the browser will accept and will return
  7945. * its output accordingly.
  7946. * </p>
  7947. * @param chunk_size int[optional] <p>
  7948. * If the optional parameter chunk_size is passed, the
  7949. * buffer will be flushed after any output call which causes the buffer's
  7950. * length to equal or exceed chunk_size.
  7951. * Default value 0 means that the function is called only in the end,
  7952. * other special value 1 sets chunk_size to 4096.
  7953. * </p>
  7954. * @param erase bool[optional] <p>
  7955. * If the optional parameter erase is set to false,
  7956. * the buffer will not be deleted until the script finishes.
  7957. * This causes that flushing and cleaning functions would issue a notice
  7958. * and return false if called.
  7959. * </p>
  7960. * @return bool Returns true on success or false on failure.
  7961. */
  7962. function ob_start ($output_callback = null, $chunk_size = null, $erase = null) {}
  7963. /**
  7964. * Flush (send) the output buffer
  7965. * @link http://www.php.net/manual/en/function.ob-flush.php
  7966. * @return void
  7967. */
  7968. function ob_flush () {}
  7969. /**
  7970. * Clean (erase) the output buffer
  7971. * @link http://www.php.net/manual/en/function.ob-clean.php
  7972. * @return void
  7973. */
  7974. function ob_clean () {}
  7975. /**
  7976. * Flush (send) the output buffer and turn off output buffering
  7977. * @link http://www.php.net/manual/en/function.ob-end-flush.php
  7978. * @return bool Returns true on success or false on failure. Reasons for failure are first that you called the
  7979. * function without an active buffer or that for some reason a buffer could
  7980. * not be deleted (possible for special buffer).
  7981. */
  7982. function ob_end_flush () {}
  7983. /**
  7984. * Clean (erase) the output buffer and turn off output buffering
  7985. * @link http://www.php.net/manual/en/function.ob-end-clean.php
  7986. * @return bool Returns true on success or false on failure. Reasons for failure are first that you called the
  7987. * function without an active buffer or that for some reason a buffer could
  7988. * not be deleted (possible for special buffer).
  7989. */
  7990. function ob_end_clean () {}
  7991. /**
  7992. * Flush the output buffer, return it as a string and turn off output buffering
  7993. * @link http://www.php.net/manual/en/function.ob-get-flush.php
  7994. * @return string the output buffer or false if no buffering is active.
  7995. */
  7996. function ob_get_flush () {}
  7997. /**
  7998. * Get current buffer contents and delete current output buffer
  7999. * @link http://www.php.net/manual/en/function.ob-get-clean.php
  8000. * @return string the contents of the output buffer and end output buffering.
  8001. * If output buffering isn't active then false is returned.
  8002. */
  8003. function ob_get_clean () {}
  8004. /**
  8005. * Return the length of the output buffer
  8006. * @link http://www.php.net/manual/en/function.ob-get-length.php
  8007. * @return int the length of the output buffer contents or false if no
  8008. * buffering is active.
  8009. */
  8010. function ob_get_length () {}
  8011. /**
  8012. * Return the nesting level of the output buffering mechanism
  8013. * @link http://www.php.net/manual/en/function.ob-get-level.php
  8014. * @return int the level of nested output buffering handlers or zero if output
  8015. * buffering is not active.
  8016. */
  8017. function ob_get_level () {}
  8018. /**
  8019. * Get status of output buffers
  8020. * @link http://www.php.net/manual/en/function.ob-get-status.php
  8021. * @param full_status bool[optional] <p>
  8022. * true to return all active output buffer levels. If false or not
  8023. * set, only the top level output buffer is returned.
  8024. * </p>
  8025. * @return array If called without the full_status parameter
  8026. * or with full_status = false a simple array
  8027. * with the following elements is returned:
  8028. * <pre>
  8029. * Array
  8030. * (
  8031. * &nbsp;&nbsp;[level] => 2
  8032. * &nbsp;&nbsp;[type] => 0
  8033. * &nbsp;&nbsp;[status] => 0
  8034. * &nbsp;&nbsp;[name] => URL-Rewriter
  8035. * &nbsp;&nbsp;[del] => 1
  8036. * )
  8037. * </pre>
  8038. * <p>
  8039. * Simple ob_get_status results
  8040. * <b>Key:</b> level
  8041. * <b>Value:</b> Output nesting level
  8042. * <b>Key:</b> type
  8043. * <b>Value:</b> PHP_OUTPUT_HANDLER_INTERNAL (0) or PHP_OUTPUT_HANDLER_USER (1)
  8044. * <b>Key:</b> status
  8045. * <b>Value:</b> One of PHP_OUTPUT_HANDLER_START (0), PHP_OUTPUT_HANDLER_CONT (1) or PHP_OUTPUT_HANDLER_END (2)
  8046. * <b>Key:</b> name
  8047. * <b>Value:</b> Name of active output handler or ' default output handler' if none is set
  8048. * <b>Key:</b> del
  8049. * <b>Value:</b> Erase-flag as set by ob_start()
  8050. * </p>
  8051. * <p>
  8052. * If called with full_status = true an array
  8053. * with one element for each active output buffer level is returned.
  8054. * The output level is used as key of the top level array and each array
  8055. * element itself is another array holding status information
  8056. * on one active output level.
  8057. * </p>
  8058. * <pre>
  8059. * Array
  8060. * (
  8061. * &nbsp;&nbsp;[0] => Array
  8062. * &nbsp;&nbsp;&nbsp;&nbsp;(
  8063. * &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;[chunk_size] => 0
  8064. * &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;[size] => 40960
  8065. * &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;[block_size] => 10240
  8066. * &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;[type] => 1
  8067. * &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;[status] => 0
  8068. * &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;[name] => default output handler
  8069. * &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;[del] => 1
  8070. * &nbsp;&nbsp;&nbsp;&nbsp;)
  8071. *
  8072. * &nbsp;&nbsp;[1] => Array
  8073. * &nbsp;&nbsp;&nbsp;&nbsp;(
  8074. * &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;[chunk_size] => 0
  8075. * &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;[size] => 40960
  8076. * &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;[block_size] => 10240
  8077. * &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;[type] => 0
  8078. * &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;[buffer_size] => 0
  8079. * &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;[status] => 0
  8080. * &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;[name] => URL-Rewriter
  8081. * &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;[del] => 1
  8082. * &nbsp;&nbsp;&nbsp;&nbsp;)
  8083. *
  8084. * )
  8085. * </pre>
  8086. * <p>
  8087. * The full output contains these additional elements:
  8088. * Full ob_get_status results
  8089. * KeyValue
  8090. * chunk_sizeChunk size as set by ob_start
  8091. * size...
  8092. * blocksize...
  8093. */
  8094. function ob_get_status ($full_status = null) {}
  8095. /**
  8096. * Return the contents of the output buffer
  8097. * @link http://www.php.net/manual/en/function.ob-get-contents.php
  8098. * @return string This will return the contents of the output buffer or false, if output
  8099. * buffering isn't active.
  8100. */
  8101. function ob_get_contents () {}
  8102. /**
  8103. * Turn implicit flush on/off
  8104. * @link http://www.php.net/manual/en/function.ob-implicit-flush.php
  8105. * @param flag int[optional] <p>
  8106. * true to turn implicit flushing on, false otherwise.
  8107. * </p>
  8108. * @return void
  8109. */
  8110. function ob_implicit_flush ($flag = null) {}
  8111. /**
  8112. * List all output handlers in use
  8113. * @link http://www.php.net/manual/en/function.ob-list-handlers.php
  8114. * @return array This will return an array with the output handlers in use (if any). If
  8115. * output_buffering is enabled or
  8116. * an anonymous function was used with ob_start,
  8117. * ob_list_handlers will return "default output
  8118. * handler".
  8119. */
  8120. function ob_list_handlers () {}
  8121. /**
  8122. * Sort an array by key
  8123. * @link http://www.php.net/manual/en/function.ksort.php
  8124. * @param array array <p>
  8125. * The input array.
  8126. * </p>
  8127. * @param sort_flags int[optional] <p>
  8128. * You may modify the behavior of the sort using the optional
  8129. * parameter sort_flags, for details
  8130. * see sort.
  8131. * </p>
  8132. * @return bool Returns true on success or false on failure.
  8133. */
  8134. function ksort (array &$array, $sort_flags = null) {}
  8135. /**
  8136. * Sort an array by key in reverse order
  8137. * @link http://www.php.net/manual/en/function.krsort.php
  8138. * @param array array <p>
  8139. * The input array.
  8140. * </p>
  8141. * @param sort_flags int[optional] <p>
  8142. * You may modify the behavior of the sort using the optional parameter
  8143. * sort_flags, for details see
  8144. * sort.
  8145. * </p>
  8146. * @return bool Returns true on success or false on failure.
  8147. */
  8148. function krsort (array &$array, $sort_flags = null) {}
  8149. /**
  8150. * Sort an array using a "natural order" algorithm
  8151. * @link http://www.php.net/manual/en/function.natsort.php
  8152. * @param array array <p>
  8153. * The input array.
  8154. * </p>
  8155. * @return bool Returns true on success or false on failure.
  8156. */
  8157. function natsort (array &$array) {}
  8158. /**
  8159. * Sort an array using a case insensitive "natural order" algorithm
  8160. * @link http://www.php.net/manual/en/function.natcasesort.php
  8161. * @param array array <p>
  8162. * The input array.
  8163. * </p>
  8164. * @return bool Returns true on success or false on failure.
  8165. */
  8166. function natcasesort (array &$array) {}
  8167. /**
  8168. * Sort an array and maintain index association
  8169. * @link http://www.php.net/manual/en/function.asort.php
  8170. * @param array array <p>
  8171. * The input array.
  8172. * </p>
  8173. * @param sort_flags int[optional] <p>
  8174. * You may modify the behavior of the sort using the optional
  8175. * parameter sort_flags, for details
  8176. * see sort.
  8177. * </p>
  8178. * @return bool Returns true on success or false on failure.
  8179. */
  8180. function asort (array &$array, $sort_flags = null) {}
  8181. /**
  8182. * Sort an array in reverse order and maintain index association
  8183. * @link http://www.php.net/manual/en/function.arsort.php
  8184. * @param array array <p>
  8185. * The input array.
  8186. * </p>
  8187. * @param sort_flags int[optional] <p>
  8188. * You may modify the behavior of the sort using the optional parameter
  8189. * sort_flags, for details see
  8190. * sort.
  8191. * </p>
  8192. * @return bool Returns true on success or false on failure.
  8193. */
  8194. function arsort (array &$array, $sort_flags = null) {}
  8195. /**
  8196. * Sort an array
  8197. * @link http://www.php.net/manual/en/function.sort.php
  8198. * @param array array <p>
  8199. * The input array.
  8200. * </p>
  8201. * @param sort_flags int[optional] <p>
  8202. * The optional second parameter sort_flags
  8203. * may be used to modify the sorting behavior using these values:
  8204. * </p>
  8205. * <p>
  8206. * Sorting type flags:
  8207. * SORT_REGULAR - compare items normally
  8208. * (don't change types)
  8209. * @return bool Returns true on success or false on failure.
  8210. */
  8211. function sort (array &$array, $sort_flags = null) {}
  8212. /**
  8213. * Sort an array in reverse order
  8214. * @link http://www.php.net/manual/en/function.rsort.php
  8215. * @param array array <p>
  8216. * The input array.
  8217. * </p>
  8218. * @param sort_flags int[optional] <p>
  8219. * You may modify the behavior of the sort using the optional
  8220. * parameter sort_flags, for details see
  8221. * sort.
  8222. * </p>
  8223. * @return bool Returns true on success or false on failure.
  8224. */
  8225. function rsort (array &$array, $sort_flags = null) {}
  8226. /**
  8227. * Sort an array by values using a user-defined comparison function
  8228. * @link http://www.php.net/manual/en/function.usort.php
  8229. * @param array array <p>
  8230. * The input array.
  8231. * </p>
  8232. * @param cmp_function callback <p>
  8233. * The comparison function must return an integer less than, equal to, or
  8234. * greater than zero if the first argument is considered to be
  8235. * respectively less than, equal to, or greater than the second.
  8236. * </p>
  8237. * @return bool Returns true on success or false on failure.
  8238. */
  8239. function usort (array &$array, $cmp_function) {}
  8240. /**
  8241. * Sort an array with a user-defined comparison function and maintain index association
  8242. * @link http://www.php.net/manual/en/function.uasort.php
  8243. * @param array array <p>
  8244. * The input array.
  8245. * </p>
  8246. * @param cmp_function callback <p>
  8247. * See usort and uksort for
  8248. * examples of user-defined comparison functions.
  8249. * </p>
  8250. * @return bool Returns true on success or false on failure.
  8251. */
  8252. function uasort (array &$array, $cmp_function) {}
  8253. /**
  8254. * Sort an array by keys using a user-defined comparison function
  8255. * @link http://www.php.net/manual/en/function.uksort.php
  8256. * @param array array <p>
  8257. * The input array.
  8258. * </p>
  8259. * @param cmp_function callback <p>
  8260. * The callback comparison function.
  8261. * </p>
  8262. * <p>
  8263. * Function cmp_function should accept two
  8264. * parameters which will be filled by pairs of array keys.
  8265. * The comparison function must return an integer less than, equal
  8266. * to, or greater than zero if the first argument is considered to
  8267. * be respectively less than, equal to, or greater than the
  8268. * second.
  8269. * </p>
  8270. * @return bool Returns true on success or false on failure.
  8271. */
  8272. function uksort (array &$array, $cmp_function) {}
  8273. /**
  8274. * Shuffle an array
  8275. * @link http://www.php.net/manual/en/function.shuffle.php
  8276. * @param array array <p>
  8277. * The array.
  8278. * </p>
  8279. * @return bool Returns true on success or false on failure.
  8280. */
  8281. function shuffle (array &$array) {}
  8282. /**
  8283. * Apply a user function to every member of an array
  8284. * @link http://www.php.net/manual/en/function.array-walk.php
  8285. * @param array array <p>
  8286. * The input array.
  8287. * </p>
  8288. * @param funcname callback <p>
  8289. * Typically, funcname takes on two parameters.
  8290. * The array parameter's value being the first, and
  8291. * the key/index second.
  8292. * </p>
  8293. * <p>
  8294. * If funcname needs to be working with the
  8295. * actual values of the array, specify the first parameter of
  8296. * funcname as a
  8297. * reference. Then,
  8298. * any changes made to those elements will be made in the
  8299. * original array itself.
  8300. * </p>
  8301. * <p>
  8302. * Users may not change the array itself from the
  8303. * callback function. e.g. Add/delete elements, unset elements, etc. If
  8304. * the array that array_walk is applied to is
  8305. * changed, the behavior of this function is undefined, and unpredictable.
  8306. * </p>
  8307. * @param userdata mixed[optional] <p>
  8308. * If the optional userdata parameter is supplied,
  8309. * it will be passed as the third parameter to the callback
  8310. * funcname.
  8311. * </p>
  8312. * @return bool Returns true on success or false on failure.
  8313. */
  8314. function array_walk (array &$array, $funcname, $userdata = null) {}
  8315. /**
  8316. * Apply a user function recursively to every member of an array
  8317. * @link http://www.php.net/manual/en/function.array-walk-recursive.php
  8318. * @param input array <p>
  8319. * The input array.
  8320. * </p>
  8321. * @param funcname callback <p>
  8322. * Typically, funcname takes on two parameters.
  8323. * The input parameter's value being the first, and
  8324. * the key/index second.
  8325. * </p>
  8326. * <p>
  8327. * If funcname needs to be working with the
  8328. * actual values of the array, specify the first parameter of
  8329. * funcname as a
  8330. * reference. Then,
  8331. * any changes made to those elements will be made in the
  8332. * original array itself.
  8333. * </p>
  8334. * @param userdata mixed[optional] <p>
  8335. * If the optional userdata parameter is supplied,
  8336. * it will be passed as the third parameter to the callback
  8337. * funcname.
  8338. * </p>
  8339. * @return bool Returns true on success or false on failure.
  8340. */
  8341. function array_walk_recursive (array &$input, $funcname, $userdata = null) {}
  8342. /**
  8343. * Count all elements in an array, or properties in an object
  8344. * @link http://www.php.net/manual/en/function.count.php
  8345. * @param var mixed <p>
  8346. * The array.
  8347. * </p>
  8348. * @param mode int[optional] <p>
  8349. * If the optional mode parameter is set to
  8350. * COUNT_RECURSIVE (or 1), count
  8351. * will recursively count the array. This is particularly useful for
  8352. * counting all the elements of a multidimensional array.
  8353. * count does not detect infinite recursion.
  8354. * </p>
  8355. * @return int the number of elements in var, which is
  8356. * typically an array, since anything else will have one
  8357. * element.
  8358. * </p>
  8359. * <p>
  8360. * If var is not an array or an object with
  8361. * implemented Countable interface,
  8362. * 1 will be returned.
  8363. * There is one exception, if var is &null;,
  8364. * 0 will be returned.
  8365. * </p>
  8366. * <p>
  8367. * count may return 0 for a variable that isn't set,
  8368. * but it may also return 0 for a variable that has been initialized with an
  8369. * empty array. Use isset to test if a variable is set.
  8370. */
  8371. function count ($var, $mode = null) {}
  8372. /**
  8373. * Set the internal pointer of an array to its last element
  8374. * @link http://www.php.net/manual/en/function.end.php
  8375. * @param array array <p>
  8376. * The array. This array is passed by reference because it is modified by
  8377. * the function. This means you must pass it a real variable and not
  8378. * a function returning an array because only actual variables may be
  8379. * passed by reference.
  8380. * </p>
  8381. * @return mixed the value of the last element or false for empty array.
  8382. */
  8383. function end (array &$array) {}
  8384. /**
  8385. * Rewind the internal array pointer
  8386. * @link http://www.php.net/manual/en/function.prev.php
  8387. * @param array array <p>
  8388. * The input array.
  8389. * </p>
  8390. * @return mixed the array value in the previous place that's pointed to by
  8391. * the internal array pointer, or false if there are no more
  8392. * elements.
  8393. */
  8394. function prev (array &$array) {}
  8395. /**
  8396. * Advance the internal array pointer of an array
  8397. * @link http://www.php.net/manual/en/function.next.php
  8398. * @param array array <p>
  8399. * The array being affected.
  8400. * </p>
  8401. * @return mixed the array value in the next place that's pointed to by the
  8402. * internal array pointer, or false if there are no more elements.
  8403. */
  8404. function next (array &$array) {}
  8405. /**
  8406. * Set the internal pointer of an array to its first element
  8407. * @link http://www.php.net/manual/en/function.reset.php
  8408. * @param array array <p>
  8409. * The input array.
  8410. * </p>
  8411. * @return mixed the value of the first array element, or false if the array is
  8412. * empty.
  8413. */
  8414. function reset (array &$array) {}
  8415. /**
  8416. * Return the current element in an array
  8417. * @link http://www.php.net/manual/en/function.current.php
  8418. * @param array array <p>
  8419. * The array.
  8420. * </p>
  8421. * @return mixed The current function simply returns the
  8422. * value of the array element that's currently being pointed to by the
  8423. * internal pointer. It does not move the pointer in any way. If the
  8424. * internal pointer points beyond the end of the elements list or the array is
  8425. * empty, current returns false.
  8426. */
  8427. function current (array &$array) {}
  8428. /**
  8429. * Fetch a key from an array
  8430. * @link http://www.php.net/manual/en/function.key.php
  8431. * @param array array <p>
  8432. * The array.
  8433. * </p>
  8434. * @return mixed The key function simply returns the
  8435. * key of the array element that's currently being pointed to by the
  8436. * internal pointer. It does not move the pointer in any way. If the
  8437. * internal pointer points beyond the end of the elements list or the array is
  8438. * empty, key returns &null;.
  8439. */
  8440. function key (array &$array) {}
  8441. /**
  8442. * Find lowest value
  8443. * @link http://www.php.net/manual/en/function.min.php
  8444. * @param values array <p>
  8445. * An array containing the values.
  8446. * </p>
  8447. * @return mixed min returns the numerically lowest of the
  8448. * parameter values.
  8449. */
  8450. function min (array $values) {}
  8451. /**
  8452. * Find highest value
  8453. * @link http://www.php.net/manual/en/function.max.php
  8454. * @param values array <p>
  8455. * An array containing the values.
  8456. * </p>
  8457. * @return mixed max returns the numerically highest of the
  8458. * parameter values. If multiple values can be considered of the same size,
  8459. * the one that is listed first will be returned.
  8460. * </p>
  8461. * <p>
  8462. * When max is given multiple arrays, the
  8463. * longest array is returned. If all the arrays have the same length,
  8464. * max will use lexicographic ordering to find the return
  8465. * value.
  8466. * </p>
  8467. * <p>
  8468. * When given a string it will be cast as an integer
  8469. * when comparing.
  8470. */
  8471. function max (array $values) {}
  8472. /**
  8473. * Checks if a value exists in an array
  8474. * @link http://www.php.net/manual/en/function.in-array.php
  8475. * @param needle mixed <p>
  8476. * The searched value.
  8477. * </p>
  8478. * <p>
  8479. * If needle is a string, the comparison is done
  8480. * in a case-sensitive manner.
  8481. * </p>
  8482. * @param haystack array <p>
  8483. * The array.
  8484. * </p>
  8485. * @param strict bool[optional] <p>
  8486. * If the third parameter strict is set to true
  8487. * then the in_array function will also check the
  8488. * types of the
  8489. * needle in the haystack.
  8490. * </p>
  8491. * @return bool true if needle is found in the array,
  8492. * false otherwise.
  8493. */
  8494. function in_array ($needle, array $haystack, $strict = null) {}
  8495. /**
  8496. * Searches the array for a given value and returns the corresponding key if successful
  8497. * @link http://www.php.net/manual/en/function.array-search.php
  8498. * @param needle mixed <p>
  8499. * The searched value.
  8500. * </p>
  8501. * <p>
  8502. * If needle is a string, the comparison is done
  8503. * in a case-sensitive manner.
  8504. * </p>
  8505. * @param haystack array <p>
  8506. * The array.
  8507. * </p>
  8508. * @param strict bool[optional] <p>
  8509. * If the third parameter strict is set to true
  8510. * then the array_search function will search for
  8511. * identical elements in the
  8512. * haystack. This means it will also check the
  8513. * types of the
  8514. * needle in the haystack,
  8515. * and objects must be the same instance.
  8516. * </p>
  8517. * @return mixed the key for needle if it is found in the
  8518. * array, false otherwise.
  8519. * </p>
  8520. * <p>
  8521. * If needle is found in haystack
  8522. * more than once, the first matching key is returned. To return the keys for
  8523. * all matching values, use array_keys with the optional
  8524. * search_value parameter instead.
  8525. */
  8526. function array_search ($needle, array $haystack, $strict = null) {}
  8527. /**
  8528. * Import variables into the current symbol table from an array
  8529. * @link http://www.php.net/manual/en/function.extract.php
  8530. * @param var_array array <p>
  8531. * Note that prefix is only required if
  8532. * extract_type is EXTR_PREFIX_SAME,
  8533. * EXTR_PREFIX_ALL, EXTR_PREFIX_INVALID
  8534. * or EXTR_PREFIX_IF_EXISTS. If
  8535. * the prefixed result is not a valid variable name, it is not
  8536. * imported into the symbol table. Prefixes are automatically separated from
  8537. * the array key by an underscore character.
  8538. * </p>
  8539. * @param extract_type int[optional] <p>
  8540. * The way invalid/numeric keys and collisions are treated is determined
  8541. * by the extract_type. It can be one of the
  8542. * following values:
  8543. * EXTR_OVERWRITE
  8544. * If there is a collision, overwrite the existing variable.
  8545. * @param prefix string[optional] Only overwrite the variable if it already exists in the
  8546. * current symbol table, otherwise do nothing. This is useful
  8547. * for defining a list of valid variables and then extracting
  8548. * only those variables you have defined out of
  8549. * $_REQUEST, for example.
  8550. * @return int the number of variables successfully imported into the symbol
  8551. * table.
  8552. */
  8553. function extract (array $var_array, $extract_type = null, $prefix = null) {}
  8554. /**
  8555. * Create array containing variables and their values
  8556. * @link http://www.php.net/manual/en/function.compact.php
  8557. * @param varname mixed <p>
  8558. * compact takes a variable number of parameters.
  8559. * Each parameter can be either a string containing the name of the
  8560. * variable, or an array of variable names. The array can contain other
  8561. * arrays of variable names inside it; compact
  8562. * handles it recursively.
  8563. * </p>
  8564. * @param _ mixed[optional]
  8565. * @return array the output array with all the variables added to it.
  8566. */
  8567. function compact ($varname, $_ = null) {}
  8568. /**
  8569. * Fill an array with values
  8570. * @link http://www.php.net/manual/en/function.array-fill.php
  8571. * @param start_index int <p>
  8572. * The first index of the returned array.
  8573. * Supports non-negative indexes only.
  8574. * </p>
  8575. * @param num int <p>
  8576. * Number of elements to insert
  8577. * </p>
  8578. * @param value mixed <p>
  8579. * Value to use for filling
  8580. * </p>
  8581. * @return array the filled array
  8582. */
  8583. function array_fill ($start_index, $num, $value) {}
  8584. /**
  8585. * Fill an array with values, specifying keys
  8586. * @link http://www.php.net/manual/en/function.array-fill-keys.php
  8587. * @param keys array <p>
  8588. * Array of values that will be used as keys. Illegal values
  8589. * for key will be converted to string.
  8590. * </p>
  8591. * @param value mixed <p>
  8592. * Value to use for filling
  8593. * </p>
  8594. * @return array the filled array
  8595. */
  8596. function array_fill_keys (array $keys, $value) {}
  8597. /**
  8598. * Create an array containing a range of elements
  8599. * @link http://www.php.net/manual/en/function.range.php
  8600. * @param low mixed <p>
  8601. * Low value.
  8602. * </p>
  8603. * @param high mixed <p>
  8604. * High value.
  8605. * </p>
  8606. * @param step number[optional] <p>
  8607. * If a step value is given, it will be used as the
  8608. * increment between elements in the sequence. step
  8609. * should be given as a positive number. If not specified,
  8610. * step will default to 1.
  8611. * </p>
  8612. * @return array an array of elements from low to
  8613. * high, inclusive. If low > high, the sequence will
  8614. * be from high to low.
  8615. */
  8616. function range ($low, $high, $step = null) {}
  8617. /**
  8618. * Sort multiple or multi-dimensional arrays
  8619. * @link http://www.php.net/manual/en/function.array-multisort.php
  8620. * @param arr array <p>
  8621. * An array being sorted.
  8622. * </p>
  8623. * @param arg mixed[optional] <p>
  8624. * Optionally another array, or sort options for the
  8625. * previous array argument:
  8626. * SORT_ASC,
  8627. * SORT_DESC,
  8628. * SORT_REGULAR,
  8629. * SORT_NUMERIC,
  8630. * SORT_STRING.
  8631. * </p>
  8632. * @param arg mixed[optional]
  8633. * @param _ mixed[optional]
  8634. * @return bool Returns true on success or false on failure.
  8635. */
  8636. function array_multisort (array &$arr, $arg = null, $arg = null, $_ = null) {}
  8637. /**
  8638. * Push one or more elements onto the end of array
  8639. * @link http://www.php.net/manual/en/function.array-push.php
  8640. * @param array array <p>
  8641. * The input array.
  8642. * </p>
  8643. * @param var mixed <p>
  8644. * The pushed value.
  8645. * </p>
  8646. * @param _ mixed[optional]
  8647. * @return int the new number of elements in the array.
  8648. */
  8649. function array_push (array &$array, $var, $_ = null) {}
  8650. /**
  8651. * Pop the element off the end of array
  8652. * @link http://www.php.net/manual/en/function.array-pop.php
  8653. * @param array array <p>
  8654. * The array to get the value from.
  8655. * </p>
  8656. * @return mixed the last value of array.
  8657. * If array is empty (or is not an array),
  8658. * &null; will be returned.
  8659. */
  8660. function array_pop (array &$array) {}
  8661. /**
  8662. * Shift an element off the beginning of array
  8663. * @link http://www.php.net/manual/en/function.array-shift.php
  8664. * @param array array <p>
  8665. * The input array.
  8666. * </p>
  8667. * @return mixed the shifted value, or &null; if array is
  8668. * empty or is not an array.
  8669. */
  8670. function array_shift (array &$array) {}
  8671. /**
  8672. * Prepend one or more elements to the beginning of an array
  8673. * @link http://www.php.net/manual/en/function.array-unshift.php
  8674. * @param array array <p>
  8675. * The input array.
  8676. * </p>
  8677. * @param var mixed <p>
  8678. * The prepended variable.
  8679. * </p>
  8680. * @param _ mixed[optional]
  8681. * @return int the new number of elements in the array.
  8682. */
  8683. function array_unshift (array &$array, $var, $_ = null) {}
  8684. /**
  8685. * Remove a portion of the array and replace it with something else
  8686. * @link http://www.php.net/manual/en/function.array-splice.php
  8687. * @param input array <p>
  8688. * The input array.
  8689. * </p>
  8690. * @param offset int <p>
  8691. * If offset is positive then the start of removed
  8692. * portion is at that offset from the beginning of the
  8693. * input array. If offset
  8694. * is negative then it starts that far from the end of the
  8695. * input array.
  8696. * </p>
  8697. * @param length int[optional] <p>
  8698. * If length is omitted, removes everything
  8699. * from offset to the end of the array. If
  8700. * length is specified and is positive, then
  8701. * that many elements will be removed. If
  8702. * length is specified and is negative then
  8703. * the end of the removed portion will be that many elements from
  8704. * the end of the array. Tip: to remove everything from
  8705. * offset to the end of the array when
  8706. * replacement is also specified, use
  8707. * count($input) for
  8708. * length.
  8709. * </p>
  8710. * @param replacement mixed[optional] <p>
  8711. * If replacement array is specified, then the
  8712. * removed elements are replaced with elements from this array.
  8713. * </p>
  8714. * <p>
  8715. * If offset and length
  8716. * are such that nothing is removed, then the elements from the
  8717. * replacement array are inserted in the place
  8718. * specified by the offset. Note that keys in
  8719. * replacement array are not preserved.
  8720. * </p>
  8721. * <p>
  8722. * If replacement is just one element it is
  8723. * not necessary to put array()
  8724. * around it, unless the element is an array itself, an object or &null;.
  8725. * </p>
  8726. * @return array the array consisting of the extracted elements.
  8727. */
  8728. function array_splice (array &$input, $offset, $length = null, $replacement = null) {}
  8729. /**
  8730. * Extract a slice of the array
  8731. * @link http://www.php.net/manual/en/function.array-slice.php
  8732. * @param array array <p>
  8733. * The input array.
  8734. * </p>
  8735. * @param offset int <p>
  8736. * If offset is non-negative, the sequence will
  8737. * start at that offset in the array. If
  8738. * offset is negative, the sequence will
  8739. * start that far from the end of the array.
  8740. * </p>
  8741. * @param length int[optional] <p>
  8742. * If length is given and is positive, then
  8743. * the sequence will have that many elements in it. If
  8744. * length is given and is negative then the
  8745. * sequence will stop that many elements from the end of the
  8746. * array. If it is omitted, then the sequence will have everything
  8747. * from offset up until the end of the
  8748. * array.
  8749. * </p>
  8750. * @param preserve_keys bool[optional] <p>
  8751. * Note that array_slice will reorder and reset the
  8752. * array indices by default. You can change this behaviour by setting
  8753. * preserve_keys to true.
  8754. * </p>
  8755. * @return array the slice.
  8756. */
  8757. function array_slice (array $array, $offset, $length = null, $preserve_keys = null) {}
  8758. /**
  8759. * Merge one or more arrays
  8760. * @link http://www.php.net/manual/en/function.array-merge.php
  8761. * @param array1 array <p>
  8762. * Initial array to merge.
  8763. * </p>
  8764. * @param array2 array[optional]
  8765. * @param _ array[optional]
  8766. * @return array the resulting array.
  8767. */
  8768. function array_merge (array $array1, array $array2 = null, array $_ = null) {}
  8769. /**
  8770. * Merge two or more arrays recursively
  8771. * @link http://www.php.net/manual/en/function.array-merge-recursive.php
  8772. * @param array1 array <p>
  8773. * Initial array to merge.
  8774. * </p>
  8775. * @param _ array[optional]
  8776. * @return array An array of values resulted from merging the arguments together.
  8777. */
  8778. function array_merge_recursive (array $array1, array $_ = null) {}
  8779. /**
  8780. * Replaces elements from passed arrays into the first array
  8781. * @link http://www.php.net/manual/en/function.array-replace.php
  8782. * @param array array <p>
  8783. * The array in which elements are replaced.
  8784. * </p>
  8785. * @param array1 array <p>
  8786. * The array from which elements will be extracted.
  8787. * </p>
  8788. * @param array2 array[optional]
  8789. * @param _ array[optional]
  8790. * @return array an array, or &null; if an error occurs.
  8791. */
  8792. function array_replace (array &$array, array &$array1, array &$array2 = null, array &$_ = null) {}
  8793. /**
  8794. * Replaces elements from passed arrays into the first array recursively
  8795. * @link http://www.php.net/manual/en/function.array-replace-recursive.php
  8796. * @param array array <p>
  8797. * The array in which elements are replaced.
  8798. * </p>
  8799. * @param array1 array <p>
  8800. * The array from which elements will be extracted.
  8801. * </p>
  8802. * @param array2 array[optional]
  8803. * @param _ array[optional]
  8804. * @return array an array, or &null; if an error occurs.
  8805. */
  8806. function array_replace_recursive (array &$array, array &$array1, array &$array2 = null, array &$_ = null) {}
  8807. /**
  8808. * Return all the keys of an array
  8809. * @link http://www.php.net/manual/en/function.array-keys.php
  8810. * @param input array <p>
  8811. * An array containing keys to return.
  8812. * </p>
  8813. * @param search_value mixed[optional] <p>
  8814. * If specified, then only keys containing these values are returned.
  8815. * </p>
  8816. * @param strict bool[optional] <p>
  8817. * Determines if strict comparison (===) should be used during the search.
  8818. * </p>
  8819. * @return array an array of all the keys in input.
  8820. */
  8821. function array_keys (array $input, $search_value = null, $strict = null) {}
  8822. /**
  8823. * Return all the values of an array
  8824. * @link http://www.php.net/manual/en/function.array-values.php
  8825. * @param input array <p>
  8826. * The array.
  8827. * </p>
  8828. * @return array an indexed array of values.
  8829. */
  8830. function array_values (array $input) {}
  8831. /**
  8832. * Counts all the values of an array
  8833. * @link http://www.php.net/manual/en/function.array-count-values.php
  8834. * @param input array <p>
  8835. * The array of values to count
  8836. * </p>
  8837. * @return array an associative array of values from input as
  8838. * keys and their count as value.
  8839. */
  8840. function array_count_values (array $input) {}
  8841. /**
  8842. * Return an array with elements in reverse order
  8843. * @link http://www.php.net/manual/en/function.array-reverse.php
  8844. * @param array array <p>
  8845. * The input array.
  8846. * </p>
  8847. * @param preserve_keys bool[optional] <p>
  8848. * If set to true keys are preserved.
  8849. * </p>
  8850. * @return array the reversed array.
  8851. */
  8852. function array_reverse (array $array, $preserve_keys = null) {}
  8853. /**
  8854. * Iteratively reduce the array to a single value using a callback function
  8855. * @link http://www.php.net/manual/en/function.array-reduce.php
  8856. * @param input array <p>
  8857. * The input array.
  8858. * </p>
  8859. * @param function callback <p>
  8860. * The callback function.
  8861. * </p>
  8862. * @param initial mixed[optional] <p>
  8863. * If the optional initial is available, it will
  8864. * be used at the beginning of the process, or as a final result in case
  8865. * the array is empty.
  8866. * </p>
  8867. * @return mixed the resulting value.
  8868. * </p>
  8869. * <p>
  8870. * If the array is empty and initial is not passed,
  8871. * array_reduce returns &null;.
  8872. */
  8873. function array_reduce (array $input, $function, $initial = null) {}
  8874. /**
  8875. * Pad array to the specified length with a value
  8876. * @link http://www.php.net/manual/en/function.array-pad.php
  8877. * @param input array <p>
  8878. * Initial array of values to pad.
  8879. * </p>
  8880. * @param pad_size int <p>
  8881. * New size of the array.
  8882. * </p>
  8883. * @param pad_value mixed <p>
  8884. * Value to pad if input is less than
  8885. * pad_size.
  8886. * </p>
  8887. * @return array a copy of the input padded to size specified
  8888. * by pad_size with value
  8889. * pad_value. If pad_size is
  8890. * positive then the array is padded on the right, if it's negative then
  8891. * on the left. If the absolute value of pad_size is less than or equal to
  8892. * the length of the input then no padding takes place.
  8893. */
  8894. function array_pad (array $input, $pad_size, $pad_value) {}
  8895. /**
  8896. * Exchanges all keys with their associated values in an array
  8897. * @link http://www.php.net/manual/en/function.array-flip.php
  8898. * @param trans array <p>
  8899. * An array of key/value pairs to be flipped.
  8900. * </p>
  8901. * @return array the flipped array on success and &null; on failure.
  8902. */
  8903. function array_flip (array $trans) {}
  8904. /**
  8905. * Changes all keys in an array
  8906. * @link http://www.php.net/manual/en/function.array-change-key-case.php
  8907. * @param input array <p>
  8908. * The array to work on
  8909. * </p>
  8910. * @param case int[optional] <p>
  8911. * Either CASE_UPPER or
  8912. * CASE_LOWER (default)
  8913. * </p>
  8914. * @return array an array with its keys lower or uppercased, or false if
  8915. * input is not an array.
  8916. */
  8917. function array_change_key_case (array $input, $case = null) {}
  8918. /**
  8919. * Pick one or more random entries out of an array
  8920. * @link http://www.php.net/manual/en/function.array-rand.php
  8921. * @param input array <p>
  8922. * The input array.
  8923. * </p>
  8924. * @param num_req int[optional] <p>
  8925. * Specifies how many entries you want to pick. Trying to pick more
  8926. * elements than there are in the array will result in an
  8927. * E_WARNING level error.
  8928. * </p>
  8929. * @return mixed If you are picking only one entry, array_rand
  8930. * returns the key for a random entry. Otherwise, it returns an array
  8931. * of keys for the random entries. This is done so that you can pick
  8932. * random keys as well as values out of the array.
  8933. */
  8934. function array_rand (array $input, $num_req = null) {}
  8935. /**
  8936. * Removes duplicate values from an array
  8937. * @link http://www.php.net/manual/en/function.array-unique.php
  8938. * @param array array <p>
  8939. * The input array.
  8940. * </p>
  8941. * @param sort_flags int[optional] <p>
  8942. * The optional second parameter sort_flags
  8943. * may be used to modify the sorting behavior using these values:
  8944. * </p>
  8945. * <p>
  8946. * Sorting type flags:
  8947. * SORT_REGULAR - compare items normally
  8948. * (don't change types)
  8949. * @return array the filtered array.
  8950. */
  8951. function array_unique (array $array, $sort_flags = null) {}
  8952. /**
  8953. * Computes the intersection of arrays
  8954. * @link http://www.php.net/manual/en/function.array-intersect.php
  8955. * @param array1 array <p>
  8956. * The array with master values to check.
  8957. * </p>
  8958. * @param array2 array <p>
  8959. * An array to compare values against.
  8960. * </p>
  8961. * @param _ array[optional]
  8962. * @return array an array containing all of the values in
  8963. * array1 whose values exist in all of the parameters.
  8964. */
  8965. function array_intersect (array $array1, array $array2, array $_ = null) {}
  8966. /**
  8967. * Computes the intersection of arrays using keys for comparison
  8968. * @link http://www.php.net/manual/en/function.array-intersect-key.php
  8969. * @param array1 array <p>
  8970. * The array with master keys to check.
  8971. * </p>
  8972. * @param array2 array <p>
  8973. * An array to compare keys against.
  8974. * </p>
  8975. * @param _ array[optional]
  8976. * @return array an associative array containing all the entries of
  8977. * array1 which have keys that are present in all
  8978. * arguments.
  8979. */
  8980. function array_intersect_key (array $array1, array $array2, array $_ = null) {}
  8981. /**
  8982. * Computes the intersection of arrays using a callback function on the keys for comparison
  8983. * @link http://www.php.net/manual/en/function.array-intersect-ukey.php
  8984. * @param array1 array <p>
  8985. * Initial array for comparison of the arrays.
  8986. * </p>
  8987. * @param array2 array <p>
  8988. * First array to compare keys against.
  8989. * </p>
  8990. * @param _ array[optional]
  8991. * @param key_compare_func callback <p>
  8992. * User supplied callback function to do the comparison.
  8993. * </p>
  8994. * @return array the values of array1 whose keys exist
  8995. * in all the arguments.
  8996. */
  8997. function array_intersect_ukey (array $array1, array $array2, array $_ = null, $key_compare_func) {}
  8998. /**
  8999. * Computes the intersection of arrays, compares data by a callback function
  9000. * @link http://www.php.net/manual/en/function.array-uintersect.php
  9001. * @param array1 array <p>
  9002. * The first array.
  9003. * </p>
  9004. * @param array2 array <p>
  9005. * The second array.
  9006. * </p>
  9007. * @param _ array[optional]
  9008. * @param data_compare_func callback <p>
  9009. * The callback comparison function.
  9010. * </p>
  9011. * <p>
  9012. * The user supplied callback function is used for comparison.
  9013. * It must return an integer less than, equal to, or greater than zero if
  9014. * the first argument is considered to be respectively less than, equal
  9015. * to, or greater than the second.
  9016. * </p>
  9017. * @return array an array containing all the values of array1
  9018. * that are present in all the arguments.
  9019. */
  9020. function array_uintersect (array $array1, array $array2, array $_ = null, $data_compare_func) {}
  9021. /**
  9022. * Computes the intersection of arrays with additional index check
  9023. * @link http://www.php.net/manual/en/function.array-intersect-assoc.php
  9024. * @param array1 array <p>
  9025. * The array with master values to check.
  9026. * </p>
  9027. * @param array2 array <p>
  9028. * An array to compare values against.
  9029. * </p>
  9030. * @param _ array[optional]
  9031. * @return array an associative array containing all the values in
  9032. * array1 that are present in all of the arguments.
  9033. */
  9034. function array_intersect_assoc (array $array1, array $array2, array $_ = null) {}
  9035. /**
  9036. * Computes the intersection of arrays with additional index check, compares data by a callback function
  9037. * @link http://www.php.net/manual/en/function.array-uintersect-assoc.php
  9038. * @param array1 array <p>
  9039. * The first array.
  9040. * </p>
  9041. * @param array2 array <p>
  9042. * The second array.
  9043. * </p>
  9044. * @param _ array[optional]
  9045. * @param data_compare_func callback <p>
  9046. * For comparison is used the user supplied callback function.
  9047. * It must return an integer less than, equal
  9048. * to, or greater than zero if the first argument is considered to
  9049. * be respectively less than, equal to, or greater than the
  9050. * second.
  9051. * </p>
  9052. * @return array an array containing all the values of
  9053. * array1 that are present in all the arguments.
  9054. */
  9055. function array_uintersect_assoc (array $array1, array $array2, array $_ = null, $data_compare_func) {}
  9056. /**
  9057. * Computes the intersection of arrays with additional index check, compares indexes by a callback function
  9058. * @link http://www.php.net/manual/en/function.array-intersect-uassoc.php
  9059. * @param array1 array <p>
  9060. * Initial array for comparison of the arrays.
  9061. * </p>
  9062. * @param array2 array <p>
  9063. * First array to compare keys against.
  9064. * </p>
  9065. * @param _ array[optional]
  9066. * @param key_compare_func callback <p>
  9067. * User supplied callback function to do the comparison.
  9068. * </p>
  9069. * @return array the values of array1 whose values exist
  9070. * in all of the arguments.
  9071. */
  9072. function array_intersect_uassoc (array $array1, array $array2, array $_ = null, $key_compare_func) {}
  9073. /**
  9074. * Computes the intersection of arrays with additional index check, compares data and indexes by a callback functions
  9075. * @link http://www.php.net/manual/en/function.array-uintersect-uassoc.php
  9076. * @param array1 array <p>
  9077. * The first array.
  9078. * </p>
  9079. * @param array2 array <p>
  9080. * The second array.
  9081. * </p>
  9082. * @param _ array[optional]
  9083. * @param data_compare_func callback <p>
  9084. * For comparison is used the user supplied callback function.
  9085. * It must return an integer less than, equal
  9086. * to, or greater than zero if the first argument is considered to
  9087. * be respectively less than, equal to, or greater than the
  9088. * second.
  9089. * </p>
  9090. * @param key_compare_func callback <p>
  9091. * Key comparison callback function.
  9092. * </p>
  9093. * @return array an array containing all the values of
  9094. * array1 that are present in all the arguments.
  9095. */
  9096. function array_uintersect_uassoc (array $array1, array $array2, array $_ = null, $data_compare_func, $key_compare_func) {}
  9097. /**
  9098. * Computes the difference of arrays
  9099. * @link http://www.php.net/manual/en/function.array-diff.php
  9100. * @param array1 array <p>
  9101. * The array to compare from
  9102. * </p>
  9103. * @param array2 array <p>
  9104. * An array to compare against
  9105. * </p>
  9106. * @param _ array[optional]
  9107. * @return array an array containing all the entries from
  9108. * array1 that are not present in any of the other arrays.
  9109. */
  9110. function array_diff (array $array1, array $array2, array $_ = null) {}
  9111. /**
  9112. * Computes the difference of arrays using keys for comparison
  9113. * @link http://www.php.net/manual/en/function.array-diff-key.php
  9114. * @param array1 array <p>
  9115. * The array to compare from
  9116. * </p>
  9117. * @param array2 array <p>
  9118. * An array to compare against
  9119. * </p>
  9120. * @param _ array[optional]
  9121. * @return array an array containing all the entries from
  9122. * array1 whose keys are not present in any of the
  9123. * other arrays.
  9124. */
  9125. function array_diff_key (array $array1, array $array2, array $_ = null) {}
  9126. /**
  9127. * Computes the difference of arrays using a callback function on the keys for comparison
  9128. * @link http://www.php.net/manual/en/function.array-diff-ukey.php
  9129. * @param array1 array <p>
  9130. * The array to compare from
  9131. * </p>
  9132. * @param array2 array <p>
  9133. * An array to compare against
  9134. * </p>
  9135. * @param _ array[optional]
  9136. * @param key_compare_func callback <p>
  9137. * callback function to use.
  9138. * The callback function must return an integer less than, equal
  9139. * to, or greater than zero if the first argument is considered to
  9140. * be respectively less than, equal to, or greater than the second.
  9141. * </p>
  9142. * @return array an array containing all the entries from
  9143. * array1 that are not present in any of the other arrays.
  9144. */
  9145. function array_diff_ukey (array $array1, array $array2, array $_ = null, $key_compare_func) {}
  9146. /**
  9147. * Computes the difference of arrays by using a callback function for data comparison
  9148. * @link http://www.php.net/manual/en/function.array-udiff.php
  9149. * @param array1 array <p>
  9150. * The first array.
  9151. * </p>
  9152. * @param array2 array <p>
  9153. * The second array.
  9154. * </p>
  9155. * @param _ array[optional]
  9156. * @param data_compare_func callback <p>
  9157. * The callback comparison function.
  9158. * </p>
  9159. * <p>
  9160. * The user supplied callback function is used for comparison.
  9161. * It must return an integer less than, equal to, or greater than zero if
  9162. * the first argument is considered to be respectively less than, equal
  9163. * to, or greater than the second.
  9164. * </p>
  9165. * @return array an array containing all the values of array1
  9166. * that are not present in any of the other arguments.
  9167. */
  9168. function array_udiff (array $array1, array $array2, array $_ = null, $data_compare_func) {}
  9169. /**
  9170. * Computes the difference of arrays with additional index check
  9171. * @link http://www.php.net/manual/en/function.array-diff-assoc.php
  9172. * @param array1 array <p>
  9173. * The array to compare from
  9174. * </p>
  9175. * @param array2 array <p>
  9176. * An array to compare against
  9177. * </p>
  9178. * @param _ array[optional]
  9179. * @return array an array containing all the values from
  9180. * array1 that are not present in any of the other arrays.
  9181. */
  9182. function array_diff_assoc (array $array1, array $array2, array $_ = null) {}
  9183. /**
  9184. * Computes the difference of arrays with additional index check, compares data by a callback function
  9185. * @link http://www.php.net/manual/en/function.array-udiff-assoc.php
  9186. * @param array1 array <p>
  9187. * The first array.
  9188. * </p>
  9189. * @param array2 array <p>
  9190. * The second array.
  9191. * </p>
  9192. * @param _ array[optional]
  9193. * @param data_compare_func callback <p>
  9194. * The callback comparison function.
  9195. * </p>
  9196. * <p>
  9197. * The user supplied callback function is used for comparison.
  9198. * It must return an integer less than, equal to, or greater than zero if
  9199. * the first argument is considered to be respectively less than, equal
  9200. * to, or greater than the second.
  9201. * </p>
  9202. * @return array array_udiff_assoc returns an array
  9203. * containing all the values from array1
  9204. * that are not present in any of the other arguments.
  9205. * Note that the keys are used in the comparison unlike
  9206. * array_diff and array_udiff.
  9207. * The comparison of arrays' data is performed by using an user-supplied
  9208. * callback. In this aspect the behaviour is opposite to the behaviour of
  9209. * array_diff_assoc which uses internal function for
  9210. * comparison.
  9211. */
  9212. function array_udiff_assoc (array $array1, array $array2, array $_ = null, $data_compare_func) {}
  9213. /**
  9214. * Computes the difference of arrays with additional index check which is performed by a user supplied callback function
  9215. * @link http://www.php.net/manual/en/function.array-diff-uassoc.php
  9216. * @param array1 array <p>
  9217. * The array to compare from
  9218. * </p>
  9219. * @param array2 array <p>
  9220. * An array to compare against
  9221. * </p>
  9222. * @param _ array[optional]
  9223. * @param key_compare_func callback <p>
  9224. * callback function to use.
  9225. * The callback function must return an integer less than, equal
  9226. * to, or greater than zero if the first argument is considered to
  9227. * be respectively less than, equal to, or greater than the second.
  9228. * </p>
  9229. * @return array an array containing all the entries from
  9230. * array1 that are not present in any of the other arrays.
  9231. */
  9232. function array_diff_uassoc (array $array1, array $array2, array $_ = null, $key_compare_func) {}
  9233. /**
  9234. * Computes the difference of arrays with additional index check, compares data and indexes by a callback function
  9235. * @link http://www.php.net/manual/en/function.array-udiff-uassoc.php
  9236. * @param array1 array <p>
  9237. * The first array.
  9238. * </p>
  9239. * @param array2 array <p>
  9240. * The second array.
  9241. * </p>
  9242. * @param _ array[optional]
  9243. * @param data_compare_func callback <p>
  9244. * The callback comparison function.
  9245. * </p>
  9246. * <p>
  9247. * The user supplied callback function is used for comparison.
  9248. * It must return an integer less than, equal to, or greater than zero if
  9249. * the first argument is considered to be respectively less than, equal
  9250. * to, or greater than the second.
  9251. * </p>
  9252. * <p>
  9253. * The comparison of arrays' data is performed by using an user-supplied
  9254. * callback : data_compare_func. In this aspect
  9255. * the behaviour is opposite to the behaviour of
  9256. * array_diff_assoc which uses internal function for
  9257. * comparison.
  9258. * </p>
  9259. * @param key_compare_func callback <p>
  9260. * The comparison of keys (indices) is done also by the callback function
  9261. * key_compare_func. This behaviour is unlike what
  9262. * array_udiff_assoc does, since the latter compares
  9263. * the indices by using an internal function.
  9264. * </p>
  9265. * @return array an array containing all the values from
  9266. * array1 that are not present in any of the other
  9267. * arguments.
  9268. */
  9269. function array_udiff_uassoc (array $array1, array $array2, array $_ = null, $data_compare_func, $key_compare_func) {}
  9270. /**
  9271. * Calculate the sum of values in an array
  9272. * @link http://www.php.net/manual/en/function.array-sum.php
  9273. * @param array array <p>
  9274. * The input array.
  9275. * </p>
  9276. * @return number the sum of values as an integer or float.
  9277. */
  9278. function array_sum (array $array) {}
  9279. /**
  9280. * Calculate the product of values in an array
  9281. * @link http://www.php.net/manual/en/function.array-product.php
  9282. * @param array array <p>
  9283. * The array.
  9284. * </p>
  9285. * @return number the product as an integer or float.
  9286. */
  9287. function array_product (array $array) {}
  9288. /**
  9289. * Filters elements of an array using a callback function
  9290. * @link http://www.php.net/manual/en/function.array-filter.php
  9291. * @param input array <p>
  9292. * The array to iterate over
  9293. * </p>
  9294. * @param callback callback[optional] <p>
  9295. * The callback function to use
  9296. * </p>
  9297. * <p>
  9298. * If no callback is supplied, all entries of
  9299. * input equal to false (see
  9300. * converting to
  9301. * boolean) will be removed.
  9302. * </p>
  9303. * @return array the filtered array.
  9304. */
  9305. function array_filter (array $input, $callback = null) {}
  9306. /**
  9307. * Applies the callback to the elements of the given arrays
  9308. * @link http://www.php.net/manual/en/function.array-map.php
  9309. * @param callback callback <p>
  9310. * Callback function to run for each element in each array.
  9311. * </p>
  9312. * @param arr1 array <p>
  9313. * An array to run through the callback function.
  9314. * </p>
  9315. * @param _ array[optional]
  9316. * @return array an array containing all the elements of arr1
  9317. * after applying the callback function to each one.
  9318. */
  9319. function array_map ($callback, array $arr1, array $_ = null) {}
  9320. /**
  9321. * Split an array into chunks
  9322. * @link http://www.php.net/manual/en/function.array-chunk.php
  9323. * @param input array <p>
  9324. * The array to work on
  9325. * </p>
  9326. * @param size int <p>
  9327. * The size of each chunk
  9328. * </p>
  9329. * @param preserve_keys bool[optional] <p>
  9330. * When set to true keys will be preserved.
  9331. * Default is false which will reindex the chunk numerically
  9332. * </p>
  9333. * @return array a multidimensional numerically indexed array, starting with zero,
  9334. * with each dimension containing size elements.
  9335. */
  9336. function array_chunk (array $input, $size, $preserve_keys = null) {}
  9337. /**
  9338. * Creates an array by using one array for keys and another for its values
  9339. * @link http://www.php.net/manual/en/function.array-combine.php
  9340. * @param keys array <p>
  9341. * Array of keys to be used. Illegal values for key will be
  9342. * converted to string.
  9343. * </p>
  9344. * @param values array <p>
  9345. * Array of values to be used
  9346. * </p>
  9347. * @return array the combined array, false if the number of elements
  9348. * for each array isn't equal or if the arrays are empty.
  9349. */
  9350. function array_combine (array $keys, array $values) {}
  9351. /**
  9352. * Checks if the given key or index exists in the array
  9353. * @link http://www.php.net/manual/en/function.array-key-exists.php
  9354. * @param key mixed <p>
  9355. * Value to check.
  9356. * </p>
  9357. * @param search array <p>
  9358. * An array with keys to check.
  9359. * </p>
  9360. * @return bool Returns true on success or false on failure.
  9361. */
  9362. function array_key_exists ($key, array $search) {}
  9363. /**
  9364. * &Alias; <function>current</function>
  9365. * @link http://www.php.net/manual/en/function.pos.php
  9366. * @param arg
  9367. */
  9368. function pos (&$arg) {}
  9369. /**
  9370. * &Alias; <function>count</function>
  9371. * @link http://www.php.net/manual/en/function.sizeof.php
  9372. * @param var
  9373. * @param mode[optional]
  9374. */
  9375. function sizeof ($var, $mode) {}
  9376. /**
  9377. * @param key
  9378. * @param search
  9379. */
  9380. function key_exists ($key, $search) {}
  9381. /**
  9382. * Checks if assertion is &false;
  9383. * @link http://www.php.net/manual/en/function.assert.php
  9384. * @param assertion mixed <p>
  9385. * The assertion.
  9386. * </p>
  9387. * @return bool false if the assertion is false, true otherwise.
  9388. */
  9389. function assert ($assertion) {}
  9390. /**
  9391. * Set/get the various assert flags
  9392. * @link http://www.php.net/manual/en/function.assert-options.php
  9393. * @param what int <p>
  9394. * <table>
  9395. * Assert Options
  9396. * <tr valign="top">
  9397. * <td>Option</td>
  9398. * <td>INI Setting</td>
  9399. * <td>Default value</td>
  9400. * <td>Description</td>
  9401. * </tr>
  9402. * <tr valign="top">
  9403. * <td>ASSERT_ACTIVE</td>
  9404. * <td>assert.active</td>
  9405. * <td>1</td>
  9406. * <td>enable assert evaluation</td>
  9407. * </tr>
  9408. * <tr valign="top">
  9409. * <td>ASSERT_WARNING</td>
  9410. * <td>assert.warning</td>
  9411. * <td>1</td>
  9412. * <td>issue a PHP warning for each failed assertion</td>
  9413. * </tr>
  9414. * <tr valign="top">
  9415. * <td>ASSERT_BAIL</td>
  9416. * <td>assert.bail</td>
  9417. * <td>0</td>
  9418. * <td>terminate execution on failed assertions</td>
  9419. * </tr>
  9420. * <tr valign="top">
  9421. * <td>ASSERT_QUIET_EVAL</td>
  9422. * <td>assert.quiet_eval</td>
  9423. * <td>0</td>
  9424. * <td>
  9425. * disable error_reporting during assertion expression
  9426. * evaluation
  9427. * </td>
  9428. * </tr>
  9429. * <tr valign="top">
  9430. * <td>ASSERT_CALLBACK</td>
  9431. * <td>assert.callback</td>
  9432. * <td)<&null;)</td>
  9433. * <td>Callback to call on failed assertions</td>
  9434. * </tr>
  9435. * </table>
  9436. * </p>
  9437. * @param value mixed[optional] <p>
  9438. * An optional new value for the option.
  9439. * </p>
  9440. * @return mixed the original setting of any option or false on errors.
  9441. */
  9442. function assert_options ($what, $value = null) {}
  9443. /**
  9444. * Compares two "PHP-standardized" version number strings
  9445. * @link http://www.php.net/manual/en/function.version-compare.php
  9446. * @param version1 string <p>
  9447. * First version number.
  9448. * </p>
  9449. * @param version2 string <p>
  9450. * Second version number.
  9451. * </p>
  9452. * @param operator string[optional] <p>
  9453. * If you specify the third optional operator
  9454. * argument, you can test for a particular relationship. The
  9455. * possible operators are: &lt;,
  9456. * lt, &lt;=,
  9457. * le, &gt;,
  9458. * gt, &gt;=,
  9459. * ge, ==,
  9460. * =, eq,
  9461. * !=, &lt;&gt;,
  9462. * ne respectively.
  9463. * </p>
  9464. * <p>
  9465. * This parameter is case-sensitive, so values should be lowercase.
  9466. * </p>
  9467. * @return mixed By default, version_compare returns
  9468. * -1 if the first version is lower than the second,
  9469. * 0 if they are equal, and
  9470. * 1 if the second is lower.
  9471. * </p>
  9472. * <p>
  9473. * When using the optional operator argument, the
  9474. * function will return true if the relationship is the one specified
  9475. * by the operator, false otherwise.
  9476. */
  9477. function version_compare ($version1, $version2, $operator = null) {}
  9478. /**
  9479. * Convert a pathname and a project identifier to a System V IPC key
  9480. * @link http://www.php.net/manual/en/function.ftok.php
  9481. * @param pathname string <p>
  9482. * Path to an accessible file.
  9483. * </p>
  9484. * @param proj string <p>
  9485. * Project identifier. This must be a one character string.
  9486. * </p>
  9487. * @return int On success the return value will be the created key value, otherwise
  9488. * -1 is returned.
  9489. */
  9490. function ftok ($pathname, $proj) {}
  9491. /**
  9492. * Perform the rot13 transform on a string
  9493. * @link http://www.php.net/manual/en/function.str-rot13.php
  9494. * @param str string <p>
  9495. * The input string.
  9496. * </p>
  9497. * @return string the ROT13 version of the given string.
  9498. */
  9499. function str_rot13 ($str) {}
  9500. /**
  9501. * Retrieve list of registered filters
  9502. * @link http://www.php.net/manual/en/function.stream-get-filters.php
  9503. * @return array an indexed array containing the name of all stream filters
  9504. * available.
  9505. */
  9506. function stream_get_filters () {}
  9507. /**
  9508. * Register a user defined stream filter
  9509. * @link http://www.php.net/manual/en/function.stream-filter-register.php
  9510. * @param filtername string <p>
  9511. * The filter name to be registered.
  9512. * </p>
  9513. * @param classname string <p>
  9514. * To implement a filter, you need to define a class as an extension of
  9515. * php_user_filter with a number of member functions
  9516. * as defined below. When performing read/write operations on the stream
  9517. * to which your filter is attached, PHP will pass the data through your
  9518. * filter (and any other filters attached to that stream) so that the
  9519. * data may be modified as desired. You must implement the methods
  9520. * exactly as described below - doing otherwise will lead to undefined
  9521. * behaviour.
  9522. * </p>
  9523. * intfilter
  9524. * resourcein
  9525. * resourceout
  9526. * intconsumed
  9527. * boolclosing
  9528. * <p>
  9529. * This method is called whenever data is read from or written to
  9530. * the attached stream (such as with fread or fwrite).
  9531. * in is a resource pointing to a bucket brigade
  9532. * which contains one or more bucket objects containing data to be filtered.
  9533. * out is a resource pointing to a second bucket brigade
  9534. * into which your modified buckets should be placed.
  9535. * consumed, which must always
  9536. * be declared by reference, should be incremented by the length of the data
  9537. * which your filter reads in and alters. In most cases this means you will
  9538. * increment consumed by $bucket->datalen
  9539. * for each $bucket. If the stream is in the process of closing
  9540. * (and therefore this is the last pass through the filterchain),
  9541. * the closing parameter will be set to true.
  9542. * The filter method must return one of
  9543. * three values upon completion.
  9544. * <tr valign="top">
  9545. * <td>Return Value</td>
  9546. * <td>Meaning</td>
  9547. * </tr>
  9548. * <tr valign="top">
  9549. * <td>PSFS_PASS_ON</td>
  9550. * <td>
  9551. * Filter processed successfully with data available in the
  9552. * out bucket brigade.
  9553. * </td>
  9554. * </tr>
  9555. * <tr valign="top">
  9556. * <td>PSFS_FEED_ME</td>
  9557. * <td>
  9558. * Filter processed successfully, however no data was available to
  9559. * return. More data is required from the stream or prior filter.
  9560. * </td>
  9561. * </tr>
  9562. * <tr valign="top">
  9563. * <td>PSFS_ERR_FATAL (default)</td>
  9564. * <td>
  9565. * The filter experienced an unrecoverable error and cannot continue.
  9566. * </td>
  9567. * </tr>
  9568. * </p>
  9569. * boolonCreate
  9570. * This method is called during instantiation of the filter class
  9571. * object. If your filter allocates or initializes any other resources
  9572. * (such as a buffer), this is the place to do it. Your implementation of
  9573. * this method should return false on failure, or true on success.
  9574. * When your filter is first instantiated, and
  9575. * yourfilter-&gt;onCreate() is called, a number of properties
  9576. * will be available as shown in the table below.
  9577. * <p>
  9578. * <tr valign="top">
  9579. * <td>Property</td>
  9580. * <td>Contents</td>
  9581. * </tr>
  9582. * <tr valign="top">
  9583. * <td>FilterClass-&gt;filtername</td>
  9584. * <td>
  9585. * A string containing the name the filter was instantiated with.
  9586. * Filters may be registered under multiple names or under wildcards.
  9587. * Use this property to determine which name was used.
  9588. * </td>
  9589. * </tr>
  9590. * <tr valign="top">
  9591. * <td>FilterClass-&gt;params</td>
  9592. * <td>
  9593. * The contents of the params parameter passed
  9594. * to stream_filter_append
  9595. * or stream_filter_prepend.
  9596. * </td>
  9597. * </tr>
  9598. * <tr valign="top">
  9599. * <td>FilterClass-&gt;stream</td>
  9600. * <td>
  9601. * The stream resource being filtered. Maybe available only during
  9602. * filter calls when the
  9603. * closing parameter is set to false.
  9604. * </td>
  9605. * </tr>
  9606. * </p>
  9607. * voidonClose
  9608. * <p>
  9609. * This method is called upon filter shutdown (typically, this is also
  9610. * during stream shutdown), and is executed after
  9611. * the flush method is called. If any resources
  9612. * were allocated or initialized during onCreate()
  9613. * this would be the time to destroy or dispose of them.
  9614. * </p>
  9615. * @return bool Returns true on success or false on failure.
  9616. * </p>
  9617. * <p>
  9618. * stream_filter_register will return false if the
  9619. * filtername is already defined.
  9620. */
  9621. function stream_filter_register ($filtername, $classname) {}
  9622. /**
  9623. * Return a bucket object from the brigade for operating on
  9624. * @link http://www.php.net/manual/en/function.stream-bucket-make-writeable.php
  9625. * @param brigade resource
  9626. * @return object
  9627. */
  9628. function stream_bucket_make_writeable ($brigade) {}
  9629. /**
  9630. * Prepend bucket to brigade
  9631. * @link http://www.php.net/manual/en/function.stream-bucket-prepend.php
  9632. * @param brigade resource
  9633. * @param bucket resource
  9634. * @return void
  9635. */
  9636. function stream_bucket_prepend ($brigade, $bucket) {}
  9637. /**
  9638. * Append bucket to brigade
  9639. * @link http://www.php.net/manual/en/function.stream-bucket-append.php
  9640. * @param brigade resource
  9641. * @param bucket resource
  9642. * @return void
  9643. */
  9644. function stream_bucket_append ($brigade, $bucket) {}
  9645. /**
  9646. * Create a new bucket for use on the current stream
  9647. * @link http://www.php.net/manual/en/function.stream-bucket-new.php
  9648. * @param stream resource
  9649. * @param buffer string
  9650. * @return object
  9651. */
  9652. function stream_bucket_new ($stream, $buffer) {}
  9653. /**
  9654. * Add URL rewriter values
  9655. * @link http://www.php.net/manual/en/function.output-add-rewrite-var.php
  9656. * @param name string <p>
  9657. * The variable name.
  9658. * </p>
  9659. * @param value string <p>
  9660. * The variable value.
  9661. * </p>
  9662. * @return bool Returns true on success or false on failure.
  9663. */
  9664. function output_add_rewrite_var ($name, $value) {}
  9665. /**
  9666. * Reset URL rewriter values
  9667. * @link http://www.php.net/manual/en/function.output-reset-rewrite-vars.php
  9668. * @return bool Returns true on success or false on failure.
  9669. */
  9670. function output_reset_rewrite_vars () {}
  9671. /**
  9672. * Returns directory path used for temporary files
  9673. * @link http://www.php.net/manual/en/function.sys-get-temp-dir.php
  9674. * @return string the path of the temporary directory.
  9675. */
  9676. function sys_get_temp_dir () {}
  9677. define ('CONNECTION_ABORTED', 1);
  9678. define ('CONNECTION_NORMAL', 0);
  9679. define ('CONNECTION_TIMEOUT', 2);
  9680. define ('INI_USER', 1);
  9681. define ('INI_PERDIR', 2);
  9682. define ('INI_SYSTEM', 4);
  9683. define ('INI_ALL', 7);
  9684. /**
  9685. * Normal INI scanner mode (since PHP 5.3).
  9686. * @link http://www.php.net/manual/en/filesystem.constants.php
  9687. */
  9688. define ('INI_SCANNER_NORMAL', 0);
  9689. /**
  9690. * Raw INI scanner mode (since PHP 5.3).
  9691. * @link http://www.php.net/manual/en/filesystem.constants.php
  9692. */
  9693. define ('INI_SCANNER_RAW', 1);
  9694. define ('PHP_URL_SCHEME', 0);
  9695. define ('PHP_URL_HOST', 1);
  9696. define ('PHP_URL_PORT', 2);
  9697. define ('PHP_URL_USER', 3);
  9698. define ('PHP_URL_PASS', 4);
  9699. define ('PHP_URL_PATH', 5);
  9700. define ('PHP_URL_QUERY', 6);
  9701. define ('PHP_URL_FRAGMENT', 7);
  9702. define ('M_E', 2.718281828459);
  9703. define ('M_LOG2E', 1.442695040889);
  9704. define ('M_LOG10E', 0.43429448190325);
  9705. define ('M_LN2', 0.69314718055995);
  9706. define ('M_LN10', 2.302585092994);
  9707. /**
  9708. * Round halves up
  9709. * @link http://www.php.net/manual/en/math.constants.php
  9710. */
  9711. define ('M_PI', 3.1415926535898);
  9712. define ('M_PI_2', 1.5707963267949);
  9713. define ('M_PI_4', 0.78539816339745);
  9714. define ('M_1_PI', 0.31830988618379);
  9715. define ('M_2_PI', 0.63661977236758);
  9716. define ('M_SQRTPI', 1.7724538509055);
  9717. define ('M_2_SQRTPI', 1.1283791670955);
  9718. define ('M_LNPI', 1.1447298858494);
  9719. define ('M_EULER', 0.57721566490153);
  9720. define ('M_SQRT2', 1.4142135623731);
  9721. define ('M_SQRT1_2', 0.70710678118655);
  9722. define ('M_SQRT3', 1.7320508075689);
  9723. define ('INF', INF);
  9724. define ('NAN', NAN);
  9725. define ('PHP_ROUND_HALF_UP', 1);
  9726. /**
  9727. * Round halves down
  9728. * @link http://www.php.net/manual/en/math.constants.php
  9729. */
  9730. define ('PHP_ROUND_HALF_DOWN', 2);
  9731. /**
  9732. * Round halves to even numbers
  9733. * @link http://www.php.net/manual/en/math.constants.php
  9734. */
  9735. define ('PHP_ROUND_HALF_EVEN', 3);
  9736. /**
  9737. * Round halves to odd numbers
  9738. * @link http://www.php.net/manual/en/math.constants.php
  9739. */
  9740. define ('PHP_ROUND_HALF_ODD', 4);
  9741. define ('INFO_GENERAL', 1);
  9742. /**
  9743. * PHP Credits. See also phpcredits.
  9744. * @link http://www.php.net/manual/en/info.constants.php
  9745. */
  9746. define ('INFO_CREDITS', 2);
  9747. /**
  9748. * Current Local and Master values for PHP directives. See
  9749. * also ini_get.
  9750. * @link http://www.php.net/manual/en/info.constants.php
  9751. */
  9752. define ('INFO_CONFIGURATION', 4);
  9753. /**
  9754. * Loaded modules and their respective settings.
  9755. * @link http://www.php.net/manual/en/info.constants.php
  9756. */
  9757. define ('INFO_MODULES', 8);
  9758. /**
  9759. * Environment Variable information that's also available in
  9760. * $_ENV.
  9761. * @link http://www.php.net/manual/en/info.constants.php
  9762. */
  9763. define ('INFO_ENVIRONMENT', 16);
  9764. /**
  9765. * Shows all
  9766. * predefined variables from EGPCS (Environment, GET,
  9767. * POST, Cookie, Server).
  9768. * @link http://www.php.net/manual/en/info.constants.php
  9769. */
  9770. define ('INFO_VARIABLES', 32);
  9771. /**
  9772. * PHP License information. See also the license faq.
  9773. * @link http://www.php.net/manual/en/info.constants.php
  9774. */
  9775. define ('INFO_LICENSE', 64);
  9776. define ('INFO_ALL', -1);
  9777. /**
  9778. * A list of the core developers
  9779. * @link http://www.php.net/manual/en/info.constants.php
  9780. */
  9781. define ('CREDITS_GROUP', 1);
  9782. /**
  9783. * General credits: Language design and concept, PHP
  9784. * authors and SAPI module.
  9785. * @link http://www.php.net/manual/en/info.constants.php
  9786. */
  9787. define ('CREDITS_GENERAL', 2);
  9788. /**
  9789. * A list of the server API modules for PHP, and their authors.
  9790. * @link http://www.php.net/manual/en/info.constants.php
  9791. */
  9792. define ('CREDITS_SAPI', 4);
  9793. /**
  9794. * A list of the extension modules for PHP, and their authors.
  9795. * @link http://www.php.net/manual/en/info.constants.php
  9796. */
  9797. define ('CREDITS_MODULES', 8);
  9798. /**
  9799. * The credits for the documentation team.
  9800. * @link http://www.php.net/manual/en/info.constants.php
  9801. */
  9802. define ('CREDITS_DOCS', 16);
  9803. /**
  9804. * Usually used in combination with the other flags. Indicates
  9805. * that a complete stand-alone HTML page needs to be
  9806. * printed including the information indicated by the other
  9807. * flags.
  9808. * @link http://www.php.net/manual/en/info.constants.php
  9809. */
  9810. define ('CREDITS_FULLPAGE', 32);
  9811. /**
  9812. * The credits for the quality assurance team.
  9813. * @link http://www.php.net/manual/en/info.constants.php
  9814. */
  9815. define ('CREDITS_QA', 64);
  9816. /**
  9817. * The configuration line, &php.ini; location, build date, Web
  9818. * Server, System and more.
  9819. * @link http://www.php.net/manual/en/info.constants.php
  9820. */
  9821. define ('CREDITS_ALL', -1);
  9822. define ('HTML_SPECIALCHARS', 0);
  9823. define ('HTML_ENTITIES', 1);
  9824. define ('ENT_COMPAT', 2);
  9825. define ('ENT_QUOTES', 3);
  9826. define ('ENT_NOQUOTES', 0);
  9827. define ('ENT_IGNORE', 4);
  9828. define ('STR_PAD_LEFT', 0);
  9829. define ('STR_PAD_RIGHT', 1);
  9830. define ('STR_PAD_BOTH', 2);
  9831. define ('PATHINFO_DIRNAME', 1);
  9832. define ('PATHINFO_BASENAME', 2);
  9833. define ('PATHINFO_EXTENSION', 4);
  9834. /**
  9835. * Since PHP 5.2.0.
  9836. * @link http://www.php.net/manual/en/filesystem.constants.php
  9837. */
  9838. define ('PATHINFO_FILENAME', 8);
  9839. define ('CHAR_MAX', 127);
  9840. define ('LC_CTYPE', 0);
  9841. define ('LC_NUMERIC', 1);
  9842. define ('LC_TIME', 2);
  9843. define ('LC_COLLATE', 3);
  9844. define ('LC_MONETARY', 4);
  9845. define ('LC_ALL', 6);
  9846. define ('LC_MESSAGES', 5);
  9847. define ('SEEK_SET', 0);
  9848. define ('SEEK_CUR', 1);
  9849. define ('SEEK_END', 2);
  9850. define ('LOCK_SH', 1);
  9851. define ('LOCK_EX', 2);
  9852. define ('LOCK_UN', 3);
  9853. define ('LOCK_NB', 4);
  9854. /**
  9855. * A connection with an external resource has been established.
  9856. * @link http://www.php.net/manual/en/stream.constants.php
  9857. */
  9858. define ('STREAM_NOTIFY_CONNECT', 2);
  9859. /**
  9860. * Additional authorization is required to access the specified resource.
  9861. * Typical issued with severity level of
  9862. * STREAM_NOTIFY_SEVERITY_ERR.
  9863. * @link http://www.php.net/manual/en/stream.constants.php
  9864. */
  9865. define ('STREAM_NOTIFY_AUTH_REQUIRED', 3);
  9866. /**
  9867. * Authorization has been completed (with or without success).
  9868. * @link http://www.php.net/manual/en/stream.constants.php
  9869. */
  9870. define ('STREAM_NOTIFY_AUTH_RESULT', 10);
  9871. /**
  9872. * The mime-type of resource has been identified,
  9873. * refer to message for a description of the
  9874. * discovered type.
  9875. * @link http://www.php.net/manual/en/stream.constants.php
  9876. */
  9877. define ('STREAM_NOTIFY_MIME_TYPE_IS', 4);
  9878. /**
  9879. * The size of the resource has been discovered.
  9880. * @link http://www.php.net/manual/en/stream.constants.php
  9881. */
  9882. define ('STREAM_NOTIFY_FILE_SIZE_IS', 5);
  9883. /**
  9884. * The external resource has redirected the stream to an alternate
  9885. * location. Refer to message.
  9886. * @link http://www.php.net/manual/en/stream.constants.php
  9887. */
  9888. define ('STREAM_NOTIFY_REDIRECTED', 6);
  9889. /**
  9890. * Indicates current progress of the stream transfer in
  9891. * bytes_transferred and possibly
  9892. * bytes_max as well.
  9893. * @link http://www.php.net/manual/en/stream.constants.php
  9894. */
  9895. define ('STREAM_NOTIFY_PROGRESS', 7);
  9896. /**
  9897. * A generic error occurred on the stream, consult
  9898. * message and message_code
  9899. * for details.
  9900. * @link http://www.php.net/manual/en/stream.constants.php
  9901. */
  9902. define ('STREAM_NOTIFY_FAILURE', 9);
  9903. /**
  9904. * There is no more data available on the stream.
  9905. * @link http://www.php.net/manual/en/stream.constants.php
  9906. */
  9907. define ('STREAM_NOTIFY_COMPLETED', 8);
  9908. /**
  9909. * A remote address required for this stream has been resolved, or the resolution
  9910. * failed. See severity for an indication of which happened.
  9911. * @link http://www.php.net/manual/en/stream.constants.php
  9912. */
  9913. define ('STREAM_NOTIFY_RESOLVE', 1);
  9914. /**
  9915. * Normal, non-error related, notification.
  9916. * @link http://www.php.net/manual/en/stream.constants.php
  9917. */
  9918. define ('STREAM_NOTIFY_SEVERITY_INFO', 0);
  9919. /**
  9920. * Non critical error condition. Processing may continue.
  9921. * @link http://www.php.net/manual/en/stream.constants.php
  9922. */
  9923. define ('STREAM_NOTIFY_SEVERITY_WARN', 1);
  9924. /**
  9925. * A critical error occurred. Processing cannot continue.
  9926. * @link http://www.php.net/manual/en/stream.constants.php
  9927. */
  9928. define ('STREAM_NOTIFY_SEVERITY_ERR', 2);
  9929. /**
  9930. * Used with stream_filter_append and
  9931. * stream_filter_prepend to indicate
  9932. * that the specified filter should only be applied when
  9933. * reading
  9934. * @link http://www.php.net/manual/en/stream.constants.php
  9935. */
  9936. define ('STREAM_FILTER_READ', 1);
  9937. /**
  9938. * Used with stream_filter_append and
  9939. * stream_filter_prepend to indicate
  9940. * that the specified filter should only be applied when
  9941. * writing
  9942. * @link http://www.php.net/manual/en/stream.constants.php
  9943. */
  9944. define ('STREAM_FILTER_WRITE', 2);
  9945. /**
  9946. * This constant is equivalent to
  9947. * STREAM_FILTER_READ | STREAM_FILTER_WRITE
  9948. * @link http://www.php.net/manual/en/stream.constants.php
  9949. */
  9950. define ('STREAM_FILTER_ALL', 3);
  9951. /**
  9952. * Client socket opened with stream_socket_client
  9953. * should remain persistent between page loads.
  9954. * @link http://www.php.net/manual/en/stream.constants.php
  9955. */
  9956. define ('STREAM_CLIENT_PERSISTENT', 1);
  9957. /**
  9958. * Open client socket asynchronously. This option must be used
  9959. * together with the STREAM_CLIENT_CONNECT flag.
  9960. * Used with stream_socket_client.
  9961. * @link http://www.php.net/manual/en/stream.constants.php
  9962. */
  9963. define ('STREAM_CLIENT_ASYNC_CONNECT', 2);
  9964. /**
  9965. * Open client socket connection. Client sockets should always
  9966. * include this flag. Used with stream_socket_client.
  9967. * @link http://www.php.net/manual/en/stream.constants.php
  9968. */
  9969. define ('STREAM_CLIENT_CONNECT', 4);
  9970. define ('STREAM_CRYPTO_METHOD_SSLv2_CLIENT', 0);
  9971. define ('STREAM_CRYPTO_METHOD_SSLv3_CLIENT', 1);
  9972. define ('STREAM_CRYPTO_METHOD_SSLv23_CLIENT', 2);
  9973. define ('STREAM_CRYPTO_METHOD_TLS_CLIENT', 3);
  9974. define ('STREAM_CRYPTO_METHOD_SSLv2_SERVER', 4);
  9975. define ('STREAM_CRYPTO_METHOD_SSLv3_SERVER', 5);
  9976. define ('STREAM_CRYPTO_METHOD_SSLv23_SERVER', 6);
  9977. define ('STREAM_CRYPTO_METHOD_TLS_SERVER', 7);
  9978. /**
  9979. * Used with stream_socket_shutdown to disable
  9980. * further receptions. Added in PHP 5.2.1.
  9981. * @link http://www.php.net/manual/en/stream.constants.php
  9982. */
  9983. define ('STREAM_SHUT_RD', 0);
  9984. /**
  9985. * Used with stream_socket_shutdown to disable
  9986. * further transmissions. Added in PHP 5.2.1.
  9987. * @link http://www.php.net/manual/en/stream.constants.php
  9988. */
  9989. define ('STREAM_SHUT_WR', 1);
  9990. /**
  9991. * Used with stream_socket_shutdown to disable
  9992. * further receptions and transmissions. Added in PHP 5.2.1.
  9993. * @link http://www.php.net/manual/en/stream.constants.php
  9994. */
  9995. define ('STREAM_SHUT_RDWR', 2);
  9996. /**
  9997. * Internet Protocol Version 4 (IPv4).
  9998. * @link http://www.php.net/manual/en/stream.constants.php
  9999. */
  10000. define ('STREAM_PF_INET', 2);
  10001. /**
  10002. * Internet Protocol Version 6 (IPv6).
  10003. * @link http://www.php.net/manual/en/stream.constants.php
  10004. */
  10005. define ('STREAM_PF_INET6', 10);
  10006. /**
  10007. * Unix system internal protocols.
  10008. * @link http://www.php.net/manual/en/stream.constants.php
  10009. */
  10010. define ('STREAM_PF_UNIX', 1);
  10011. /**
  10012. * Provides a IP socket.
  10013. * @link http://www.php.net/manual/en/stream.constants.php
  10014. */
  10015. define ('STREAM_IPPROTO_IP', 0);
  10016. /**
  10017. * Provides a TCP socket.
  10018. * @link http://www.php.net/manual/en/stream.constants.php
  10019. */
  10020. define ('STREAM_IPPROTO_TCP', 6);
  10021. /**
  10022. * Provides a UDP socket.
  10023. * @link http://www.php.net/manual/en/stream.constants.php
  10024. */
  10025. define ('STREAM_IPPROTO_UDP', 17);
  10026. /**
  10027. * Provides a ICMP socket.
  10028. * @link http://www.php.net/manual/en/stream.constants.php
  10029. */
  10030. define ('STREAM_IPPROTO_ICMP', 1);
  10031. /**
  10032. * Provides a RAW socket.
  10033. * @link http://www.php.net/manual/en/stream.constants.php
  10034. */
  10035. define ('STREAM_IPPROTO_RAW', 255);
  10036. /**
  10037. * Provides sequenced, two-way byte streams with a transmission mechanism
  10038. * for out-of-band data (TCP, for example).
  10039. * @link http://www.php.net/manual/en/stream.constants.php
  10040. */
  10041. define ('STREAM_SOCK_STREAM', 1);
  10042. /**
  10043. * Provides datagrams, which are connectionless messages (UDP, for
  10044. * example).
  10045. * @link http://www.php.net/manual/en/stream.constants.php
  10046. */
  10047. define ('STREAM_SOCK_DGRAM', 2);
  10048. /**
  10049. * Provides a raw socket, which provides access to internal network
  10050. * protocols and interfaces. Usually this type of socket is just available
  10051. * to the root user.
  10052. * @link http://www.php.net/manual/en/stream.constants.php
  10053. */
  10054. define ('STREAM_SOCK_RAW', 3);
  10055. /**
  10056. * Provides a sequenced packet stream socket.
  10057. * @link http://www.php.net/manual/en/stream.constants.php
  10058. */
  10059. define ('STREAM_SOCK_SEQPACKET', 5);
  10060. /**
  10061. * Provides a RDM (Reliably-delivered messages) socket.
  10062. * @link http://www.php.net/manual/en/stream.constants.php
  10063. */
  10064. define ('STREAM_SOCK_RDM', 4);
  10065. define ('STREAM_PEEK', 2);
  10066. define ('STREAM_OOB', 1);
  10067. /**
  10068. * Tells a stream created with stream_socket_server
  10069. * to bind to the specified target. Server sockets should always include this flag.
  10070. * @link http://www.php.net/manual/en/stream.constants.php
  10071. */
  10072. define ('STREAM_SERVER_BIND', 4);
  10073. /**
  10074. * Tells a stream created with stream_socket_server
  10075. * and bound using the STREAM_SERVER_BIND flag to start
  10076. * listening on the socket. Connection-orientated transports (such as TCP)
  10077. * must use this flag, otherwise the server socket will not be enabled.
  10078. * Using this flag for connect-less transports (such as UDP) is an error.
  10079. * @link http://www.php.net/manual/en/stream.constants.php
  10080. */
  10081. define ('STREAM_SERVER_LISTEN', 8);
  10082. /**
  10083. * Search for filename in
  10084. * include_path (since PHP 5).
  10085. * @link http://www.php.net/manual/en/filesystem.constants.php
  10086. */
  10087. define ('FILE_USE_INCLUDE_PATH', 1);
  10088. /**
  10089. * Strip EOL characters (since PHP 5).
  10090. * @link http://www.php.net/manual/en/filesystem.constants.php
  10091. */
  10092. define ('FILE_IGNORE_NEW_LINES', 2);
  10093. /**
  10094. * Skip empty lines (since PHP 5).
  10095. * @link http://www.php.net/manual/en/filesystem.constants.php
  10096. */
  10097. define ('FILE_SKIP_EMPTY_LINES', 4);
  10098. /**
  10099. * Append content to existing file.
  10100. * @link http://www.php.net/manual/en/filesystem.constants.php
  10101. */
  10102. define ('FILE_APPEND', 8);
  10103. define ('FILE_NO_DEFAULT_CONTEXT', 16);
  10104. /**
  10105. * <p>
  10106. * Text mode (since PHP 5.2.7).
  10107. * <p>
  10108. * This constant has no effect, and is only available for
  10109. * forward compatibility.
  10110. * </p>
  10111. * </p>
  10112. * @link http://www.php.net/manual/en/filesystem.constants.php
  10113. */
  10114. define ('FILE_TEXT', 0);
  10115. /**
  10116. * <p>
  10117. * Binary mode (since PHP 5.2.7).
  10118. * <p>
  10119. * This constant has no effect, and is only available for
  10120. * forward compatibility.
  10121. * </p>
  10122. * </p>
  10123. * @link http://www.php.net/manual/en/filesystem.constants.php
  10124. */
  10125. define ('FILE_BINARY', 0);
  10126. /**
  10127. * Disable backslash escaping.
  10128. * @link http://www.php.net/manual/en/filesystem.constants.php
  10129. */
  10130. define ('FNM_NOESCAPE', 2);
  10131. /**
  10132. * Slash in string only matches slash in the given pattern.
  10133. * @link http://www.php.net/manual/en/filesystem.constants.php
  10134. */
  10135. define ('FNM_PATHNAME', 1);
  10136. /**
  10137. * Leading period in string must be exactly matched by period in the given pattern.
  10138. * @link http://www.php.net/manual/en/filesystem.constants.php
  10139. */
  10140. define ('FNM_PERIOD', 4);
  10141. /**
  10142. * Caseless match. Part of the GNU extension.
  10143. * @link http://www.php.net/manual/en/filesystem.constants.php
  10144. */
  10145. define ('FNM_CASEFOLD', 16);
  10146. /**
  10147. * Return Code indicating that the
  10148. * userspace filter returned buckets in $out.
  10149. * @link http://www.php.net/manual/en/stream.constants.php
  10150. */
  10151. define ('PSFS_PASS_ON', 2);
  10152. /**
  10153. * Return Code indicating that the
  10154. * userspace filter did not return buckets in $out
  10155. * (i.e. No data available).
  10156. * @link http://www.php.net/manual/en/stream.constants.php
  10157. */
  10158. define ('PSFS_FEED_ME', 1);
  10159. /**
  10160. * Return Code indicating that the
  10161. * userspace filter encountered an unrecoverable error
  10162. * (i.e. Invalid data received).
  10163. * @link http://www.php.net/manual/en/stream.constants.php
  10164. */
  10165. define ('PSFS_ERR_FATAL', 0);
  10166. /**
  10167. * Regular read/write.
  10168. * @link http://www.php.net/manual/en/stream.constants.php
  10169. */
  10170. define ('PSFS_FLAG_NORMAL', 0);
  10171. /**
  10172. * An incremental flush.
  10173. * @link http://www.php.net/manual/en/stream.constants.php
  10174. */
  10175. define ('PSFS_FLAG_FLUSH_INC', 1);
  10176. /**
  10177. * Final flush prior to closing.
  10178. * @link http://www.php.net/manual/en/stream.constants.php
  10179. */
  10180. define ('PSFS_FLAG_FLUSH_CLOSE', 2);
  10181. define ('ABDAY_1', 131072);
  10182. define ('ABDAY_2', 131073);
  10183. define ('ABDAY_3', 131074);
  10184. define ('ABDAY_4', 131075);
  10185. define ('ABDAY_5', 131076);
  10186. define ('ABDAY_6', 131077);
  10187. define ('ABDAY_7', 131078);
  10188. define ('DAY_1', 131079);
  10189. define ('DAY_2', 131080);
  10190. define ('DAY_3', 131081);
  10191. define ('DAY_4', 131082);
  10192. define ('DAY_5', 131083);
  10193. define ('DAY_6', 131084);
  10194. define ('DAY_7', 131085);
  10195. define ('ABMON_1', 131086);
  10196. define ('ABMON_2', 131087);
  10197. define ('ABMON_3', 131088);
  10198. define ('ABMON_4', 131089);
  10199. define ('ABMON_5', 131090);
  10200. define ('ABMON_6', 131091);
  10201. define ('ABMON_7', 131092);
  10202. define ('ABMON_8', 131093);
  10203. define ('ABMON_9', 131094);
  10204. define ('ABMON_10', 131095);
  10205. define ('ABMON_11', 131096);
  10206. define ('ABMON_12', 131097);
  10207. define ('MON_1', 131098);
  10208. define ('MON_2', 131099);
  10209. define ('MON_3', 131100);
  10210. define ('MON_4', 131101);
  10211. define ('MON_5', 131102);
  10212. define ('MON_6', 131103);
  10213. define ('MON_7', 131104);
  10214. define ('MON_8', 131105);
  10215. define ('MON_9', 131106);
  10216. define ('MON_10', 131107);
  10217. define ('MON_11', 131108);
  10218. define ('MON_12', 131109);
  10219. define ('AM_STR', 131110);
  10220. define ('PM_STR', 131111);
  10221. define ('D_T_FMT', 131112);
  10222. define ('D_FMT', 131113);
  10223. define ('T_FMT', 131114);
  10224. define ('T_FMT_AMPM', 131115);
  10225. define ('ERA', 131116);
  10226. define ('ERA_D_T_FMT', 131120);
  10227. define ('ERA_D_FMT', 131118);
  10228. define ('ERA_T_FMT', 131121);
  10229. define ('ALT_DIGITS', 131119);
  10230. define ('CRNCYSTR', 262159);
  10231. define ('RADIXCHAR', 65536);
  10232. define ('THOUSEP', 65537);
  10233. define ('YESEXPR', 327680);
  10234. define ('NOEXPR', 327681);
  10235. define ('CODESET', 14);
  10236. define ('CRYPT_SALT_LENGTH', 123);
  10237. define ('CRYPT_STD_DES', 1);
  10238. define ('CRYPT_EXT_DES', 1);
  10239. define ('CRYPT_MD5', 1);
  10240. define ('CRYPT_BLOWFISH', 1);
  10241. define ('CRYPT_SHA256', 1);
  10242. define ('CRYPT_SHA512', 1);
  10243. define ('DIRECTORY_SEPARATOR', "/");
  10244. define ('PATH_SEPARATOR', ":");
  10245. define ('GLOB_BRACE', 1024);
  10246. define ('GLOB_MARK', 2);
  10247. define ('GLOB_NOSORT', 4);
  10248. define ('GLOB_NOCHECK', 16);
  10249. define ('GLOB_NOESCAPE', 64);
  10250. define ('GLOB_ERR', 1);
  10251. define ('GLOB_ONLYDIR', 8192);
  10252. define ('GLOB_AVAILABLE_FLAGS', 9303);
  10253. /**
  10254. * system is unusable
  10255. * @link http://www.php.net/manual/en/network.constants.php
  10256. */
  10257. define ('LOG_EMERG', 0);
  10258. /**
  10259. * action must be taken immediately
  10260. * @link http://www.php.net/manual/en/network.constants.php
  10261. */
  10262. define ('LOG_ALERT', 1);
  10263. /**
  10264. * critical conditions
  10265. * @link http://www.php.net/manual/en/network.constants.php
  10266. */
  10267. define ('LOG_CRIT', 2);
  10268. /**
  10269. * error conditions
  10270. * @link http://www.php.net/manual/en/network.constants.php
  10271. */
  10272. define ('LOG_ERR', 3);
  10273. /**
  10274. * warning conditions
  10275. * @link http://www.php.net/manual/en/network.constants.php
  10276. */
  10277. define ('LOG_WARNING', 4);
  10278. /**
  10279. * normal, but significant, condition
  10280. * @link http://www.php.net/manual/en/network.constants.php
  10281. */
  10282. define ('LOG_NOTICE', 5);
  10283. /**
  10284. * informational message
  10285. * @link http://www.php.net/manual/en/network.constants.php
  10286. */
  10287. define ('LOG_INFO', 6);
  10288. /**
  10289. * debug-level message
  10290. * @link http://www.php.net/manual/en/network.constants.php
  10291. */
  10292. define ('LOG_DEBUG', 7);
  10293. /**
  10294. * kernel messages
  10295. * @link http://www.php.net/manual/en/network.constants.php
  10296. */
  10297. define ('LOG_KERN', 0);
  10298. /**
  10299. * generic user-level messages
  10300. * @link http://www.php.net/manual/en/network.constants.php
  10301. */
  10302. define ('LOG_USER', 8);
  10303. /**
  10304. * mail subsystem
  10305. * @link http://www.php.net/manual/en/network.constants.php
  10306. */
  10307. define ('LOG_MAIL', 16);
  10308. /**
  10309. * other system daemons
  10310. * @link http://www.php.net/manual/en/network.constants.php
  10311. */
  10312. define ('LOG_DAEMON', 24);
  10313. /**
  10314. * security/authorization messages (use LOG_AUTHPRIV instead
  10315. * in systems where that constant is defined)
  10316. * @link http://www.php.net/manual/en/network.constants.php
  10317. */
  10318. define ('LOG_AUTH', 32);
  10319. /**
  10320. * messages generated internally by syslogd
  10321. * @link http://www.php.net/manual/en/network.constants.php
  10322. */
  10323. define ('LOG_SYSLOG', 40);
  10324. /**
  10325. * line printer subsystem
  10326. * @link http://www.php.net/manual/en/network.constants.php
  10327. */
  10328. define ('LOG_LPR', 48);
  10329. /**
  10330. * USENET news subsystem
  10331. * @link http://www.php.net/manual/en/network.constants.php
  10332. */
  10333. define ('LOG_NEWS', 56);
  10334. /**
  10335. * UUCP subsystem
  10336. * @link http://www.php.net/manual/en/network.constants.php
  10337. */
  10338. define ('LOG_UUCP', 64);
  10339. /**
  10340. * clock daemon (cron and at)
  10341. * @link http://www.php.net/manual/en/network.constants.php
  10342. */
  10343. define ('LOG_CRON', 72);
  10344. /**
  10345. * security/authorization messages (private)
  10346. * @link http://www.php.net/manual/en/network.constants.php
  10347. */
  10348. define ('LOG_AUTHPRIV', 80);
  10349. define ('LOG_LOCAL0', 128);
  10350. define ('LOG_LOCAL1', 136);
  10351. define ('LOG_LOCAL2', 144);
  10352. define ('LOG_LOCAL3', 152);
  10353. define ('LOG_LOCAL4', 160);
  10354. define ('LOG_LOCAL5', 168);
  10355. define ('LOG_LOCAL6', 176);
  10356. define ('LOG_LOCAL7', 184);
  10357. /**
  10358. * include PID with each message
  10359. * @link http://www.php.net/manual/en/network.constants.php
  10360. */
  10361. define ('LOG_PID', 1);
  10362. /**
  10363. * if there is an error while sending data to the system logger,
  10364. * write directly to the system console
  10365. * @link http://www.php.net/manual/en/network.constants.php
  10366. */
  10367. define ('LOG_CONS', 2);
  10368. /**
  10369. * (default) delay opening the connection until the first
  10370. * message is logged
  10371. * @link http://www.php.net/manual/en/network.constants.php
  10372. */
  10373. define ('LOG_ODELAY', 4);
  10374. /**
  10375. * open the connection to the logger immediately
  10376. * @link http://www.php.net/manual/en/network.constants.php
  10377. */
  10378. define ('LOG_NDELAY', 8);
  10379. define ('LOG_NOWAIT', 16);
  10380. /**
  10381. * print log message also to standard error
  10382. * @link http://www.php.net/manual/en/network.constants.php
  10383. */
  10384. define ('LOG_PERROR', 32);
  10385. define ('EXTR_OVERWRITE', 0);
  10386. define ('EXTR_SKIP', 1);
  10387. define ('EXTR_PREFIX_SAME', 2);
  10388. define ('EXTR_PREFIX_ALL', 3);
  10389. define ('EXTR_PREFIX_INVALID', 4);
  10390. define ('EXTR_PREFIX_IF_EXISTS', 5);
  10391. define ('EXTR_IF_EXISTS', 6);
  10392. define ('EXTR_REFS', 256);
  10393. /**
  10394. * SORT_ASC is used with
  10395. * array_multisort to sort in ascending order.
  10396. * @link http://www.php.net/manual/en/array.constants.php
  10397. */
  10398. define ('SORT_ASC', 4);
  10399. /**
  10400. * SORT_DESC is used with
  10401. * array_multisort to sort in descending order.
  10402. * @link http://www.php.net/manual/en/array.constants.php
  10403. */
  10404. define ('SORT_DESC', 3);
  10405. /**
  10406. * SORT_REGULAR is used to compare items normally.
  10407. * @link http://www.php.net/manual/en/array.constants.php
  10408. */
  10409. define ('SORT_REGULAR', 0);
  10410. /**
  10411. * SORT_NUMERIC is used to compare items numerically.
  10412. * @link http://www.php.net/manual/en/array.constants.php
  10413. */
  10414. define ('SORT_NUMERIC', 1);
  10415. /**
  10416. * SORT_STRING is used to compare items as strings.
  10417. * @link http://www.php.net/manual/en/array.constants.php
  10418. */
  10419. define ('SORT_STRING', 2);
  10420. /**
  10421. * SORT_LOCALE_STRING is used to compare items as
  10422. * strings, based on the current locale. Added in PHP 4.4.0 and 5.0.2.
  10423. * @link http://www.php.net/manual/en/array.constants.php
  10424. */
  10425. define ('SORT_LOCALE_STRING', 5);
  10426. /**
  10427. * CASE_LOWER is used with
  10428. * array_change_key_case and is used to convert array
  10429. * keys to lower case. This is also the default case for
  10430. * array_change_key_case.
  10431. * @link http://www.php.net/manual/en/array.constants.php
  10432. */
  10433. define ('CASE_LOWER', 0);
  10434. /**
  10435. * CASE_UPPER is used with
  10436. * array_change_key_case and is used to convert array
  10437. * keys to upper case.
  10438. * @link http://www.php.net/manual/en/array.constants.php
  10439. */
  10440. define ('CASE_UPPER', 1);
  10441. define ('COUNT_NORMAL', 0);
  10442. define ('COUNT_RECURSIVE', 1);
  10443. define ('ASSERT_ACTIVE', 1);
  10444. define ('ASSERT_CALLBACK', 2);
  10445. define ('ASSERT_BAIL', 3);
  10446. define ('ASSERT_WARNING', 4);
  10447. define ('ASSERT_QUIET_EVAL', 5);
  10448. /**
  10449. * Flag indicating if the stream
  10450. * used the include path.
  10451. * @link http://www.php.net/manual/en/stream.constants.php
  10452. */
  10453. define ('STREAM_USE_PATH', 1);
  10454. define ('STREAM_IGNORE_URL', 2);
  10455. define ('STREAM_ENFORCE_SAFE_MODE', 4);
  10456. /**
  10457. * Flag indicating if the wrapper
  10458. * is responsible for raising errors using trigger_error
  10459. * during opening of the stream. If this flag is not set, you
  10460. * should not raise any errors.
  10461. * @link http://www.php.net/manual/en/stream.constants.php
  10462. */
  10463. define ('STREAM_REPORT_ERRORS', 8);
  10464. /**
  10465. * This flag is useful when your extension really must be able to randomly
  10466. * seek around in a stream. Some streams may not be seekable in their
  10467. * native form, so this flag asks the streams API to check to see if the
  10468. * stream does support seeking. If it does not, it will copy the stream
  10469. * into temporary storage (which may be a temporary file or a memory
  10470. * stream) which does support seeking.
  10471. * Please note that this flag is not useful when you want to seek the
  10472. * stream and write to it, because the stream you are accessing might
  10473. * not be bound to the actual resource you requested.
  10474. * If the requested resource is network based, this flag will cause the
  10475. * opener to block until the whole contents have been downloaded.
  10476. * @link http://www.php.net/manual/en/internals2.ze1.streams.constants.php
  10477. */
  10478. define ('STREAM_MUST_SEEK', 16);
  10479. define ('STREAM_URL_STAT_LINK', 1);
  10480. define ('STREAM_URL_STAT_QUIET', 2);
  10481. define ('STREAM_MKDIR_RECURSIVE', 1);
  10482. define ('STREAM_IS_URL', 1);
  10483. define ('STREAM_OPTION_BLOCKING', 1);
  10484. define ('STREAM_OPTION_READ_TIMEOUT', 4);
  10485. define ('STREAM_OPTION_READ_BUFFER', 2);
  10486. define ('STREAM_OPTION_WRITE_BUFFER', 3);
  10487. define ('STREAM_BUFFER_NONE', 0);
  10488. define ('STREAM_BUFFER_LINE', 1);
  10489. define ('STREAM_BUFFER_FULL', 2);
  10490. /**
  10491. * Stream casting, when stream_cast is called
  10492. * otherwise (see above).
  10493. * @link http://www.php.net/manual/en/stream.constants.php
  10494. */
  10495. define ('STREAM_CAST_AS_STREAM', 0);
  10496. /**
  10497. * Stream casting, for when stream_select is
  10498. * calling stream_cast.
  10499. * @link http://www.php.net/manual/en/stream.constants.php
  10500. */
  10501. define ('STREAM_CAST_FOR_SELECT', 3);
  10502. /**
  10503. * Image type constant used by the
  10504. * image_type_to_mime_type and
  10505. * image_type_to_extension functions.
  10506. * @link http://www.php.net/manual/en/image.constants.php
  10507. */
  10508. define ('IMAGETYPE_GIF', 1);
  10509. /**
  10510. * Image type constant used by the
  10511. * image_type_to_mime_type and
  10512. * image_type_to_extension functions.
  10513. * @link http://www.php.net/manual/en/image.constants.php
  10514. */
  10515. define ('IMAGETYPE_JPEG', 2);
  10516. /**
  10517. * Image type constant used by the
  10518. * image_type_to_mime_type and
  10519. * image_type_to_extension functions.
  10520. * @link http://www.php.net/manual/en/image.constants.php
  10521. */
  10522. define ('IMAGETYPE_PNG', 3);
  10523. /**
  10524. * Image type constant used by the
  10525. * image_type_to_mime_type and
  10526. * image_type_to_extension functions.
  10527. * @link http://www.php.net/manual/en/image.constants.php
  10528. */
  10529. define ('IMAGETYPE_SWF', 4);
  10530. /**
  10531. * Image type constant used by the
  10532. * image_type_to_mime_type and
  10533. * image_type_to_extension functions.
  10534. * @link http://www.php.net/manual/en/image.constants.php
  10535. */
  10536. define ('IMAGETYPE_PSD', 5);
  10537. /**
  10538. * Image type constant used by the
  10539. * image_type_to_mime_type and
  10540. * image_type_to_extension functions.
  10541. * @link http://www.php.net/manual/en/image.constants.php
  10542. */
  10543. define ('IMAGETYPE_BMP', 6);
  10544. /**
  10545. * Image type constant used by the
  10546. * image_type_to_mime_type and
  10547. * image_type_to_extension functions.
  10548. * @link http://www.php.net/manual/en/image.constants.php
  10549. */
  10550. define ('IMAGETYPE_TIFF_II', 7);
  10551. /**
  10552. * Image type constant used by the
  10553. * image_type_to_mime_type and
  10554. * image_type_to_extension functions.
  10555. * @link http://www.php.net/manual/en/image.constants.php
  10556. */
  10557. define ('IMAGETYPE_TIFF_MM', 8);
  10558. /**
  10559. * Image type constant used by the
  10560. * image_type_to_mime_type and
  10561. * image_type_to_extension functions.
  10562. * @link http://www.php.net/manual/en/image.constants.php
  10563. */
  10564. define ('IMAGETYPE_JPC', 9);
  10565. /**
  10566. * Image type constant used by the
  10567. * image_type_to_mime_type and
  10568. * image_type_to_extension functions.
  10569. * @link http://www.php.net/manual/en/image.constants.php
  10570. */
  10571. define ('IMAGETYPE_JP2', 10);
  10572. /**
  10573. * Image type constant used by the
  10574. * image_type_to_mime_type and
  10575. * image_type_to_extension functions.
  10576. * @link http://www.php.net/manual/en/image.constants.php
  10577. */
  10578. define ('IMAGETYPE_JPX', 11);
  10579. /**
  10580. * Image type constant used by the
  10581. * image_type_to_mime_type and
  10582. * image_type_to_extension functions.
  10583. * @link http://www.php.net/manual/en/image.constants.php
  10584. */
  10585. define ('IMAGETYPE_JB2', 12);
  10586. /**
  10587. * Image type constant used by the
  10588. * image_type_to_mime_type and
  10589. * image_type_to_extension functions.
  10590. * @link http://www.php.net/manual/en/image.constants.php
  10591. */
  10592. define ('IMAGETYPE_SWC', 13);
  10593. /**
  10594. * Image type constant used by the
  10595. * image_type_to_mime_type and
  10596. * image_type_to_extension functions.
  10597. * @link http://www.php.net/manual/en/image.constants.php
  10598. */
  10599. define ('IMAGETYPE_IFF', 14);
  10600. /**
  10601. * Image type constant used by the
  10602. * image_type_to_mime_type and
  10603. * image_type_to_extension functions.
  10604. * @link http://www.php.net/manual/en/image.constants.php
  10605. */
  10606. define ('IMAGETYPE_WBMP', 15);
  10607. /**
  10608. * Image type constant used by the
  10609. * image_type_to_mime_type and
  10610. * image_type_to_extension functions.
  10611. * @link http://www.php.net/manual/en/image.constants.php
  10612. */
  10613. define ('IMAGETYPE_JPEG2000', 9);
  10614. /**
  10615. * Image type constant used by the
  10616. * image_type_to_mime_type and
  10617. * image_type_to_extension functions.
  10618. * @link http://www.php.net/manual/en/image.constants.php
  10619. */
  10620. define ('IMAGETYPE_XBM', 16);
  10621. /**
  10622. * Image type constant used by the
  10623. * image_type_to_mime_type and
  10624. * image_type_to_extension functions.
  10625. * (Available as of PHP 5.3.0)
  10626. * @link http://www.php.net/manual/en/image.constants.php
  10627. */
  10628. define ('IMAGETYPE_ICO', 17);
  10629. define ('IMAGETYPE_UNKNOWN', 0);
  10630. define ('IMAGETYPE_COUNT', 18);
  10631. /**
  10632. * IPv4 Address Resource
  10633. * @link http://www.php.net/manual/en/network.constants.php
  10634. */
  10635. define ('DNS_A', 1);
  10636. /**
  10637. * Authoritative Name Server Resource
  10638. * @link http://www.php.net/manual/en/network.constants.php
  10639. */
  10640. define ('DNS_NS', 2);
  10641. /**
  10642. * Alias (Canonical Name) Resource
  10643. * @link http://www.php.net/manual/en/network.constants.php
  10644. */
  10645. define ('DNS_CNAME', 16);
  10646. /**
  10647. * Start of Authority Resource
  10648. * @link http://www.php.net/manual/en/network.constants.php
  10649. */
  10650. define ('DNS_SOA', 32);
  10651. /**
  10652. * Pointer Resource
  10653. * @link http://www.php.net/manual/en/network.constants.php
  10654. */
  10655. define ('DNS_PTR', 2048);
  10656. /**
  10657. * Host Info Resource (See IANA's
  10658. * Operating System Names
  10659. * for the meaning of these values)
  10660. * @link http://www.php.net/manual/en/network.constants.php
  10661. */
  10662. define ('DNS_HINFO', 4096);
  10663. /**
  10664. * Mail Exchanger Resource
  10665. * @link http://www.php.net/manual/en/network.constants.php
  10666. */
  10667. define ('DNS_MX', 16384);
  10668. /**
  10669. * Text Resource
  10670. * @link http://www.php.net/manual/en/network.constants.php
  10671. */
  10672. define ('DNS_TXT', 32768);
  10673. define ('DNS_SRV', 33554432);
  10674. define ('DNS_NAPTR', 67108864);
  10675. /**
  10676. * IPv6 Address Resource
  10677. * @link http://www.php.net/manual/en/network.constants.php
  10678. */
  10679. define ('DNS_AAAA', 134217728);
  10680. define ('DNS_A6', 16777216);
  10681. /**
  10682. * Any Resource Record. On most systems
  10683. * this returns all resource records, however
  10684. * it should not be counted upon for critical
  10685. * uses. Try DNS_ALL instead.
  10686. * @link http://www.php.net/manual/en/network.constants.php
  10687. */
  10688. define ('DNS_ANY', 268435456);
  10689. /**
  10690. * Iteratively query the name server for
  10691. * each available record type.
  10692. * @link http://www.php.net/manual/en/network.constants.php
  10693. */
  10694. define ('DNS_ALL', 251713587);
  10695. // End of standard v.5.3.2
  10696. ?>