PageRenderTime 99ms CodeModel.GetById 21ms RepoModel.GetById 0ms app.codeStats 1ms

/ide/eclipse/jaggery/org.eclipse.php.core/Resources/language/php5/standard.php

https://github.com/blue666man/tools
PHP | 11216 lines | 836 code | 660 blank | 9720 comment | 0 complexity | 852bad1e3ca417ea3bd1d0c71b681b12 MD5 | raw file
Possible License(s): 0BSD
  1. <?php
  2. // Start of standard v.5.2.13
  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. * getimagesize and MIME types
  488. * ]]>
  489. * </p>
  490. * <p>
  491. * channels will be 3 for RGB pictures and 4 for CMYK
  492. * pictures.
  493. * </p>
  494. * <p>
  495. * bits is the number of bits for each color.
  496. * </p>
  497. * <p>
  498. * For some image types, the presence of channels and
  499. * bits values can be a bit
  500. * confusing. As an example, GIF always uses 3 channels
  501. * per pixel, but the number of bits per pixel cannot be calculated for an
  502. * animated GIF with a global color table.
  503. * </p>
  504. * <p>
  505. * On failure, false is returned.
  506. */
  507. function getimagesize ($filename, array &$imageinfo = null) {}
  508. /**
  509. * Get Mime-Type for image-type returned by getimagesize,
  510. exif_read_data, exif_thumbnail, exif_imagetype
  511. * @link http://www.php.net/manual/en/function.image-type-to-mime-type.php
  512. * @param imagetype int <p>
  513. * One of the IMAGETYPE_XXX constants.
  514. * </p>
  515. * @return string The returned values are as follows
  516. * <table>
  517. * Returned values Constants
  518. * <tr valign="top">
  519. * <td>imagetype</td>
  520. * <td>Returned value</td>
  521. * </tr>
  522. * <tr valign="top">
  523. * <td>IMAGETYPE_GIF</td>
  524. * <td>image/gif</td>
  525. * </tr>
  526. * <tr valign="top">
  527. * <td>IMAGETYPE_JPEG</td>
  528. * <td>image/jpeg</td>
  529. * </tr>
  530. * <tr valign="top">
  531. * <td>IMAGETYPE_PNG</td>
  532. * <td>image/png</td>
  533. * </tr>
  534. * <tr valign="top">
  535. * <td>IMAGETYPE_SWF</td>
  536. * <td>application/x-shockwave-flash</td>
  537. * </tr>
  538. * <tr valign="top">
  539. * <td>IMAGETYPE_PSD</td>
  540. * <td>image/psd</td>
  541. * </tr>
  542. * <tr valign="top">
  543. * <td>IMAGETYPE_BMP</td>
  544. * <td>image/bmp</td>
  545. * </tr>
  546. * <tr valign="top">
  547. * <td>IMAGETYPE_TIFF_II (intel byte order)</td>
  548. * <td>image/tiff</td>
  549. * </tr>
  550. * <tr valign="top">
  551. * <td>
  552. * IMAGETYPE_TIFF_MM (motorola byte order)
  553. * </td>
  554. * <td>image/tiff</td>
  555. * </tr>
  556. * <tr valign="top">
  557. * <td>IMAGETYPE_JPC</td>
  558. * <td>application/octet-stream</td>
  559. * </tr>
  560. * <tr valign="top">
  561. * <td>IMAGETYPE_JP2</td>
  562. * <td>image/jp2</td>
  563. * </tr>
  564. * <tr valign="top">
  565. * <td>IMAGETYPE_JPX</td>
  566. * <td>application/octet-stream</td>
  567. * </tr>
  568. * <tr valign="top">
  569. * <td>IMAGETYPE_JB2</td>
  570. * <td>application/octet-stream</td>
  571. * </tr>
  572. * <tr valign="top">
  573. * <td>IMAGETYPE_SWC</td>
  574. * <td>application/x-shockwave-flash</td>
  575. * </tr>
  576. * <tr valign="top">
  577. * <td>IMAGETYPE_IFF</td>
  578. * <td>image/iff</td>
  579. * </tr>
  580. * <tr valign="top">
  581. * <td>IMAGETYPE_WBMP</td>
  582. * <td>image/vnd.wap.wbmp</td>
  583. * </tr>
  584. * <tr valign="top">
  585. * <td>IMAGETYPE_XBM</td>
  586. * <td>image/xbm</td>
  587. * </tr>
  588. * <tr valign="top">
  589. * <td>IMAGETYPE_ICO</td>
  590. * <td>image/vnd.microsoft.icon</td>
  591. * </tr>
  592. * </table>
  593. */
  594. function image_type_to_mime_type ($imagetype) {}
  595. /**
  596. * Get file extension for image type
  597. * @link http://www.php.net/manual/en/function.image-type-to-extension.php
  598. * @param imagetype int <p>
  599. * One of the IMAGETYPE_XXX constant.
  600. * </p>
  601. * @param include_dot bool[optional] <p>
  602. * Whether to prepend a dot to the extension or not. Default to true.
  603. * </p>
  604. * @return string A string with the extension corresponding to the given image type.
  605. */
  606. function image_type_to_extension ($imagetype, $include_dot = null) {}
  607. /**
  608. * Outputs information about PHP's configuration
  609. * @link http://www.php.net/manual/en/function.phpinfo.php
  610. * @param what int[optional] <p>
  611. * The output may be customized by passing one or more of the
  612. * following constants bitwise values summed
  613. * together in the optional what parameter.
  614. * One can also combine the respective constants or bitwise values
  615. * together with the or operator.
  616. * </p>
  617. * <p>
  618. * <table>
  619. * phpinfo options
  620. * <tr valign="top">
  621. * <td>Name (constant)</td>
  622. * <td>Value</td>
  623. * <td>Description</td>
  624. * </tr>
  625. * <tr valign="top">
  626. * <td>INFO_GENERAL</td>
  627. * <td>1</td>
  628. * <td>
  629. * The configuration line, &php.ini; location, build date, Web
  630. * Server, System and more.
  631. * </td>
  632. * </tr>
  633. * <tr valign="top">
  634. * <td>INFO_CREDITS</td>
  635. * <td>2</td>
  636. * <td>
  637. * PHP Credits. See also phpcredits.
  638. * </td>
  639. * </tr>
  640. * <tr valign="top">
  641. * <td>INFO_CONFIGURATION</td>
  642. * <td>4</td>
  643. * <td>
  644. * Current Local and Master values for PHP directives. See
  645. * also ini_get.
  646. * </td>
  647. * </tr>
  648. * <tr valign="top">
  649. * <td>INFO_MODULES</td>
  650. * <td>8</td>
  651. * <td>
  652. * Loaded modules and their respective settings. See also
  653. * get_loaded_extensions.
  654. * </td>
  655. * </tr>
  656. * <tr valign="top">
  657. * <td>INFO_ENVIRONMENT</td>
  658. * <td>16</td>
  659. * <td>
  660. * Environment Variable information that's also available in
  661. * $_ENV.
  662. * </td>
  663. * </tr>
  664. * <tr valign="top">
  665. * <td>INFO_VARIABLES</td>
  666. * <td>32</td>
  667. * <td>
  668. * Shows all
  669. * predefined variables from EGPCS (Environment, GET,
  670. * POST, Cookie, Server).
  671. * </td>
  672. * </tr>
  673. * <tr valign="top">
  674. * <td>INFO_LICENSE</td>
  675. * <td>64</td>
  676. * <td>
  677. * PHP License information. See also the license FAQ.
  678. * </td>
  679. * </tr>
  680. * <tr valign="top">
  681. * <td>INFO_ALL</td>
  682. * <td>-1</td>
  683. * <td>
  684. * Shows all of the above.
  685. * </td>
  686. * </tr>
  687. * </table>
  688. * </p>
  689. * @return bool Returns true on success or false on failure.
  690. */
  691. function phpinfo ($what = null) {}
  692. /**
  693. * Gets the current PHP version
  694. * @link http://www.php.net/manual/en/function.phpversion.php
  695. * @param extension string[optional] <p>
  696. * An optional extension name.
  697. * </p>
  698. * @return string If the optional extension parameter is
  699. * specified, phpversion returns the version of that
  700. * extension, or false if there is no version information associated or
  701. * the extension isn't enabled.
  702. */
  703. function phpversion ($extension = null) {}
  704. /**
  705. * Prints out the credits for PHP
  706. * @link http://www.php.net/manual/en/function.phpcredits.php
  707. * @param flag int[optional] <p>
  708. * To generate a custom credits page, you may want to use the
  709. * flag parameter.
  710. * </p>
  711. * <p>
  712. * <table>
  713. * Pre-defined phpcredits flags
  714. * <tr valign="top">
  715. * <td>name</td>
  716. * <td>description</td>
  717. * </tr>
  718. * <tr valign="top">
  719. * <td>CREDITS_ALL</td>
  720. * <td>
  721. * All the credits, equivalent to using: CREDITS_DOCS +
  722. * CREDITS_GENERAL + CREDITS_GROUP +
  723. * CREDITS_MODULES + CREDITS_FULLPAGE.
  724. * It generates a complete stand-alone HTML page with the appropriate tags.
  725. * </td>
  726. * </tr>
  727. * <tr valign="top">
  728. * <td>CREDITS_DOCS</td>
  729. * <td>The credits for the documentation team</td>
  730. * </tr>
  731. * <tr valign="top">
  732. * <td>CREDITS_FULLPAGE</td>
  733. * <td>
  734. * Usually used in combination with the other flags. Indicates
  735. * that a complete stand-alone HTML page needs to be
  736. * printed including the information indicated by the other
  737. * flags.
  738. * </td>
  739. * </tr>
  740. * <tr valign="top">
  741. * <td>CREDITS_GENERAL</td>
  742. * <td>
  743. * General credits: Language design and concept, PHP authors
  744. * and SAPI module.
  745. * </td>
  746. * </tr>
  747. * <tr valign="top">
  748. * <td>CREDITS_GROUP</td>
  749. * <td>A list of the core developers</td>
  750. * </tr>
  751. * <tr valign="top">
  752. * <td>CREDITS_MODULES</td>
  753. * <td>
  754. * A list of the extension modules for PHP, and their authors
  755. * </td>
  756. * </tr>
  757. * <tr valign="top">
  758. * <td>CREDITS_SAPI</td>
  759. * <td>
  760. * A list of the server API modules for PHP, and their authors
  761. * </td>
  762. * </tr>
  763. * </table>
  764. * </p>
  765. * @return bool Returns true on success or false on failure.
  766. */
  767. function phpcredits ($flag = null) {}
  768. /**
  769. * Gets the logo guid
  770. * @link http://www.php.net/manual/en/function.php-logo-guid.php
  771. * @return string PHPE9568F34-D428-11d2-A769-00AA001ACF42.
  772. */
  773. function php_logo_guid () {}
  774. function php_real_logo_guid () {}
  775. function php_egg_logo_guid () {}
  776. /**
  777. * Gets the Zend guid
  778. * @link http://www.php.net/manual/en/function.zend-logo-guid.php
  779. * @return string PHPE9568F35-D428-11d2-A769-00AA001ACF42.
  780. */
  781. function zend_logo_guid () {}
  782. /**
  783. * Returns the type of interface between web server and PHP
  784. * @link http://www.php.net/manual/en/function.php-sapi-name.php
  785. * @return string the interface type, as a lowercase string.
  786. * </p>
  787. * <p>
  788. * Although not exhaustive, the possible return values include
  789. * aolserver, apache,
  790. * apache2filter, apache2handler,
  791. * caudium, cgi (until PHP 5.3),
  792. * cgi-fcgi, cli,
  793. * continuity, embed,
  794. * isapi, litespeed,
  795. * milter, nsapi,
  796. * phttpd, pi3web, roxen,
  797. * thttpd, tux, and webjames.
  798. */
  799. function php_sapi_name () {}
  800. /**
  801. * Returns information about the operating system PHP is running on
  802. * @link http://www.php.net/manual/en/function.php-uname.php
  803. * @param mode string[optional] <p>
  804. * mode is a single character that defines what
  805. * information is returned:
  806. * 'a': This is the default. Contains all modes in
  807. * the sequence "s n r v m".
  808. * @return string the description, as a string.
  809. */
  810. function php_uname ($mode = null) {}
  811. /**
  812. * Return a list of .ini files parsed from the additional ini dir
  813. * @link http://www.php.net/manual/en/function.php-ini-scanned-files.php
  814. * @return string a comma-separated string of .ini files on success. Each comma is
  815. * followed by a newline. If the directive --with-config-file-scan-dir wasn't set,
  816. * false is returned. If it was set and the directory was empty, an
  817. * empty string is returned. If a file is unrecognizable, the file will
  818. * still make it into the returned string but a PHP error will also result.
  819. * This PHP error will be seen both at compile time and while using
  820. * php_ini_scanned_files.
  821. */
  822. function php_ini_scanned_files () {}
  823. /**
  824. * Retrieve a path to the loaded php.ini file
  825. * @link http://www.php.net/manual/en/function.php-ini-loaded-file.php
  826. * @return string The loaded &php.ini; path, or false if one is not loaded.
  827. */
  828. function php_ini_loaded_file () {}
  829. /**
  830. * String comparisons using a "natural order" algorithm
  831. * @link http://www.php.net/manual/en/function.strnatcmp.php
  832. * @param str1 string <p>
  833. * The first string.
  834. * </p>
  835. * @param str2 string <p>
  836. * The second string.
  837. * </p>
  838. * @return int Similar to other string comparison functions, this one returns &lt; 0 if
  839. * str1 is less than str2; &gt;
  840. * 0 if str1 is greater than
  841. * str2, and 0 if they are equal.
  842. */
  843. function strnatcmp ($str1, $str2) {}
  844. /**
  845. * Case insensitive string comparisons using a "natural order" algorithm
  846. * @link http://www.php.net/manual/en/function.strnatcasecmp.php
  847. * @param str1 string <p>
  848. * The first string.
  849. * </p>
  850. * @param str2 string <p>
  851. * The second string.
  852. * </p>
  853. * @return int Similar to other string comparison functions, this one returns &lt; 0 if
  854. * str1 is less than str2 &gt;
  855. * 0 if str1 is greater than
  856. * str2, and 0 if they are equal.
  857. */
  858. function strnatcasecmp ($str1, $str2) {}
  859. /**
  860. * Count the number of substring occurrences
  861. * @link http://www.php.net/manual/en/function.substr-count.php
  862. * @param haystack string <p>
  863. * The string to search in
  864. * </p>
  865. * @param needle string <p>
  866. * The substring to search for
  867. * </p>
  868. * @param offset int[optional] <p>
  869. * The offset where to start counting
  870. * </p>
  871. * @param length int[optional] <p>
  872. * The maximum length after the specified offset to search for the
  873. * substring. It outputs a warning if the offset plus the length is
  874. * greater than the haystack length.
  875. * </p>
  876. * @return int This functions returns an integer.
  877. */
  878. function substr_count ($haystack, $needle, $offset = null, $length = null) {}
  879. /**
  880. * Finds the length of the first segment of a string consisting
  881. entirely of characters contained within a given mask.
  882. * @link http://www.php.net/manual/en/function.strspn.php
  883. * @param subject string <p>
  884. * The string to examine.
  885. * </p>
  886. * @param mask string <p>
  887. * The list of allowable characters to include in counted segments.
  888. * </p>
  889. * @param start int[optional] <p>
  890. * The position in subject to
  891. * start searching.
  892. * </p>
  893. * <p>
  894. * If start is given and is non-negative,
  895. * then strspn will begin
  896. * examining subject at
  897. * the start'th position. For instance, in
  898. * the string 'abcdef', the character at
  899. * position 0 is 'a', the
  900. * character at position 2 is
  901. * 'c', and so forth.
  902. * </p>
  903. * <p>
  904. * If start is given and is negative,
  905. * then strspn will begin
  906. * examining subject at
  907. * the start'th position from the end
  908. * of subject.
  909. * </p>
  910. * @param length int[optional] <p>
  911. * The length of the segment from subject
  912. * to examine.
  913. * </p>
  914. * <p>
  915. * If length is given and is non-negative,
  916. * then subject will be examined
  917. * for length characters after the starting
  918. * position.
  919. * </p>
  920. * <p>
  921. * If lengthis given and is negative,
  922. * then subject will be examined from the
  923. * starting position up to length
  924. * characters from the end of subject.
  925. * </p>
  926. * @return int the length of the initial segment of str1
  927. * which consists entirely of characters in str2.
  928. */
  929. function strspn ($subject, $mask, $start = null, $length = null) {}
  930. /**
  931. * Find length of initial segment not matching mask
  932. * @link http://www.php.net/manual/en/function.strcspn.php
  933. * @param str1 string <p>
  934. * The first string.
  935. * </p>
  936. * @param str2 string <p>
  937. * The second string.
  938. * </p>
  939. * @param start int[optional] <p>
  940. * The start position of the string to examine.
  941. * </p>
  942. * @param length int[optional] <p>
  943. * The length of the string to examine.
  944. * </p>
  945. * @return int the length of the segment as an integer.
  946. */
  947. function strcspn ($str1, $str2, $start = null, $length = null) {}
  948. /**
  949. * Tokenize string
  950. * @link http://www.php.net/manual/en/function.strtok.php
  951. * @param str string <p>
  952. * The string being split up into smaller strings (tokens).
  953. * </p>
  954. * @param token string <p>
  955. * The delimiter used when splitting up str.
  956. * </p>
  957. * @return string A string token.
  958. */
  959. function strtok ($str, $token) {}
  960. /**
  961. * Make a string uppercase
  962. * @link http://www.php.net/manual/en/function.strtoupper.php
  963. * @param string string <p>
  964. * The input string.
  965. * </p>
  966. * @return string the uppercased string.
  967. */
  968. function strtoupper ($string) {}
  969. /**
  970. * Make a string lowercase
  971. * @link http://www.php.net/manual/en/function.strtolower.php
  972. * @param str string <p>
  973. * The input string.
  974. * </p>
  975. * @return string the lowercased string.
  976. */
  977. function strtolower ($str) {}
  978. /**
  979. * Find position of first occurrence of a string
  980. * @link http://www.php.net/manual/en/function.strpos.php
  981. * @param haystack string <p>
  982. * The string to search in
  983. * </p>
  984. * @param needle mixed <p>
  985. * If needle is not a string, it is converted
  986. * to an integer and applied as the ordinal value of a character.
  987. * </p>
  988. * @param offset int[optional] <p>
  989. * The optional offset parameter allows you
  990. * to specify which character in haystack to
  991. * start searching. The position returned is still relative to the
  992. * beginning of haystack.
  993. * </p>
  994. * @return int the position as an integer. If needle is
  995. * not found, strpos will return boolean
  996. * false.
  997. */
  998. function strpos ($haystack, $needle, $offset = null) {}
  999. /**
  1000. * Find position of first occurrence of a case-insensitive string
  1001. * @link http://www.php.net/manual/en/function.stripos.php
  1002. * @param haystack string <p>
  1003. * The string to search in
  1004. * </p>
  1005. * @param needle string <p>
  1006. * Note that the needle may be a string of one or
  1007. * more characters.
  1008. * </p>
  1009. * <p>
  1010. * If needle is not a string, it is converted to
  1011. * an integer and applied as the ordinal value of a character.
  1012. * </p>
  1013. * @param offset int[optional] <p>
  1014. * The optional offset parameter allows you
  1015. * to specify which character in haystack to
  1016. * start searching. The position returned is still relative to the
  1017. * beginning of haystack.
  1018. * </p>
  1019. * @return int If needle is not found,
  1020. * stripos will return boolean false.
  1021. */
  1022. function stripos ($haystack, $needle, $offset = null) {}
  1023. /**
  1024. * Find position of last occurrence of a char in a string
  1025. * @link http://www.php.net/manual/en/function.strrpos.php
  1026. * @param haystack string <p>
  1027. * The string to search in.
  1028. * </p>
  1029. * @param needle string <p>
  1030. * If needle is not a string, it is converted
  1031. * to an integer and applied as the ordinal value of a character.
  1032. * </p>
  1033. * @param offset int[optional] <p>
  1034. * May be specified to begin searching an arbitrary number of characters into
  1035. * the string. Negative values will stop searching at an arbitrary point
  1036. * prior to the end of the string.
  1037. * </p>
  1038. * @return int the position where the needle exists. Returns false if the needle
  1039. * was not found.
  1040. */
  1041. function strrpos ($haystack, $needle, $offset = null) {}
  1042. /**
  1043. * Find position of last occurrence of a case-insensitive string in a string
  1044. * @link http://www.php.net/manual/en/function.strripos.php
  1045. * @param haystack string <p>
  1046. * The string to search in
  1047. * </p>
  1048. * @param needle string <p>
  1049. * Note that the needle may be a string of one or
  1050. * more characters.
  1051. * </p>
  1052. * @param offset int[optional] <p>
  1053. * The offset parameter may be specified to begin
  1054. * searching an arbitrary number of characters into the string.
  1055. * </p>
  1056. * <p>
  1057. * Negative offset values will start the search at
  1058. * offset characters from the
  1059. * start of the string.
  1060. * </p>
  1061. * @return int the numerical position of the last occurrence of
  1062. * needle. Also note that string positions start at 0,
  1063. * and not 1.
  1064. * </p>
  1065. * <p>
  1066. * If needle is not found, false is returned.
  1067. */
  1068. function strripos ($haystack, $needle, $offset = null) {}
  1069. /**
  1070. * Reverse a string
  1071. * @link http://www.php.net/manual/en/function.strrev.php
  1072. * @param string string <p>
  1073. * The string to be reversed.
  1074. * </p>
  1075. * @return string the reversed string.
  1076. */
  1077. function strrev ($string) {}
  1078. /**
  1079. * Convert logical Hebrew text to visual text
  1080. * @link http://www.php.net/manual/en/function.hebrev.php
  1081. * @param hebrew_text string <p>
  1082. * A Hebrew input string.
  1083. * </p>
  1084. * @param max_chars_per_line int[optional] <p>
  1085. * This optional parameter indicates maximum number of characters per
  1086. * line that will be returned.
  1087. * </p>
  1088. * @return string the visual string.
  1089. */
  1090. function hebrev ($hebrew_text, $max_chars_per_line = null) {}
  1091. /**
  1092. * Convert logical Hebrew text to visual text with newline conversion
  1093. * @link http://www.php.net/manual/en/function.hebrevc.php
  1094. * @param hebrew_text string <p>
  1095. * A Hebrew input string.
  1096. * </p>
  1097. * @param max_chars_per_line int[optional] <p>
  1098. * This optional parameter indicates maximum number of characters per
  1099. * line that will be returned.
  1100. * </p>
  1101. * @return string the visual string.
  1102. */
  1103. function hebrevc ($hebrew_text, $max_chars_per_line = null) {}
  1104. /**
  1105. * Inserts HTML line breaks before all newlines in a string
  1106. * @link http://www.php.net/manual/en/function.nl2br.php
  1107. * @param string string <p>
  1108. * The input string.
  1109. * </p>
  1110. * @param is_xhtml bool[optional] <p>
  1111. * Whenever to use XHTML compatible line breaks or not.
  1112. * </p>
  1113. * @return string the altered string.
  1114. */
  1115. function nl2br ($string, $is_xhtml = null) {}
  1116. /**
  1117. * Returns filename component of path
  1118. * @link http://www.php.net/manual/en/function.basename.php
  1119. * @param path string <p>
  1120. * A path.
  1121. * </p>
  1122. * <p>
  1123. * On Windows, both slash (/) and backslash
  1124. * (\) are used as directory separator character. In
  1125. * other environments, it is the forward slash (/).
  1126. * </p>
  1127. * @param suffix string[optional] <p>
  1128. * If the filename ends in suffix this will also
  1129. * be cut off.
  1130. * </p>
  1131. * @return string the base name of the given path.
  1132. */
  1133. function basename ($path, $suffix = null) {}
  1134. /**
  1135. * Returns directory name component of path
  1136. * @link http://www.php.net/manual/en/function.dirname.php
  1137. * @param path string <p>
  1138. * A path.
  1139. * </p>
  1140. * <p>
  1141. * On Windows, both slash (/) and backslash
  1142. * (\) are used as directory separator character. In
  1143. * other environments, it is the forward slash (/).
  1144. * </p>
  1145. * @return string the name of the directory. If there are no slashes in
  1146. * path, a dot ('.') is returned,
  1147. * indicating the current directory. Otherwise, the returned string is
  1148. * path with any trailing
  1149. * /component removed.
  1150. */
  1151. function dirname ($path) {}
  1152. /**
  1153. * Returns information about a file path
  1154. * @link http://www.php.net/manual/en/function.pathinfo.php
  1155. * @param path string <p>
  1156. * The path being checked.
  1157. * </p>
  1158. * @param options int[optional] <p>
  1159. * You can specify which elements are returned with optional parameter
  1160. * options. It composes from
  1161. * PATHINFO_DIRNAME,
  1162. * PATHINFO_BASENAME,
  1163. * PATHINFO_EXTENSION and
  1164. * PATHINFO_FILENAME. It
  1165. * defaults to return all elements.
  1166. * </p>
  1167. * @return mixed The following associative array elements are returned:
  1168. * dirname, basename,
  1169. * extension (if any), and filename.
  1170. * </p>
  1171. * <p>
  1172. * If options is used, this function will return a
  1173. * string if not all elements are requested.
  1174. */
  1175. function pathinfo ($path, $options = null) {}
  1176. /**
  1177. * Un-quotes a quoted string
  1178. * @link http://www.php.net/manual/en/function.stripslashes.php
  1179. * @param str string <p>
  1180. * The input string.
  1181. * </p>
  1182. * @return string a string with backslashes stripped off.
  1183. * (\' becomes ' and so on.)
  1184. * Double backslashes (\\) are made into a single
  1185. * backslash (\).
  1186. */
  1187. function stripslashes ($str) {}
  1188. /**
  1189. * Un-quote string quoted with <function>addcslashes</function>
  1190. * @link http://www.php.net/manual/en/function.stripcslashes.php
  1191. * @param str string <p>
  1192. * The string to be unescaped.
  1193. * </p>
  1194. * @return string the unescaped string.
  1195. */
  1196. function stripcslashes ($str) {}
  1197. /**
  1198. * Find first occurrence of a string
  1199. * @link http://www.php.net/manual/en/function.strstr.php
  1200. * @param haystack string <p>
  1201. * The input string.
  1202. * </p>
  1203. * @param needle mixed <p>
  1204. * If needle is not a string, it is converted to
  1205. * an integer and applied as the ordinal value of a character.
  1206. * </p>
  1207. * @param before_needle bool[optional] <p>
  1208. * If true, strstr returns
  1209. * the part of the haystack before the first
  1210. * occurrence of the needle.
  1211. * </p>
  1212. * @return string the portion of string, or false if needle
  1213. * is not found.
  1214. */
  1215. function strstr ($haystack, $needle, $before_needle = null) {}
  1216. /**
  1217. * Case-insensitive <function>strstr</function>
  1218. * @link http://www.php.net/manual/en/function.stristr.php
  1219. * @param haystack string <p>
  1220. * The string to search in
  1221. * </p>
  1222. * @param needle mixed <p>
  1223. * If needle is not a string, it is converted to
  1224. * an integer and applied as the ordinal value of a character.
  1225. * </p>
  1226. * @param before_needle bool[optional] <p>
  1227. * If true, stristr
  1228. * returns the part of the haystack before the
  1229. * first occurrence of the needle.
  1230. * </p>
  1231. * @return string the matched substring. If needle is not
  1232. * found, returns false.
  1233. */
  1234. function stristr ($haystack, $needle, $before_needle = null) {}
  1235. /**
  1236. * Find the last occurrence of a character in a string
  1237. * @link http://www.php.net/manual/en/function.strrchr.php
  1238. * @param haystack string <p>
  1239. * The string to search in
  1240. * </p>
  1241. * @param needle mixed <p>
  1242. * If needle contains more than one character,
  1243. * only the first is used. This behavior is different from that of
  1244. * strstr.
  1245. * </p>
  1246. * <p>
  1247. * If needle is not a string, it is converted to
  1248. * an integer and applied as the ordinal value of a character.
  1249. * </p>
  1250. * @return string This function returns the portion of string, or false if
  1251. * needle is not found.
  1252. */
  1253. function strrchr ($haystack, $needle) {}
  1254. /**
  1255. * Randomly shuffles a string
  1256. * @link http://www.php.net/manual/en/function.str-shuffle.php
  1257. * @param str string <p>
  1258. * The input string.
  1259. * </p>
  1260. * @return string the shuffled string.
  1261. */
  1262. function str_shuffle ($str) {}
  1263. /**
  1264. * Return information about words used in a string
  1265. * @link http://www.php.net/manual/en/function.str-word-count.php
  1266. * @param string string <p>
  1267. * The string
  1268. * </p>
  1269. * @param format int[optional] <p>
  1270. * Specify the return value of this function. The current supported values
  1271. * are:
  1272. * 0 - returns the number of words found
  1273. * @param charlist string[optional] <p>
  1274. * A list of additional characters which will be considered as 'word'
  1275. * </p>
  1276. * @return mixed an array or an integer, depending on the
  1277. * format chosen.
  1278. */
  1279. function str_word_count ($string, $format = null, $charlist = null) {}
  1280. /**
  1281. * Convert a string to an array
  1282. * @link http://www.php.net/manual/en/function.str-split.php
  1283. * @param string string <p>
  1284. * The input string.
  1285. * </p>
  1286. * @param split_length int[optional] <p>
  1287. * Maximum length of the chunk.
  1288. * </p>
  1289. * @return array If the optional split_length parameter is
  1290. * specified, the returned array will be broken down into chunks with each
  1291. * being split_length in length, otherwise each chunk
  1292. * will be one character in length.
  1293. * </p>
  1294. * <p>
  1295. * false is returned if split_length is less than 1.
  1296. * If the split_length length exceeds the length of
  1297. * string, the entire string is returned as the first
  1298. * (and only) array element.
  1299. */
  1300. function str_split ($string, $split_length = null) {}
  1301. /**
  1302. * Search a string for any of a set of characters
  1303. * @link http://www.php.net/manual/en/function.strpbrk.php
  1304. * @param haystack string <p>
  1305. * The string where char_list is looked for.
  1306. * </p>
  1307. * @param char_list string <p>
  1308. * This parameter is case sensitive.
  1309. * </p>
  1310. * @return string a string starting from the character found, or false if it is
  1311. * not found.
  1312. */
  1313. function strpbrk ($haystack, $char_list) {}
  1314. /**
  1315. * Binary safe comparison of two strings from an offset, up to length characters
  1316. * @link http://www.php.net/manual/en/function.substr-compare.php
  1317. * @param main_str string <p>
  1318. * The main string being compared.
  1319. * </p>
  1320. * @param str string <p>
  1321. * The secondary string being compared.
  1322. * </p>
  1323. * @param offset int <p>
  1324. * The start position for the comparison. If negative, it starts counting
  1325. * from the end of the string.
  1326. * </p>
  1327. * @param length int[optional] <p>
  1328. * The length of the comparison. The default value is the largest of the
  1329. * length of the str compared to the length of
  1330. * main_str less the
  1331. * offset.
  1332. * </p>
  1333. * @param case_insensitivity bool[optional] <p>
  1334. * If case_insensitivity is true, comparison is
  1335. * case insensitive.
  1336. * </p>
  1337. * @return int &lt; 0 if main_str from position
  1338. * offset is less than str, &gt;
  1339. * 0 if it is greater than str, and 0 if they are equal.
  1340. * If offset is equal to or greater than the length of
  1341. * main_str or length is set and
  1342. * is less than 1, substr_compare prints a warning and returns
  1343. * false.
  1344. */
  1345. function substr_compare ($main_str, $str, $offset, $length = null, $case_insensitivity = null) {}
  1346. /**
  1347. * Locale based string comparison
  1348. * @link http://www.php.net/manual/en/function.strcoll.php
  1349. * @param str1 string <p>
  1350. * The first string.
  1351. * </p>
  1352. * @param str2 string <p>
  1353. * The second string.
  1354. * </p>
  1355. * @return int &lt; 0 if str1 is less than
  1356. * str2; &gt; 0 if
  1357. * str1 is greater than
  1358. * str2, and 0 if they are equal.
  1359. */
  1360. function strcoll ($str1, $str2) {}
  1361. /**
  1362. * Formats a number as a currency string
  1363. * @link http://www.php.net/manual/en/function.money-format.php
  1364. * @param format string <p>
  1365. * The format specification consists of the following sequence:
  1366. * <p>a % character</p>
  1367. * @param number float <p>
  1368. * The number to be formatted.
  1369. * </p>
  1370. * @return string the formatted string. Characters before and after the formatting
  1371. * string will be returned unchanged.
  1372. * Non-numeric number causes returning &null; and
  1373. * emitting E_WARNING.
  1374. */
  1375. function money_format ($format, $number) {}
  1376. /**
  1377. * Return part of a string
  1378. * @link http://www.php.net/manual/en/function.substr.php
  1379. * @param string string <p>
  1380. * The input string.
  1381. * </p>
  1382. * @param start int <p>
  1383. * If start is non-negative, the returned string
  1384. * will start at the start'th position in
  1385. * string, counting from zero. For instance,
  1386. * in the string 'abcdef', the character at
  1387. * position 0 is 'a', the
  1388. * character at position 2 is
  1389. * 'c', and so forth.
  1390. * </p>
  1391. * <p>
  1392. * If start is negative, the returned string
  1393. * will start at the start'th character
  1394. * from the end of string.
  1395. * </p>
  1396. * <p>
  1397. * If string is less than or equal to
  1398. * start characters long, false will be returned.
  1399. * </p>
  1400. * <p>
  1401. * Using a negative start
  1402. * ]]>
  1403. * </p>
  1404. * @param length int[optional] <p>
  1405. * If length is given and is positive, the string
  1406. * returned will contain at most length characters
  1407. * beginning from start (depending on the length of
  1408. * string).
  1409. * </p>
  1410. * <p>
  1411. * If length is given and is negative, then that many
  1412. * characters will be omitted from the end of string
  1413. * (after the start position has been calculated when a
  1414. * start is negative). If
  1415. * start denotes a position beyond this truncation,
  1416. * an empty string will be returned.
  1417. * </p>
  1418. * <p>
  1419. * If length is given and is 0,
  1420. * false or &null; an empty string will be returned.
  1421. * </p>
  1422. * Using a negative length
  1423. * ]]>
  1424. * @return string the extracted part of string&return.falseforfailure;.
  1425. */
  1426. function substr ($string, $start, $length = null) {}
  1427. /**
  1428. * Replace text within a portion of a string
  1429. * @link http://www.php.net/manual/en/function.substr-replace.php
  1430. * @param string mixed <p>
  1431. * The input string.
  1432. * </p>
  1433. * @param replacement string <p>
  1434. * The replacement string.
  1435. * </p>
  1436. * @param start int <p>
  1437. * If start is positive, the replacing will
  1438. * begin at the start'th offset into
  1439. * string.
  1440. * </p>
  1441. * <p>
  1442. * If start is negative, the replacing will
  1443. * begin at the start'th character from the
  1444. * end of string.
  1445. * </p>
  1446. * @param length int[optional] <p>
  1447. * If given and is positive, it represents the length of the portion of
  1448. * string which is to be replaced. If it is
  1449. * negative, it represents the number of characters from the end of
  1450. * string at which to stop replacing. If it
  1451. * is not given, then it will default to strlen(
  1452. * string ); i.e. end the replacing at the
  1453. * end of string. Of course, if
  1454. * length is zero then this function will have the
  1455. * effect of inserting replacement into
  1456. * string at the given
  1457. * start offset.
  1458. * </p>
  1459. * @return mixed The result string is returned. If string is an
  1460. * array then array is returned.
  1461. */
  1462. function substr_replace ($string, $replacement, $start, $length = null) {}
  1463. /**
  1464. * Quote meta characters
  1465. * @link http://www.php.net/manual/en/function.quotemeta.php
  1466. * @param str string <p>
  1467. * The input string.
  1468. * </p>
  1469. * @return string the string with meta characters quoted.
  1470. */
  1471. function quotemeta ($str) {}
  1472. /**
  1473. * Make a string's first character uppercase
  1474. * @link http://www.php.net/manual/en/function.ucfirst.php
  1475. * @param str string <p>
  1476. * The input string.
  1477. * </p>
  1478. * @return string the resulting string.
  1479. */
  1480. function ucfirst ($str) {}
  1481. /**
  1482. * Uppercase the first character of each word in a string
  1483. * @link http://www.php.net/manual/en/function.ucwords.php
  1484. * @param str string <p>
  1485. * The input string.
  1486. * </p>
  1487. * @return string the modified string.
  1488. */
  1489. function ucwords ($str) {}
  1490. /**
  1491. * Translate certain characters
  1492. * @link http://www.php.net/manual/en/function.strtr.php
  1493. * @param str string <p>
  1494. * The string being translated.
  1495. * </p>
  1496. * @param from string <p>
  1497. * The string being translated to to.
  1498. * </p>
  1499. * @param to string <p>
  1500. * The string replacing from.
  1501. * </p>
  1502. * @return string This function returns a copy of str,
  1503. * translating all occurrences of each character in
  1504. * from to the corresponding character in
  1505. * to.
  1506. */
  1507. function strtr ($str, $from, $to) {}
  1508. /**
  1509. * Quote string with slashes
  1510. * @link http://www.php.net/manual/en/function.addslashes.php
  1511. * @param str string <p>
  1512. * The string to be escaped.
  1513. * </p>
  1514. * @return string the escaped string.
  1515. */
  1516. function addslashes ($str) {}
  1517. /**
  1518. * Quote string with slashes in a C style
  1519. * @link http://www.php.net/manual/en/function.addcslashes.php
  1520. * @param str string <p>
  1521. * The string to be escaped.
  1522. * </p>
  1523. * @param charlist string <p>
  1524. * A list of characters to be escaped. If
  1525. * charlist contains characters
  1526. * \n, \r etc., they are
  1527. * converted in C-like style, while other non-alphanumeric characters
  1528. * with ASCII codes lower than 32 and higher than 126 converted to
  1529. * octal representation.
  1530. * </p>
  1531. * <p>
  1532. * When you define a sequence of characters in the charlist argument
  1533. * make sure that you know what characters come between the
  1534. * characters that you set as the start and end of the range.
  1535. * ]]>
  1536. * Also, if the first character in a range has a higher ASCII value
  1537. * than the second character in the range, no range will be
  1538. * constructed. Only the start, end and period characters will be
  1539. * escaped. Use the ord function to find the
  1540. * ASCII value for a character.
  1541. * ]]>
  1542. * </p>
  1543. * <p>
  1544. * Be careful if you choose to escape characters 0, a, b, f, n, r,
  1545. * t and v. They will be converted to \0, \a, \b, \f, \n, \r, \t
  1546. * and \v.
  1547. * In PHP \0 (NULL), \r (carriage return), \n (newline), \f (form feed),
  1548. * \v (vertical tab) and \t (tab) are predefined escape sequences,
  1549. * while in C all of these are predefined escape sequences.
  1550. * </p>
  1551. * @return string the escaped string.
  1552. */
  1553. function addcslashes ($str, $charlist) {}
  1554. /**
  1555. * Strip whitespace (or other characters) from the end of a string
  1556. * @link http://www.php.net/manual/en/function.rtrim.php
  1557. * @param str string <p>
  1558. * The input string.
  1559. * </p>
  1560. * @param charlist string[optional] <p>
  1561. * You can also specify the characters you want to strip, by means
  1562. * of the charlist parameter.
  1563. * Simply list all characters that you want to be stripped. With
  1564. * .. you can specify a range of characters.
  1565. * </p>
  1566. * @return string the modified string.
  1567. */
  1568. function rtrim ($str, $charlist = null) {}
  1569. /**
  1570. * Replace all occurrences of the search string with the replacement string
  1571. * @link http://www.php.net/manual/en/function.str-replace.php
  1572. * @param search mixed <p>
  1573. * The value being searched for, otherwise known as the needle.
  1574. * An array may be used to designate multiple needles.
  1575. * </p>
  1576. * @param replace mixed <p>
  1577. * The replacement value that replaces found search
  1578. * values. An array may be used to designate multiple replacements.
  1579. * </p>
  1580. * @param subject mixed <p>
  1581. * The string or array being searched and replaced on,
  1582. * otherwise known as the haystack.
  1583. * </p>
  1584. * <p>
  1585. * If subject is an array, then the search and
  1586. * replace is performed with every entry of
  1587. * subject, and the return value is an array as
  1588. * well.
  1589. * </p>
  1590. * @param count int[optional] If passed, this will hold the number of matched and replaced needles.
  1591. * @return mixed This function returns a string or an array with the replaced values.
  1592. */
  1593. function str_replace ($search, $replace, $subject, &$count = null) {}
  1594. /**
  1595. * Case-insensitive version of <function>str_replace</function>.
  1596. * @link http://www.php.net/manual/en/function.str-ireplace.php
  1597. * @param search mixed <p>
  1598. * Every replacement with search array is
  1599. * performed on the result of previous replacement.
  1600. * </p>
  1601. * @param replace mixed <p>
  1602. * </p>
  1603. * @param subject mixed <p>
  1604. * If subject is an array, then the search and
  1605. * replace is performed with every entry of
  1606. * subject, and the return value is an array as
  1607. * well.
  1608. * </p>
  1609. * @param count int[optional] <p>
  1610. * The number of matched and replaced needles will
  1611. * be returned in count which is passed by
  1612. * reference.
  1613. * </p>
  1614. * @return mixed a string or an array of replacements.
  1615. */
  1616. function str_ireplace ($search, $replace, $subject, &$count = null) {}
  1617. /**
  1618. * Repeat a string
  1619. * @link http://www.php.net/manual/en/function.str-repeat.php
  1620. * @param input string <p>
  1621. * The string to be repeated.
  1622. * </p>
  1623. * @param multiplier int <p>
  1624. * Number of time the input string should be
  1625. * repeated.
  1626. * </p>
  1627. * <p>
  1628. * multiplier has to be greater than or equal to 0.
  1629. * If the multiplier is set to 0, the function
  1630. * will return an empty string.
  1631. * </p>
  1632. * @return string the repeated string.
  1633. */
  1634. function str_repeat ($input, $multiplier) {}
  1635. /**
  1636. * Return information about characters used in a string
  1637. * @link http://www.php.net/manual/en/function.count-chars.php
  1638. * @param string string <p>
  1639. * The examined string.
  1640. * </p>
  1641. * @param mode int[optional] <p>
  1642. * See return values.
  1643. * </p>
  1644. * @return mixed Depending on mode
  1645. * count_chars returns one of the following:
  1646. * 0 - an array with the byte-value as key and the frequency of
  1647. * every byte as value.
  1648. * 1 - same as 0 but only byte-values with a frequency greater
  1649. * than zero are listed.
  1650. * 2 - same as 0 but only byte-values with a frequency equal to
  1651. * zero are listed.
  1652. * 3 - a string containing all unique characters is returned.
  1653. * 4 - a string containing all not used characters is returned.
  1654. */
  1655. function count_chars ($string, $mode = null) {}
  1656. /**
  1657. * Split a string into smaller chunks
  1658. * @link http://www.php.net/manual/en/function.chunk-split.php
  1659. * @param body string <p>
  1660. * The string to be chunked.
  1661. * </p>
  1662. * @param chunklen int[optional] <p>
  1663. * The chunk length.
  1664. * </p>
  1665. * @param end string[optional] <p>
  1666. * The line ending sequence.
  1667. * </p>
  1668. * @return string the chunked string.
  1669. */
  1670. function chunk_split ($body, $chunklen = null, $end = null) {}
  1671. /**
  1672. * Strip whitespace (or other characters) from the beginning and end of a string
  1673. * @link http://www.php.net/manual/en/function.trim.php
  1674. * @param str string <p>
  1675. * The string that will be trimmed.
  1676. * </p>
  1677. * @param charlist string[optional] <p>
  1678. * Optionally, the stripped characters can also be specified using
  1679. * the charlist parameter.
  1680. * Simply list all characters that you want to be stripped. With
  1681. * .. you can specify a range of characters.
  1682. * </p>
  1683. * @return string The trimmed string.
  1684. */
  1685. function trim ($str, $charlist = null) {}
  1686. /**
  1687. * Strip whitespace (or other characters) from the beginning of a string
  1688. * @link http://www.php.net/manual/en/function.ltrim.php
  1689. * @param str string <p>
  1690. * The input string.
  1691. * </p>
  1692. * @param charlist string[optional] <p>
  1693. * You can also specify the characters you want to strip, by means of the
  1694. * charlist parameter.
  1695. * Simply list all characters that you want to be stripped. With
  1696. * .. you can specify a range of characters.
  1697. * </p>
  1698. * @return string This function returns a string with whitespace stripped from the
  1699. * beginning of str.
  1700. * Without the second parameter,
  1701. * ltrim will strip these characters:
  1702. * " " (ASCII 32
  1703. * (0x20)), an ordinary space.
  1704. * "\t" (ASCII 9
  1705. * (0x09)), a tab.
  1706. * "\n" (ASCII 10
  1707. * (0x0A)), a new line (line feed).
  1708. * "\r" (ASCII 13
  1709. * (0x0D)), a carriage return.
  1710. * "\0" (ASCII 0
  1711. * (0x00)), the NUL-byte.
  1712. * "\x0B" (ASCII 11
  1713. * (0x0B)), a vertical tab.
  1714. */
  1715. function ltrim ($str, $charlist = null) {}
  1716. /**
  1717. * Strip HTML and PHP tags from a string
  1718. * @link http://www.php.net/manual/en/function.strip-tags.php
  1719. * @param str string <p>
  1720. * The input string.
  1721. * </p>
  1722. * @param allowable_tags string[optional] <p>
  1723. * You can use the optional second parameter to specify tags which should
  1724. * not be stripped.
  1725. * </p>
  1726. * <p>
  1727. * HTML comments and PHP tags are also stripped. This is hardcoded and
  1728. * can not be changed with allowable_tags.
  1729. * </p>
  1730. * @return string the stripped string.
  1731. */
  1732. function strip_tags ($str, $allowable_tags = null) {}
  1733. /**
  1734. * Calculate the similarity between two strings
  1735. * @link http://www.php.net/manual/en/function.similar-text.php
  1736. * @param first string <p>
  1737. * The first string.
  1738. * </p>
  1739. * @param second string <p>
  1740. * The second string.
  1741. * </p>
  1742. * @param percent float[optional] <p>
  1743. * By passing a reference as third argument,
  1744. * similar_text will calculate the similarity in
  1745. * percent for you.
  1746. * </p>
  1747. * @return int the number of matching chars in both strings.
  1748. */
  1749. function similar_text ($first, $second, &$percent = null) {}
  1750. /**
  1751. * Split a string by string
  1752. * @link http://www.php.net/manual/en/function.explode.php
  1753. * @param delimiter string <p>
  1754. * The boundary string.
  1755. * </p>
  1756. * @param string string <p>
  1757. * The input string.
  1758. * </p>
  1759. * @param limit int[optional] <p>
  1760. * If limit is set and positive, the returned array will contain
  1761. * a maximum of limit elements with the last
  1762. * element containing the rest of string.
  1763. * </p>
  1764. * <p>
  1765. * If the limit parameter is negative, all components
  1766. * except the last -limit are returned.
  1767. * </p>
  1768. * <p>
  1769. * If the limit parameter is zero, then this is treated as 1.
  1770. * </p>
  1771. * @return array If delimiter is an empty string (""),
  1772. * explode will return false.
  1773. * If delimiter contains a value that is not
  1774. * contained in string and a negative
  1775. * limit is used, then an empty array will be
  1776. * returned. For any other limit, an array containing
  1777. * string will be returned.
  1778. */
  1779. function explode ($delimiter, $string, $limit = null) {}
  1780. /**
  1781. * Join array elements with a string
  1782. * @link http://www.php.net/manual/en/function.implode.php
  1783. * @param glue string <p>
  1784. * Defaults to an empty string. This is not the preferred usage of
  1785. * implode as glue would be
  1786. * the second parameter and thus, the bad prototype would be used.
  1787. * </p>
  1788. * @param pieces array <p>
  1789. * The array of strings to implode.
  1790. * </p>
  1791. * @return string a string containing a string representation of all the array
  1792. * elements in the same order, with the glue string between each element.
  1793. */
  1794. function implode ($glue, array $pieces) {}
  1795. /**
  1796. * Set locale information
  1797. * @link http://www.php.net/manual/en/function.setlocale.php
  1798. * @param category int <p>
  1799. * category is a named constant specifying the
  1800. * category of the functions affected by the locale setting:
  1801. * LC_ALL for all of the below
  1802. * @param locale string <p>
  1803. * If locale is &null; or the empty string
  1804. * "", the locale names will be set from the
  1805. * values of environment variables with the same names as the above
  1806. * categories, or from "LANG".
  1807. * </p>
  1808. * <p>
  1809. * If locale is "0",
  1810. * the locale setting is not affected, only the current setting is returned.
  1811. * </p>
  1812. * <p>
  1813. * If locale is an array or followed by additional
  1814. * parameters then each array element or parameter is tried to be set as
  1815. * new locale until success. This is useful if a locale is known under
  1816. * different names on different systems or for providing a fallback
  1817. * for a possibly not available locale.
  1818. * </p>
  1819. * @param _ string[optional]
  1820. * @return string the new current locale, or false if the locale functionality is
  1821. * not implemented on your platform, the specified locale does not exist or
  1822. * the category name is invalid.
  1823. * </p>
  1824. * <p>
  1825. * An invalid category name also causes a warning message. Category/locale
  1826. * names can be found in RFC 1766
  1827. * and ISO 639.
  1828. * Different systems have different naming schemes for locales.
  1829. * </p>
  1830. * <p>
  1831. * The return value of setlocale depends
  1832. * on the system that PHP is running. It returns exactly
  1833. * what the system setlocale function returns.
  1834. */
  1835. function setlocale ($category, $locale, $_ = null) {}
  1836. /**
  1837. * Get numeric formatting information
  1838. * @link http://www.php.net/manual/en/function.localeconv.php
  1839. * @return array localeconv returns data based upon the current locale
  1840. * as set by setlocale. The associative array that is
  1841. * returned contains the following fields:
  1842. * <tr valign="top">
  1843. * <td>Array element</td>
  1844. * <td>Description</td>
  1845. * </tr>
  1846. * <tr valign="top">
  1847. * <td>decimal_point</td>
  1848. * <td>Decimal point character</td>
  1849. * </tr>
  1850. * <tr valign="top">
  1851. * <td>thousands_sep</td>
  1852. * <td>Thousands separator</td>
  1853. * </tr>
  1854. * <tr valign="top">
  1855. * <td>grouping</td>
  1856. * <td>Array containing numeric groupings</td>
  1857. * </tr>
  1858. * <tr valign="top">
  1859. * <td>int_curr_symbol</td>
  1860. * <td>International currency symbol (i.e. USD)</td>
  1861. * </tr>
  1862. * <tr valign="top">
  1863. * <td>currency_symbol</td>
  1864. * <td>Local currency symbol (i.e. $)</td>
  1865. * </tr>
  1866. * <tr valign="top">
  1867. * <td>mon_decimal_point</td>
  1868. * <td>Monetary decimal point character</td>
  1869. * </tr>
  1870. * <tr valign="top">
  1871. * <td>mon_thousands_sep</td>
  1872. * <td>Monetary thousands separator</td>
  1873. * </tr>
  1874. * <tr valign="top">
  1875. * <td>mon_grouping</td>
  1876. * <td>Array containing monetary groupings</td>
  1877. * </tr>
  1878. * <tr valign="top">
  1879. * <td>positive_sign</td>
  1880. * <td>Sign for positive values</td>
  1881. * </tr>
  1882. * <tr valign="top">
  1883. * <td>negative_sign</td>
  1884. * <td>Sign for negative values</td>
  1885. * </tr>
  1886. * <tr valign="top">
  1887. * <td>int_frac_digits</td>
  1888. * <td>International fractional digits</td>
  1889. * </tr>
  1890. * <tr valign="top">
  1891. * <td>frac_digits</td>
  1892. * <td>Local fractional digits</td>
  1893. * </tr>
  1894. * <tr valign="top">
  1895. * <td>p_cs_precedes</td>
  1896. * <td>
  1897. * true if currency_symbol precedes a positive value, false
  1898. * if it succeeds one
  1899. * </td>
  1900. * </tr>
  1901. * <tr valign="top">
  1902. * <td>p_sep_by_space</td>
  1903. * <td>
  1904. * true if a space separates currency_symbol from a positive
  1905. * value, false otherwise
  1906. * </td>
  1907. * </tr>
  1908. * <tr valign="top">
  1909. * <td>n_cs_precedes</td>
  1910. * <td>
  1911. * true if currency_symbol precedes a negative value, false
  1912. * if it succeeds one
  1913. * </td>
  1914. * </tr>
  1915. * <tr valign="top">
  1916. * <td>n_sep_by_space</td>
  1917. * <td>
  1918. * true if a space separates currency_symbol from a negative
  1919. * value, false otherwise
  1920. * </td>
  1921. * </tr>
  1922. * <td>p_sign_posn</td>
  1923. * <td>
  1924. * 0 - Parentheses surround the quantity and currency_symbol
  1925. * 1 - The sign string precedes the quantity and currency_symbol
  1926. * 2 - The sign string succeeds the quantity and currency_symbol
  1927. * 3 - The sign string immediately precedes the currency_symbol
  1928. * 4 - The sign string immediately succeeds the currency_symbol
  1929. * </td>
  1930. * </tr>
  1931. * <td>n_sign_posn</td>
  1932. * <td>
  1933. * 0 - Parentheses surround the quantity and currency_symbol
  1934. * 1 - The sign string precedes the quantity and currency_symbol
  1935. * 2 - The sign string succeeds the quantity and currency_symbol
  1936. * 3 - The sign string immediately precedes the currency_symbol
  1937. * 4 - The sign string immediately succeeds the currency_symbol
  1938. * </td>
  1939. * </tr>
  1940. * </p>
  1941. * <p>
  1942. * The p_sign_posn, and n_sign_posn contain a string
  1943. * of formatting options. Each number representing one of the above listed conditions.
  1944. * </p>
  1945. * <p>
  1946. * The grouping fields contain arrays that define the way numbers should be
  1947. * grouped. For example, the monetary grouping field for the nl_NL locale (in
  1948. * UTF-8 mode with the euro sign), would contain a 2 item array with the
  1949. * values 3 and 3. The higher the index in the array, the farther left the
  1950. * grouping is. If an array element is equal to CHAR_MAX,
  1951. * no further grouping is done. If an array element is equal to 0, the previous
  1952. * element should be used.
  1953. */
  1954. function localeconv () {}
  1955. /**
  1956. * Query language and locale information
  1957. * @link http://www.php.net/manual/en/function.nl-langinfo.php
  1958. * @param item int <p>
  1959. * item may be an integer value of the element or the
  1960. * constant name of the element. The following is a list of constant names
  1961. * for item that may be used and their description.
  1962. * Some of these constants may not be defined or hold no value for certain
  1963. * locales.
  1964. * <table>
  1965. * nl_langinfo Constants
  1966. * <tr valign="top">
  1967. * <td>Constant</td>
  1968. * <td>Description</td>
  1969. * </tr>
  1970. * <tr valign="top">
  1971. * LC_TIME Category Constants</td>
  1972. * </tr>
  1973. * <tr valign="top">
  1974. * <td>ABDAY_(1-7)</td>
  1975. * <td>Abbreviated name of n-th day of the week.</td>
  1976. * </tr>
  1977. * <tr valign="top">
  1978. * <td>DAY_(1-7)</td>
  1979. * <td>Name of the n-th day of the week (DAY_1 = Sunday).</td>
  1980. * </tr>
  1981. * <tr valign="top">
  1982. * <td>ABMON_(1-12)</td>
  1983. * <td>Abbreviated name of the n-th month of the year.</td>
  1984. * </tr>
  1985. * <tr valign="top">
  1986. * <td>MON_(1-12)</td>
  1987. * <td>Name of the n-th month of the year.</td>
  1988. * </tr>
  1989. * <tr valign="top">
  1990. * <td>AM_STR</td>
  1991. * <td>String for Ante meridian.</td>
  1992. * </tr>
  1993. * <tr valign="top">
  1994. * <td>PM_STR</td>
  1995. * <td>String for Post meridian.</td>
  1996. * </tr>
  1997. * <tr valign="top">
  1998. * <td>D_T_FMT</td>
  1999. * <td>String that can be used as the format string for strftime to represent time and date.</td>
  2000. * </tr>
  2001. * <tr valign="top">
  2002. * <td>D_FMT</td>
  2003. * <td>String that can be used as the format string for strftime to represent date.</td>
  2004. * </tr>
  2005. * <tr valign="top">
  2006. * <td>T_FMT</td>
  2007. * <td>String that can be used as the format string for strftime to represent time.</td>
  2008. * </tr>
  2009. * <tr valign="top">
  2010. * <td>T_FMT_AMPM</td>
  2011. * <td>String that can be used as the format string for strftime to represent time in 12-hour format with ante/post meridian.</td>
  2012. * </tr>
  2013. * <tr valign="top">
  2014. * <td>ERA</td>
  2015. * <td>Alternate era.</td>
  2016. * </tr>
  2017. * <tr valign="top">
  2018. * <td>ERA_YEAR</td>
  2019. * <td>Year in alternate era format.</td>
  2020. * </tr>
  2021. * <tr valign="top">
  2022. * <td>ERA_D_T_FMT</td>
  2023. * <td>Date and time in alternate era format (string can be used in strftime).</td>
  2024. * </tr>
  2025. * <tr valign="top">
  2026. * <td>ERA_D_FMT</td>
  2027. * <td>Date in alternate era format (string can be used in strftime).</td>
  2028. * </tr>
  2029. * <tr valign="top">
  2030. * <td>ERA_T_FMT</td>
  2031. * <td>Time in alternate era format (string can be used in strftime).</td>
  2032. * </tr>
  2033. * <tr valign="top">
  2034. * LC_MONETARY Category Constants</td>
  2035. * </tr>
  2036. * <tr valign="top">
  2037. * <td>INT_CURR_SYMBOL</td>
  2038. * <td>International currency symbol.</td>
  2039. * </tr>
  2040. * <tr valign="top">
  2041. * <td>CURRENCY_SYMBOL</td>
  2042. * <td>Local currency symbol.</td>
  2043. * </tr>
  2044. * <tr valign="top">
  2045. * <td>CRNCYSTR</td>
  2046. * <td>Same value as CURRENCY_SYMBOL.</td>
  2047. * </tr>
  2048. * <tr valign="top">
  2049. * <td>MON_DECIMAL_POINT</td>
  2050. * <td>Decimal point character.</td>
  2051. * </tr>
  2052. * <tr valign="top">
  2053. * <td>MON_THOUSANDS_SEP</td>
  2054. * <td>Thousands separator (groups of three digits).</td>
  2055. * </tr>
  2056. * <tr valign="top">
  2057. * <td>MON_GROUPING</td>
  2058. * <td>Like "grouping" element.</td>
  2059. * </tr>
  2060. * <tr valign="top">
  2061. * <td>POSITIVE_SIGN</td>
  2062. * <td>Sign for positive values.</td>
  2063. * </tr>
  2064. * <tr valign="top">
  2065. * <td>NEGATIVE_SIGN</td>
  2066. * <td>Sign for negative values.</td>
  2067. * </tr>
  2068. * <tr valign="top">
  2069. * <td>INT_FRAC_DIGITS</td>
  2070. * <td>International fractional digits.</td>
  2071. * </tr>
  2072. * <tr valign="top">
  2073. * <td>FRAC_DIGITS</td>
  2074. * <td>Local fractional digits.</td>
  2075. * </tr>
  2076. * <tr valign="top">
  2077. * <td>P_CS_PRECEDES</td>
  2078. * <td>Returns 1 if CURRENCY_SYMBOL precedes a positive value.</td>
  2079. * </tr>
  2080. * <tr valign="top">
  2081. * <td>P_SEP_BY_SPACE</td>
  2082. * <td>Returns 1 if a space separates CURRENCY_SYMBOL from a positive value.</td>
  2083. * </tr>
  2084. * <tr valign="top">
  2085. * <td>N_CS_PRECEDES</td>
  2086. * <td>Returns 1 if CURRENCY_SYMBOL precedes a negative value.</td>
  2087. * </tr>
  2088. * <tr valign="top">
  2089. * <td>N_SEP_BY_SPACE</td>
  2090. * <td>Returns 1 if a space separates CURRENCY_SYMBOL from a negative value.</td>
  2091. * </tr>
  2092. * <tr valign="top">
  2093. * <td>P_SIGN_POSN</td>
  2094. * Returns 0 if parentheses surround the quantity and CURRENCY_SYMBOL.
  2095. * @return string the element as a string, or false if item
  2096. * is not valid.
  2097. */
  2098. function nl_langinfo ($item) {}
  2099. /**
  2100. * Calculate the soundex key of a string
  2101. * @link http://www.php.net/manual/en/function.soundex.php
  2102. * @param str string <p>
  2103. * The input string.
  2104. * </p>
  2105. * @return string the soundex key as a string.
  2106. */
  2107. function soundex ($str) {}
  2108. /**
  2109. * Calculate Levenshtein distance between two strings
  2110. * @link http://www.php.net/manual/en/function.levenshtein.php
  2111. * @param str1 string <p>
  2112. * One of the strings being evaluated for Levenshtein distance.
  2113. * </p>
  2114. * @param str2 string <p>
  2115. * One of the strings being evaluated for Levenshtein distance.
  2116. * </p>
  2117. * @return int This function returns the Levenshtein-Distance between the
  2118. * two argument strings or -1, if one of the argument strings
  2119. * is longer than the limit of 255 characters.
  2120. */
  2121. function levenshtein ($str1, $str2) {}
  2122. /**
  2123. * Return a specific character
  2124. * @link http://www.php.net/manual/en/function.chr.php
  2125. * @param ascii int <p>
  2126. * The ascii code.
  2127. * </p>
  2128. * @return string the specified character.
  2129. */
  2130. function chr ($ascii) {}
  2131. /**
  2132. * Return ASCII value of character
  2133. * @link http://www.php.net/manual/en/function.ord.php
  2134. * @param string string <p>
  2135. * A character.
  2136. * </p>
  2137. * @return int the ASCII value as an integer.
  2138. */
  2139. function ord ($string) {}
  2140. /**
  2141. * Parses the string into variables
  2142. * @link http://www.php.net/manual/en/function.parse-str.php
  2143. * @param str string <p>
  2144. * The input string.
  2145. * </p>
  2146. * @param arr array[optional] <p>
  2147. * If the second parameter arr is present,
  2148. * variables are stored in this variable as array elements instead.
  2149. * </p>
  2150. * @return void
  2151. */
  2152. function parse_str ($str, array &$arr = null) {}
  2153. /**
  2154. * Pad a string to a certain length with another string
  2155. * @link http://www.php.net/manual/en/function.str-pad.php
  2156. * @param input string <p>
  2157. * The input string.
  2158. * </p>
  2159. * @param pad_length int <p>
  2160. * If the value of pad_length is negative,
  2161. * less than, or equal to the length of the input string, no padding
  2162. * takes place.
  2163. * </p>
  2164. * @param pad_string string[optional] <p>
  2165. * The pad_string may be truncated if the
  2166. * required number of padding characters can't be evenly divided by the
  2167. * pad_string's length.
  2168. * </p>
  2169. * @param pad_type int[optional] <p>
  2170. * Optional argument pad_type can be
  2171. * STR_PAD_RIGHT, STR_PAD_LEFT,
  2172. * or STR_PAD_BOTH. If
  2173. * pad_type is not specified it is assumed to be
  2174. * STR_PAD_RIGHT.
  2175. * </p>
  2176. * @return string the padded string.
  2177. */
  2178. function str_pad ($input, $pad_length, $pad_string = null, $pad_type = null) {}
  2179. /**
  2180. * &Alias; <function>rtrim</function>
  2181. * @link http://www.php.net/manual/en/function.chop.php
  2182. * @param str
  2183. * @param character_mask[optional]
  2184. */
  2185. function chop ($str, $character_mask) {}
  2186. /**
  2187. * &Alias; <function>strstr</function>
  2188. * @link http://www.php.net/manual/en/function.strchr.php
  2189. * @param haystack
  2190. * @param needle
  2191. */
  2192. function strchr ($haystack, $needle) {}
  2193. /**
  2194. * Return a formatted string
  2195. * @link http://www.php.net/manual/en/function.sprintf.php
  2196. * @param format string <p>
  2197. * The format string is composed of zero or more directives:
  2198. * ordinary characters (excluding %) that are
  2199. * copied directly to the result, and conversion
  2200. * specifications, each of which results in fetching its
  2201. * own parameter. This applies to both sprintf
  2202. * and printf.
  2203. * </p>
  2204. * <p>
  2205. * Each conversion specification consists of a percent sign
  2206. * (%), followed by one or more of these
  2207. * elements, in order:
  2208. * An optional sign specifier that forces a sign
  2209. * (- or +) to be used on a number. By default, only the - sign is used
  2210. * on a number if it's negative. This specifier forces positive numbers
  2211. * to have the + sign attached as well, and was added in PHP 4.3.0.
  2212. * @param args mixed[optional] <p>
  2213. * </p>
  2214. * @param _ mixed[optional]
  2215. * @return string a string produced according to the formatting string
  2216. * format.
  2217. */
  2218. function sprintf ($format, $args = null, $_ = null) {}
  2219. /**
  2220. * Output a formatted string
  2221. * @link http://www.php.net/manual/en/function.printf.php
  2222. * @param format string <p>
  2223. * See sprintf for a description of
  2224. * format.
  2225. * </p>
  2226. * @param args mixed[optional] <p>
  2227. * </p>
  2228. * @param _ mixed[optional]
  2229. * @return int the length of the outputted string.
  2230. */
  2231. function printf ($format, $args = null, $_ = null) {}
  2232. /**
  2233. * Output a formatted string
  2234. * @link http://www.php.net/manual/en/function.vprintf.php
  2235. * @param format string <p>
  2236. * See sprintf for a description of
  2237. * format.
  2238. * </p>
  2239. * @param args array <p>
  2240. * </p>
  2241. * @return int the length of the outputted string.
  2242. */
  2243. function vprintf ($format, array $args) {}
  2244. /**
  2245. * Return a formatted string
  2246. * @link http://www.php.net/manual/en/function.vsprintf.php
  2247. * @param format string <p>
  2248. * See sprintf for a description of
  2249. * format.
  2250. * </p>
  2251. * @param args array <p>
  2252. * </p>
  2253. * @return string Return array values as a formatted string according to
  2254. * format (which is described in the documentation
  2255. * for sprintf).
  2256. */
  2257. function vsprintf ($format, array $args) {}
  2258. /**
  2259. * Write a formatted string to a stream
  2260. * @link http://www.php.net/manual/en/function.fprintf.php
  2261. * @param handle resource &fs.file.pointer;
  2262. * @param format string <p>
  2263. * See sprintf for a description of
  2264. * format.
  2265. * </p>
  2266. * @param args mixed[optional] <p>
  2267. * </p>
  2268. * @param _ mixed[optional]
  2269. * @return int the length of the string written.
  2270. */
  2271. function fprintf ($handle, $format, $args = null, $_ = null) {}
  2272. /**
  2273. * Write a formatted string to a stream
  2274. * @link http://www.php.net/manual/en/function.vfprintf.php
  2275. * @param handle resource <p>
  2276. * </p>
  2277. * @param format string <p>
  2278. * See sprintf for a description of
  2279. * format.
  2280. * </p>
  2281. * @param args array <p>
  2282. * </p>
  2283. * @return int the length of the outputted string.
  2284. */
  2285. function vfprintf ($handle, $format, array $args) {}
  2286. /**
  2287. * Parses input from a string according to a format
  2288. * @link http://www.php.net/manual/en/function.sscanf.php
  2289. * @param str string <p>
  2290. * The input string being parsed.
  2291. * </p>
  2292. * @param format string <p>
  2293. * The interpreted format for str, which is
  2294. * described in the documentation for sprintf with
  2295. * following differences:
  2296. * Function is not locale-aware.
  2297. * F, g, G and
  2298. * b are not supported.
  2299. * D stands for decimal number.
  2300. * i stands for integer with base detection.
  2301. * n stands for number of characters processed so far.
  2302. * </p>
  2303. * @param _ mixed[optional]
  2304. * @return mixed If only
  2305. * two parameters were passed to this function, the values parsed
  2306. * will be returned as an array. Otherwise, if optional parameters are passed,
  2307. * the function will return the number of assigned values. The optional
  2308. * parameters must be passed by reference.
  2309. */
  2310. function sscanf ($str, $format, &$_ = null) {}
  2311. /**
  2312. * Parses input from a file according to a format
  2313. * @link http://www.php.net/manual/en/function.fscanf.php
  2314. * @param handle resource &fs.file.pointer;
  2315. * @param format string <p>
  2316. * The specified format as described in the
  2317. * sprintf documentation.
  2318. * </p>
  2319. * @param _ mixed[optional]
  2320. * @return mixed If only two parameters were passed to this function, the values parsed will be
  2321. * returned as an array. Otherwise, if optional parameters are passed, the
  2322. * function will return the number of assigned values. The optional
  2323. * parameters must be passed by reference.
  2324. */
  2325. function fscanf ($handle, $format, &$_ = null) {}
  2326. /**
  2327. * Parse a URL and return its components
  2328. * @link http://www.php.net/manual/en/function.parse-url.php
  2329. * @param url string <p>
  2330. * The URL to parse. Invalid characters are replaced by
  2331. * _.
  2332. * </p>
  2333. * @param component int[optional] <p>
  2334. * Specify one of PHP_URL_SCHEME,
  2335. * PHP_URL_HOST, PHP_URL_PORT,
  2336. * PHP_URL_USER, PHP_URL_PASS,
  2337. * PHP_URL_PATH, PHP_URL_QUERY
  2338. * or PHP_URL_FRAGMENT to retrieve just a specific
  2339. * URL component as a string.
  2340. * </p>
  2341. * @return mixed On seriously malformed URLs, parse_url may return
  2342. * false and emit a E_WARNING. Otherwise an associative
  2343. * array is returned, whose components may be (at least one):
  2344. * scheme - e.g. http
  2345. * host
  2346. * port
  2347. * user
  2348. * pass
  2349. * path
  2350. * query - after the question mark ?
  2351. * fragment - after the hashmark #
  2352. * </p>
  2353. * <p>
  2354. * If the component parameter is specified a
  2355. * string is returned instead of an array.
  2356. */
  2357. function parse_url ($url, $component = null) {}
  2358. /**
  2359. * URL-encodes string
  2360. * @link http://www.php.net/manual/en/function.urlencode.php
  2361. * @param str string <p>
  2362. * The string to be encoded.
  2363. * </p>
  2364. * @return string a string in which all non-alphanumeric characters except
  2365. * -_. have been replaced with a percent
  2366. * (%) sign followed by two hex digits and spaces encoded
  2367. * as plus (+) signs. It is encoded the same way that the
  2368. * posted data from a WWW form is encoded, that is the same way as in
  2369. * application/x-www-form-urlencoded media type. This
  2370. * differs from the RFC 1738 encoding (see
  2371. * rawurlencode) in that for historical reasons, spaces
  2372. * are encoded as plus (+) signs.
  2373. */
  2374. function urlencode ($str) {}
  2375. /**
  2376. * Decodes URL-encoded string
  2377. * @link http://www.php.net/manual/en/function.urldecode.php
  2378. * @param str string <p>
  2379. * The string to be decoded.
  2380. * </p>
  2381. * @return string the decoded string.
  2382. */
  2383. function urldecode ($str) {}
  2384. /**
  2385. * URL-encode according to RFC 1738
  2386. * @link http://www.php.net/manual/en/function.rawurlencode.php
  2387. * @param str string <p>
  2388. * The URL to be encoded.
  2389. * </p>
  2390. * @return string a string in which all non-alphanumeric characters except
  2391. * -_. have been replaced with a percent
  2392. * (%) sign followed by two hex digits. This is the
  2393. * encoding described in RFC 1738 for
  2394. * protecting literal characters from being interpreted as special URL
  2395. * delimiters, and for protecting URLs from being mangled by transmission
  2396. * media with character conversions (like some email systems).
  2397. */
  2398. function rawurlencode ($str) {}
  2399. /**
  2400. * Decode URL-encoded strings
  2401. * @link http://www.php.net/manual/en/function.rawurldecode.php
  2402. * @param str string <p>
  2403. * The URL to be decoded.
  2404. * </p>
  2405. * @return string the decoded URL, as a string.
  2406. */
  2407. function rawurldecode ($str) {}
  2408. /**
  2409. * Generate URL-encoded query string
  2410. * @link http://www.php.net/manual/en/function.http-build-query.php
  2411. * @param formdata array <p>
  2412. * May be an array or object containing properties.
  2413. * </p>
  2414. * <p>
  2415. * The array form may be a simple one-dimensional structure, or an array
  2416. * of arrays (who in turn may contain other arrays).
  2417. * </p>
  2418. * @param numeric_prefix string[optional] <p>
  2419. * If numeric indices are used in the base array and this parameter is
  2420. * provided, it will be prepended to the numeric index for elements in
  2421. * the base array only.
  2422. * </p>
  2423. * <p>
  2424. * This is meant to allow for legal variable names when the data is
  2425. * decoded by PHP or another CGI application later on.
  2426. * </p>
  2427. * @param arg_separator string[optional] <p>
  2428. * arg_separator.output
  2429. * is used to separate arguments, unless this parameter is specified,
  2430. * and is then used.
  2431. * </p>
  2432. * @return string a URL-encoded string.
  2433. */
  2434. function http_build_query (array $formdata, $numeric_prefix = null, $arg_separator = null) {}
  2435. /**
  2436. * Returns the target of a symbolic link
  2437. * @link http://www.php.net/manual/en/function.readlink.php
  2438. * @param path string <p>
  2439. * The symbolic link path.
  2440. * </p>
  2441. * @return string the contents of the symbolic link path or false on error.
  2442. */
  2443. function readlink ($path) {}
  2444. /**
  2445. * Gets information about a link
  2446. * @link http://www.php.net/manual/en/function.linkinfo.php
  2447. * @param path string <p>
  2448. * Path to the link.
  2449. * </p>
  2450. * @return int linkinfo returns the st_dev field
  2451. * of the Unix C stat structure returned by the lstat
  2452. * system call. Returns 0 or false in case of error.
  2453. */
  2454. function linkinfo ($path) {}
  2455. /**
  2456. * @param target
  2457. * @param link
  2458. */
  2459. function symlink ($target, $link) {}
  2460. /**
  2461. * Create a hard link
  2462. * @link http://www.php.net/manual/en/function.link.php
  2463. * @param from_path string <p>
  2464. * The link name.
  2465. * </p>
  2466. * @param to_path string <p>
  2467. * Target of the link.
  2468. * </p>
  2469. * @return bool Returns true on success or false on failure.
  2470. */
  2471. function link ($from_path, $to_path) {}
  2472. /**
  2473. * Deletes a file
  2474. * @link http://www.php.net/manual/en/function.unlink.php
  2475. * @param filename string <p>
  2476. * Path to the file.
  2477. * </p>
  2478. * @param context resource[optional] &note.context-support;
  2479. * @return bool Returns true on success or false on failure.
  2480. */
  2481. function unlink ($filename, $context = null) {}
  2482. /**
  2483. * Execute an external program
  2484. * @link http://www.php.net/manual/en/function.exec.php
  2485. * @param command string <p>
  2486. * The command that will be executed.
  2487. * </p>
  2488. * @param output array[optional] <p>
  2489. * If the output argument is present, then the
  2490. * specified array will be filled with every line of output from the
  2491. * command. Trailing whitespace, such as \n, is not
  2492. * included in this array. Note that if the array already contains some
  2493. * elements, exec will append to the end of the array.
  2494. * If you do not want the function to append elements, call
  2495. * unset on the array before passing it to
  2496. * exec.
  2497. * </p>
  2498. * @param return_var int[optional] <p>
  2499. * If the return_var argument is present
  2500. * along with the output argument, then the
  2501. * return status of the executed command will be written to this
  2502. * variable.
  2503. * </p>
  2504. * @return string The last line from the result of the command. If you need to execute a
  2505. * command and have all the data from the command passed directly back without
  2506. * any interference, use the passthru function.
  2507. * </p>
  2508. * <p>
  2509. * To get the output of the executed command, be sure to set and use the
  2510. * output parameter.
  2511. */
  2512. function exec ($command, array &$output = null, &$return_var = null) {}
  2513. /**
  2514. * Execute an external program and display the output
  2515. * @link http://www.php.net/manual/en/function.system.php
  2516. * @param command string <p>
  2517. * The command that will be executed.
  2518. * </p>
  2519. * @param return_var int[optional] <p>
  2520. * If the return_var argument is present, then the
  2521. * return status of the executed command will be written to this
  2522. * variable.
  2523. * </p>
  2524. * @return string the last line of the command output on success, and false
  2525. * on failure.
  2526. */
  2527. function system ($command, &$return_var = null) {}
  2528. /**
  2529. * Escape shell metacharacters
  2530. * @link http://www.php.net/manual/en/function.escapeshellcmd.php
  2531. * @param command string <p>
  2532. * The command that will be escaped.
  2533. * </p>
  2534. * @return string The escaped string.
  2535. */
  2536. function escapeshellcmd ($command) {}
  2537. /**
  2538. * Escape a string to be used as a shell argument
  2539. * @link http://www.php.net/manual/en/function.escapeshellarg.php
  2540. * @param arg string <p>
  2541. * The argument that will be escaped.
  2542. * </p>
  2543. * @return string The escaped string.
  2544. */
  2545. function escapeshellarg ($arg) {}
  2546. /**
  2547. * Execute an external program and display raw output
  2548. * @link http://www.php.net/manual/en/function.passthru.php
  2549. * @param command string <p>
  2550. * The command that will be executed.
  2551. * </p>
  2552. * @param return_var int[optional] <p>
  2553. * If the return_var argument is present, the
  2554. * return status of the Unix command will be placed here.
  2555. * </p>
  2556. * @return void
  2557. */
  2558. function passthru ($command, &$return_var = null) {}
  2559. /**
  2560. * Execute command via shell and return the complete output as a string
  2561. * @link http://www.php.net/manual/en/function.shell-exec.php
  2562. * @param cmd string <p>
  2563. * The command that will be executed.
  2564. * </p>
  2565. * @return string The output from the executed command.
  2566. */
  2567. function shell_exec ($cmd) {}
  2568. /**
  2569. * Execute a command and open file pointers for input/output
  2570. * @link http://www.php.net/manual/en/function.proc-open.php
  2571. * @param cmd string <p>
  2572. * The command to execute
  2573. * </p>
  2574. * @param descriptorspec array <p>
  2575. * An indexed array where the key represents the descriptor number and the
  2576. * value represents how PHP will pass that descriptor to the child
  2577. * process. 0 is stdin, 1 is stdout, while 2 is stderr.
  2578. * </p>
  2579. * <p>
  2580. * Each element can be:
  2581. * An array describing the pipe to pass to the process. The first
  2582. * element is the descriptor type and the second element is an option for
  2583. * the given type. Valid types are pipe (the second
  2584. * element is either r to pass the read end of the pipe
  2585. * to the process, or w to pass the write end) and
  2586. * file (the second element is a filename).
  2587. * A stream resource representing a real file descriptor (e.g. opened file,
  2588. * a socket, STDIN).
  2589. * </p>
  2590. * <p>
  2591. * The file descriptor numbers are not limited to 0, 1 and 2 - you may
  2592. * specify any valid file descriptor number and it will be passed to the
  2593. * child process. This allows your script to interoperate with other
  2594. * scripts that run as "co-processes". In particular, this is useful for
  2595. * passing passphrases to programs like PGP, GPG and openssl in a more
  2596. * secure manner. It is also useful for reading status information
  2597. * provided by those programs on auxiliary file descriptors.
  2598. * </p>
  2599. * @param pipes array <p>
  2600. * Will be set to an indexed array of file pointers that correspond to
  2601. * PHP's end of any pipes that are created.
  2602. * </p>
  2603. * @param cwd string[optional] <p>
  2604. * The initial working dir for the command. This must be an
  2605. * absolute directory path, or &null;
  2606. * if you want to use the default value (the working dir of the current
  2607. * PHP process)
  2608. * </p>
  2609. * @param env array[optional] <p>
  2610. * An array with the environment variables for the command that will be
  2611. * run, or &null; to use the same environment as the current PHP process
  2612. * </p>
  2613. * @param other_options array[optional] <p>
  2614. * Allows you to specify additional options. Currently supported options
  2615. * include:
  2616. * suppress_errors (windows only): suppresses errors
  2617. * generated by this function when it's set to true
  2618. * bypass_shell (windows only): bypass
  2619. * cmd.exe shell when set to true
  2620. * context: stream context used when opening files
  2621. * (created with stream_context_create)
  2622. * binary_pipes: open pipes in binary mode, instead
  2623. * of using the usual stream_encoding
  2624. * </p>
  2625. * @return resource a resource representing the process, which should be freed using
  2626. * proc_close when you are finished with it. On failure
  2627. * returns false.
  2628. */
  2629. function proc_open ($cmd, array $descriptorspec, array &$pipes, $cwd = null, array $env = null, array $other_options = null) {}
  2630. /**
  2631. * Close a process opened by <function>proc_open</function> and return the exit code of that process
  2632. * @link http://www.php.net/manual/en/function.proc-close.php
  2633. * @param process resource <p>
  2634. * The proc_open resource that will
  2635. * be closed.
  2636. * </p>
  2637. * @return int the termination status of the process that was run.
  2638. */
  2639. function proc_close ($process) {}
  2640. /**
  2641. * Kills a process opened by proc_open
  2642. * @link http://www.php.net/manual/en/function.proc-terminate.php
  2643. * @param process resource <p>
  2644. * The proc_open resource that will
  2645. * be closed.
  2646. * </p>
  2647. * @param signal int[optional] <p>
  2648. * This optional parameter is only useful on POSIX
  2649. * operating systems; you may specify a signal to send to the process
  2650. * using the kill(2) system call. The default is
  2651. * SIGTERM.
  2652. * </p>
  2653. * @return bool the termination status of the process that was run.
  2654. */
  2655. function proc_terminate ($process, $signal = null) {}
  2656. /**
  2657. * Get information about a process opened by <function>proc_open</function>
  2658. * @link http://www.php.net/manual/en/function.proc-get-status.php
  2659. * @param process resource <p>
  2660. * The proc_open resource that will
  2661. * be evaluated.
  2662. * </p>
  2663. * @return array An array of collected information on success, and false
  2664. * on failure. The returned array contains the following elements:
  2665. * </p>
  2666. * <p>
  2667. * <tr valign="top"><td>element</td><td>type</td><td>description</td></tr>
  2668. * <tr valign="top">
  2669. * <td>command</td>
  2670. * <td>string</td>
  2671. * <td>
  2672. * The command string that was passed to proc_open.
  2673. * </td>
  2674. * </tr>
  2675. * <tr valign="top">
  2676. * <td>pid</td>
  2677. * <td>int</td>
  2678. * <td>process id</td>
  2679. * </tr>
  2680. * <tr valign="top">
  2681. * <td>running</td>
  2682. * <td>bool</td>
  2683. * <td>
  2684. * true if the process is still running, false if it has
  2685. * terminated.
  2686. * </td>
  2687. * </tr>
  2688. * <tr valign="top">
  2689. * <td>signaled</td>
  2690. * <td>bool</td>
  2691. * <td>
  2692. * true if the child process has been terminated by
  2693. * an uncaught signal. Always set to false on Windows.
  2694. * </td>
  2695. * </tr>
  2696. * <tr valign="top">
  2697. * <td>stopped</td>
  2698. * <td>bool</td>
  2699. * <td>
  2700. * true if the child process has been stopped by a
  2701. * signal. Always set to false on Windows.
  2702. * </td>
  2703. * </tr>
  2704. * <tr valign="top">
  2705. * <td>exitcode</td>
  2706. * <td>int</td>
  2707. * <td>
  2708. * The exit code returned by the process (which is only
  2709. * meaningful if running is false).
  2710. * Only first call of this function return real value, next calls return
  2711. * -1.
  2712. * </td>
  2713. * </tr>
  2714. * <tr valign="top">
  2715. * <td>termsig</td>
  2716. * <td>int</td>
  2717. * <td>
  2718. * The number of the signal that caused the child process to terminate
  2719. * its execution (only meaningful if signaled is true).
  2720. * </td>
  2721. * </tr>
  2722. * <tr valign="top">
  2723. * <td>stopsig</td>
  2724. * <td>int</td>
  2725. * <td>
  2726. * The number of the signal that caused the child process to stop its
  2727. * execution (only meaningful if stopped is true).
  2728. * </td>
  2729. * </tr>
  2730. */
  2731. function proc_get_status ($process) {}
  2732. /**
  2733. * Change the priority of the current process
  2734. * @link http://www.php.net/manual/en/function.proc-nice.php
  2735. * @param increment int <p>
  2736. * The increment value of the priority change.
  2737. * </p>
  2738. * @return bool Returns true on success or false on failure.
  2739. * If an error occurs, like the user lacks permission to change the priority,
  2740. * an error of level E_WARNING is also generated.
  2741. */
  2742. function proc_nice ($increment) {}
  2743. /**
  2744. * Generate a random integer
  2745. * @link http://www.php.net/manual/en/function.rand.php
  2746. * @param min[optional]
  2747. * @param max[optional]
  2748. * @return int A pseudo random value between min
  2749. * (or 0) and max (or getrandmax, inclusive).
  2750. */
  2751. function rand ($min, $max) {}
  2752. /**
  2753. * Seed the random number generator
  2754. * @link http://www.php.net/manual/en/function.srand.php
  2755. * @param seed int[optional] <p>
  2756. * Optional seed value
  2757. * </p>
  2758. * @return void
  2759. */
  2760. function srand ($seed = null) {}
  2761. /**
  2762. * Show largest possible random value
  2763. * @link http://www.php.net/manual/en/function.getrandmax.php
  2764. * @return int The largest possible random value returned by rand
  2765. */
  2766. function getrandmax () {}
  2767. /**
  2768. * Generate a better random value
  2769. * @link http://www.php.net/manual/en/function.mt-rand.php
  2770. * @param min[optional]
  2771. * @param max[optional]
  2772. * @return int A random integer value between min (or 0)
  2773. * and max (or mt_getrandmax, inclusive)
  2774. */
  2775. function mt_rand ($min, $max) {}
  2776. /**
  2777. * Seed the better random number generator
  2778. * @link http://www.php.net/manual/en/function.mt-srand.php
  2779. * @param seed int[optional] <p>
  2780. * An optional seed value
  2781. * </p>
  2782. * @return void
  2783. */
  2784. function mt_srand ($seed = null) {}
  2785. /**
  2786. * Show largest possible random value
  2787. * @link http://www.php.net/manual/en/function.mt-getrandmax.php
  2788. * @return int the maximum random value returned by mt_rand
  2789. */
  2790. function mt_getrandmax () {}
  2791. /**
  2792. * Get port number associated with an Internet service and protocol
  2793. * @link http://www.php.net/manual/en/function.getservbyname.php
  2794. * @param service string <p>
  2795. * The Internet service name, as a string.
  2796. * </p>
  2797. * @param protocol string <p>
  2798. * protocol is either "tcp"
  2799. * or "udp" (in lowercase).
  2800. * </p>
  2801. * @return int the port number, or false if service or
  2802. * protocol is not found.
  2803. */
  2804. function getservbyname ($service, $protocol) {}
  2805. /**
  2806. * Get Internet service which corresponds to port and protocol
  2807. * @link http://www.php.net/manual/en/function.getservbyport.php
  2808. * @param port int <p>
  2809. * The port number.
  2810. * </p>
  2811. * @param protocol string <p>
  2812. * protocol is either "tcp"
  2813. * or "udp" (in lowercase).
  2814. * </p>
  2815. * @return string the Internet service name as a string.
  2816. */
  2817. function getservbyport ($port, $protocol) {}
  2818. /**
  2819. * Get protocol number associated with protocol name
  2820. * @link http://www.php.net/manual/en/function.getprotobyname.php
  2821. * @param name string <p>
  2822. * The protocol name.
  2823. * </p>
  2824. * @return int the protocol number or -1 if the protocol is not found.
  2825. */
  2826. function getprotobyname ($name) {}
  2827. /**
  2828. * Get protocol name associated with protocol number
  2829. * @link http://www.php.net/manual/en/function.getprotobynumber.php
  2830. * @param number int <p>
  2831. * The protocol number.
  2832. * </p>
  2833. * @return string the protocol name as a string.
  2834. */
  2835. function getprotobynumber ($number) {}
  2836. /**
  2837. * Gets PHP script owner's UID
  2838. * @link http://www.php.net/manual/en/function.getmyuid.php
  2839. * @return int the user ID of the current script, or false on error.
  2840. */
  2841. function getmyuid () {}
  2842. /**
  2843. * Get PHP script owner's GID
  2844. * @link http://www.php.net/manual/en/function.getmygid.php
  2845. * @return int the group ID of the current script, or false on error.
  2846. */
  2847. function getmygid () {}
  2848. /**
  2849. * Gets PHP's process ID
  2850. * @link http://www.php.net/manual/en/function.getmypid.php
  2851. * @return int the current PHP process ID, or false on error.
  2852. */
  2853. function getmypid () {}
  2854. /**
  2855. * Gets the inode of the current script
  2856. * @link http://www.php.net/manual/en/function.getmyinode.php
  2857. * @return int the current script's inode as an integer, or false on error.
  2858. */
  2859. function getmyinode () {}
  2860. /**
  2861. * Gets time of last page modification
  2862. * @link http://www.php.net/manual/en/function.getlastmod.php
  2863. * @return int the time of the last modification of the current
  2864. * page. The value returned is a Unix timestamp, suitable for
  2865. * feeding to date. Returns false on error.
  2866. */
  2867. function getlastmod () {}
  2868. /**
  2869. * Decodes data encoded with MIME base64
  2870. * @link http://www.php.net/manual/en/function.base64-decode.php
  2871. * @param data string <p>
  2872. * The encoded data.
  2873. * </p>
  2874. * @param strict bool[optional] <p>
  2875. * Returns false if input contains character from outside the base64
  2876. * alphabet.
  2877. * </p>
  2878. * @return string the original data&return.falseforfailure;. The returned data may be
  2879. * binary.
  2880. */
  2881. function base64_decode ($data, $strict = null) {}
  2882. /**
  2883. * Encodes data with MIME base64
  2884. * @link http://www.php.net/manual/en/function.base64-encode.php
  2885. * @param data string <p>
  2886. * The data to encode.
  2887. * </p>
  2888. * @return string The encoded data, as a string.
  2889. */
  2890. function base64_encode ($data) {}
  2891. /**
  2892. * Uuencode a string
  2893. * @link http://www.php.net/manual/en/function.convert-uuencode.php
  2894. * @param data string <p>
  2895. * The data to be encoded.
  2896. * </p>
  2897. * @return string the uuencoded data.
  2898. */
  2899. function convert_uuencode ($data) {}
  2900. /**
  2901. * Decode a uuencoded string
  2902. * @link http://www.php.net/manual/en/function.convert-uudecode.php
  2903. * @param data string <p>
  2904. * The uuencoded data.
  2905. * </p>
  2906. * @return string the decoded data as a string.
  2907. */
  2908. function convert_uudecode ($data) {}
  2909. /**
  2910. * Absolute value
  2911. * @link http://www.php.net/manual/en/function.abs.php
  2912. * @param number mixed <p>
  2913. * The numeric value to process
  2914. * </p>
  2915. * @return number The absolute value of number. If the
  2916. * argument number is
  2917. * of type float, the return type is also float,
  2918. * otherwise it is integer (as float usually has a
  2919. * bigger value range than integer).
  2920. */
  2921. function abs ($number) {}
  2922. /**
  2923. * Round fractions up
  2924. * @link http://www.php.net/manual/en/function.ceil.php
  2925. * @param value float <p>
  2926. * The value to round
  2927. * </p>
  2928. * @return float value rounded up to the next highest
  2929. * integer.
  2930. * The return value of ceil is still of type
  2931. * float as the value range of float is
  2932. * usually bigger than that of integer.
  2933. */
  2934. function ceil ($value) {}
  2935. /**
  2936. * Round fractions down
  2937. * @link http://www.php.net/manual/en/function.floor.php
  2938. * @param value float <p>
  2939. * The numeric value to round
  2940. * </p>
  2941. * @return float value rounded to the next lowest integer.
  2942. * The return value of floor is still of type
  2943. * float because the value range of float is
  2944. * usually bigger than that of integer.
  2945. */
  2946. function floor ($value) {}
  2947. /**
  2948. * Rounds a float
  2949. * @link http://www.php.net/manual/en/function.round.php
  2950. * @param val float <p>
  2951. * The value to round
  2952. * </p>
  2953. * @param precision int[optional] <p>
  2954. * The optional number of decimal digits to round to.
  2955. * </p>
  2956. * @param mode int[optional] <p>
  2957. * One of PHP_ROUND_HALF_UP,
  2958. * PHP_ROUND_HALF_DOWN,
  2959. * PHP_ROUND_HALF_EVEN, or
  2960. * PHP_ROUND_HALF_ODD.
  2961. * </p>
  2962. * @return float The rounded value
  2963. */
  2964. function round ($val, $precision = null, $mode = null) {}
  2965. /**
  2966. * Sine
  2967. * @link http://www.php.net/manual/en/function.sin.php
  2968. * @param arg float <p>
  2969. * A value in radians
  2970. * </p>
  2971. * @return float The sine of arg
  2972. */
  2973. function sin ($arg) {}
  2974. /**
  2975. * Cosine
  2976. * @link http://www.php.net/manual/en/function.cos.php
  2977. * @param arg float <p>
  2978. * An angle in radians
  2979. * </p>
  2980. * @return float The cosine of arg
  2981. */
  2982. function cos ($arg) {}
  2983. /**
  2984. * Tangent
  2985. * @link http://www.php.net/manual/en/function.tan.php
  2986. * @param arg float <p>
  2987. * The argument to process in radians
  2988. * </p>
  2989. * @return float The tangent of arg
  2990. */
  2991. function tan ($arg) {}
  2992. /**
  2993. * Arc sine
  2994. * @link http://www.php.net/manual/en/function.asin.php
  2995. * @param arg float <p>
  2996. * The argument to process
  2997. * </p>
  2998. * @return float The arc sine of arg in radians
  2999. */
  3000. function asin ($arg) {}
  3001. /**
  3002. * Arc cosine
  3003. * @link http://www.php.net/manual/en/function.acos.php
  3004. * @param arg float <p>
  3005. * The argument to process
  3006. * </p>
  3007. * @return float The arc cosine of arg in radians.
  3008. */
  3009. function acos ($arg) {}
  3010. /**
  3011. * Arc tangent
  3012. * @link http://www.php.net/manual/en/function.atan.php
  3013. * @param arg float <p>
  3014. * The argument to process
  3015. * </p>
  3016. * @return float The arc tangent of arg in radians.
  3017. */
  3018. function atan ($arg) {}
  3019. /**
  3020. * Arc tangent of two variables
  3021. * @link http://www.php.net/manual/en/function.atan2.php
  3022. * @param y float <p>
  3023. * Dividend parameter
  3024. * </p>
  3025. * @param x float <p>
  3026. * Divisor parameter
  3027. * </p>
  3028. * @return float The arc tangent of y/x
  3029. * in radians.
  3030. */
  3031. function atan2 ($y, $x) {}
  3032. /**
  3033. * Hyperbolic sine
  3034. * @link http://www.php.net/manual/en/function.sinh.php
  3035. * @param arg float <p>
  3036. * The argument to process
  3037. * </p>
  3038. * @return float The hyperbolic sine of arg
  3039. */
  3040. function sinh ($arg) {}
  3041. /**
  3042. * Hyperbolic cosine
  3043. * @link http://www.php.net/manual/en/function.cosh.php
  3044. * @param arg float <p>
  3045. * The argument to process
  3046. * </p>
  3047. * @return float The hyperbolic cosine of arg
  3048. */
  3049. function cosh ($arg) {}
  3050. /**
  3051. * Hyperbolic tangent
  3052. * @link http://www.php.net/manual/en/function.tanh.php
  3053. * @param arg float <p>
  3054. * The argument to process
  3055. * </p>
  3056. * @return float The hyperbolic tangent of arg
  3057. */
  3058. function tanh ($arg) {}
  3059. /**
  3060. * Inverse hyperbolic sine
  3061. * @link http://www.php.net/manual/en/function.asinh.php
  3062. * @param arg float <p>
  3063. * The argument to process
  3064. * </p>
  3065. * @return float The inverse hyperbolic sine of arg
  3066. */
  3067. function asinh ($arg) {}
  3068. /**
  3069. * Inverse hyperbolic cosine
  3070. * @link http://www.php.net/manual/en/function.acosh.php
  3071. * @param arg float <p>
  3072. * The value to process
  3073. * </p>
  3074. * @return float The inverse hyperbolic cosine of arg
  3075. */
  3076. function acosh ($arg) {}
  3077. /**
  3078. * Inverse hyperbolic tangent
  3079. * @link http://www.php.net/manual/en/function.atanh.php
  3080. * @param arg float <p>
  3081. * The argument to process
  3082. * </p>
  3083. * @return float Inverse hyperbolic tangent of arg
  3084. */
  3085. function atanh ($arg) {}
  3086. /**
  3087. * Returns exp(number) - 1, computed in a way that is accurate even
  3088. when the value of number is close to zero
  3089. * @link http://www.php.net/manual/en/function.expm1.php
  3090. * @param arg float <p>
  3091. * The argument to process
  3092. * </p>
  3093. * @return float 'e' to the power of arg minus one
  3094. */
  3095. function expm1 ($arg) {}
  3096. /**
  3097. * Returns log(1 + number), computed in a way that is accurate even when
  3098. the value of number is close to zero
  3099. * @link http://www.php.net/manual/en/function.log1p.php
  3100. * @param number float <p>
  3101. * The argument to process
  3102. * </p>
  3103. * @return float log(1 + number)
  3104. */
  3105. function log1p ($number) {}
  3106. /**
  3107. * Get value of pi
  3108. * @link http://www.php.net/manual/en/function.pi.php
  3109. * @return float The value of pi as float.
  3110. */
  3111. function pi () {}
  3112. /**
  3113. * Finds whether a value is a legal finite number
  3114. * @link http://www.php.net/manual/en/function.is-finite.php
  3115. * @param val float <p>
  3116. * The value to check
  3117. * </p>
  3118. * @return bool true if val is a legal finite
  3119. * number within the allowed range for a PHP float on this platform,
  3120. * else false.
  3121. */
  3122. function is_finite ($val) {}
  3123. /**
  3124. * Finds whether a value is not a number
  3125. * @link http://www.php.net/manual/en/function.is-nan.php
  3126. * @param val float <p>
  3127. * The value to check
  3128. * </p>
  3129. * @return bool true if val is 'not a number',
  3130. * else false.
  3131. */
  3132. function is_nan ($val) {}
  3133. /**
  3134. * Finds whether a value is infinite
  3135. * @link http://www.php.net/manual/en/function.is-infinite.php
  3136. * @param val float <p>
  3137. * The value to check
  3138. * </p>
  3139. * @return bool true if val is infinite, else false.
  3140. */
  3141. function is_infinite ($val) {}
  3142. /**
  3143. * Exponential expression
  3144. * @link http://www.php.net/manual/en/function.pow.php
  3145. * @param base number <p>
  3146. * The base to use
  3147. * </p>
  3148. * @param exp number <p>
  3149. * The exponent
  3150. * </p>
  3151. * @return number base raised to the power of exp.
  3152. * If the result can be represented as integer it will be returned as type
  3153. * integer, else it will be returned as type float.
  3154. * If the power cannot be computed false will be returned instead.
  3155. */
  3156. function pow ($base, $exp) {}
  3157. /**
  3158. * Calculates the exponent of <constant>e</constant>
  3159. * @link http://www.php.net/manual/en/function.exp.php
  3160. * @param arg float <p>
  3161. * The argument to process
  3162. * </p>
  3163. * @return float 'e' raised to the power of arg
  3164. */
  3165. function exp ($arg) {}
  3166. /**
  3167. * Natural logarithm
  3168. * @link http://www.php.net/manual/en/function.log.php
  3169. * @param arg float <p>
  3170. * The value to calculate the logarithm for
  3171. * </p>
  3172. * @param base float[optional] <p>
  3173. * The optional logarithmic base to use
  3174. * (defaults to 'e' and so to the natural logarithm).
  3175. * </p>
  3176. * @return float The logarithm of arg to
  3177. * base, if given, or the
  3178. * natural logarithm.
  3179. */
  3180. function log ($arg, $base = null) {}
  3181. /**
  3182. * Base-10 logarithm
  3183. * @link http://www.php.net/manual/en/function.log10.php
  3184. * @param arg float <p>
  3185. * The argument to process
  3186. * </p>
  3187. * @return float The base-10 logarithm of arg
  3188. */
  3189. function log10 ($arg) {}
  3190. /**
  3191. * Square root
  3192. * @link http://www.php.net/manual/en/function.sqrt.php
  3193. * @param arg float <p>
  3194. * The argument to process
  3195. * </p>
  3196. * @return float The square root of arg
  3197. * or the special value NAN for negative numbers.
  3198. */
  3199. function sqrt ($arg) {}
  3200. /**
  3201. * Calculate the length of the hypotenuse of a right-angle triangle
  3202. * @link http://www.php.net/manual/en/function.hypot.php
  3203. * @param x float <p>
  3204. * Length of first side
  3205. * </p>
  3206. * @param y float <p>
  3207. * Length of second side
  3208. * </p>
  3209. * @return float Calculated length of the hypotenuse
  3210. */
  3211. function hypot ($x, $y) {}
  3212. /**
  3213. * Converts the number in degrees to the radian equivalent
  3214. * @link http://www.php.net/manual/en/function.deg2rad.php
  3215. * @param number float <p>
  3216. * Angular value in degrees
  3217. * </p>
  3218. * @return float The radian equivalent of number
  3219. */
  3220. function deg2rad ($number) {}
  3221. /**
  3222. * Converts the radian number to the equivalent number in degrees
  3223. * @link http://www.php.net/manual/en/function.rad2deg.php
  3224. * @param number float <p>
  3225. * A radian value
  3226. * </p>
  3227. * @return float The equivalent of number in degrees
  3228. */
  3229. function rad2deg ($number) {}
  3230. /**
  3231. * Binary to decimal
  3232. * @link http://www.php.net/manual/en/function.bindec.php
  3233. * @param binary_string string <p>
  3234. * The binary string to convert
  3235. * </p>
  3236. * @return number The decimal value of binary_string
  3237. */
  3238. function bindec ($binary_string) {}
  3239. /**
  3240. * Hexadecimal to decimal
  3241. * @link http://www.php.net/manual/en/function.hexdec.php
  3242. * @param hex_string string <p>
  3243. * The hexadecimal string to convert
  3244. * </p>
  3245. * @return number The decimal representation of hex_string
  3246. */
  3247. function hexdec ($hex_string) {}
  3248. /**
  3249. * Octal to decimal
  3250. * @link http://www.php.net/manual/en/function.octdec.php
  3251. * @param octal_string string <p>
  3252. * The octal string to convert
  3253. * </p>
  3254. * @return number The decimal representation of octal_string
  3255. */
  3256. function octdec ($octal_string) {}
  3257. /**
  3258. * Decimal to binary
  3259. * @link http://www.php.net/manual/en/function.decbin.php
  3260. * @param number int <p>
  3261. * Decimal value to convert
  3262. * </p>
  3263. * <table>
  3264. * Range of inputs on 32-bit machines
  3265. * <tr valign="top">
  3266. * <td>positive number</td>
  3267. * <td>negative number</td>
  3268. * <td>return value</td>
  3269. * </tr>
  3270. * <tr valign="top">
  3271. * <td>0</td>
  3272. * <td></td>
  3273. * <td>0</td>
  3274. * </tr>
  3275. * <tr valign="top">
  3276. * <td>1</td>
  3277. * <td></td>
  3278. * <td>1</td>
  3279. * </tr>
  3280. * <tr valign="top">
  3281. * <td>2</td>
  3282. * <td></td>
  3283. * <td>10</td>
  3284. * </tr>
  3285. * <tr valign="top">
  3286. * ... normal progression ...</td>
  3287. * </tr>
  3288. * <tr valign="top">
  3289. * <td>2147483646</td>
  3290. * <td></td>
  3291. * <td>1111111111111111111111111111110</td>
  3292. * </tr>
  3293. * <tr valign="top">
  3294. * <td>2147483647 (largest signed integer)</td>
  3295. * <td></td>
  3296. * <td>1111111111111111111111111111111 (31 1's)</td>
  3297. * </tr>
  3298. * <tr valign="top">
  3299. * <td>2147483648</td>
  3300. * <td>-2147483648</td>
  3301. * <td>10000000000000000000000000000000</td>
  3302. * </tr>
  3303. * <tr valign="top">
  3304. * ... normal progression ...</td>
  3305. * </tr>
  3306. * <tr valign="top">
  3307. * <td>4294967294</td>
  3308. * <td>-2</td>
  3309. * <td>11111111111111111111111111111110</td>
  3310. * </tr>
  3311. * <tr valign="top">
  3312. * <td>4294967295 (largest unsigned integer)</td>
  3313. * <td>-1</td>
  3314. * <td>11111111111111111111111111111111 (32 1's)</td>
  3315. * </tr>
  3316. * </table>
  3317. * <table>
  3318. * Range of inputs on 64-bit machines
  3319. * <tr valign="top">
  3320. * <td>positive number</td>
  3321. * <td>negative number</td>
  3322. * <td>return value</td>
  3323. * </tr>
  3324. * <tr valign="top">
  3325. * <td>0</td>
  3326. * <td></td>
  3327. * <td>0</td>
  3328. * </tr>
  3329. * <tr valign="top">
  3330. * <td>1</td>
  3331. * <td></td>
  3332. * <td>1</td>
  3333. * </tr>
  3334. * <tr valign="top">
  3335. * <td>2</td>
  3336. * <td></td>
  3337. * <td>10</td>
  3338. * </tr>
  3339. * <tr valign="top">
  3340. * ... normal progression ...</td>
  3341. * </tr>
  3342. * <tr valign="top">
  3343. * <td>9223372036854775806</td>
  3344. * <td></td>
  3345. * <td>111111111111111111111111111111111111111111111111111111111111110</td>
  3346. * </tr>
  3347. * <tr valign="top">
  3348. * <td>9223372036854775807 (largest signed integer)</td>
  3349. * <td></td>
  3350. * <td>111111111111111111111111111111111111111111111111111111111111111 (31 1's)</td>
  3351. * </tr>
  3352. * <tr valign="top">
  3353. * <td></td>
  3354. * <td>-9223372036854775808</td>
  3355. * <td>1000000000000000000000000000000000000000000000000000000000000000</td>
  3356. * </tr>
  3357. * <tr valign="top">
  3358. * ... normal progression ...</td>
  3359. * </tr>
  3360. * <tr valign="top">
  3361. * <td></td>
  3362. * <td>-2</td>
  3363. * <td>1111111111111111111111111111111111111111111111111111111111111110</td>
  3364. * </tr>
  3365. * <tr valign="top">
  3366. * <td></td>
  3367. * <td>-1</td>
  3368. * <td>1111111111111111111111111111111111111111111111111111111111111111 (64 1's)</td>
  3369. * </tr>
  3370. * </table>
  3371. * @return string Binary string representation of number
  3372. */
  3373. function decbin ($number) {}
  3374. /**
  3375. * Decimal to octal
  3376. * @link http://www.php.net/manual/en/function.decoct.php
  3377. * @param number int <p>
  3378. * Decimal value to convert
  3379. * </p>
  3380. * @return string Octal string representation of number
  3381. */
  3382. function decoct ($number) {}
  3383. /**
  3384. * Decimal to hexadecimal
  3385. * @link http://www.php.net/manual/en/function.dechex.php
  3386. * @param number int <p>
  3387. * Decimal value to convert
  3388. * </p>
  3389. * @return string Hexadecimal string representation of number
  3390. */
  3391. function dechex ($number) {}
  3392. /**
  3393. * Convert a number between arbitrary bases
  3394. * @link http://www.php.net/manual/en/function.base-convert.php
  3395. * @param number string <p>
  3396. * The number to convert
  3397. * </p>
  3398. * @param frombase int <p>
  3399. * The base number is in
  3400. * </p>
  3401. * @param tobase int <p>
  3402. * The base to convert number to
  3403. * </p>
  3404. * @return string number converted to base tobase
  3405. */
  3406. function base_convert ($number, $frombase, $tobase) {}
  3407. /**
  3408. * Format a number with grouped thousands
  3409. * @link http://www.php.net/manual/en/function.number-format.php
  3410. * @param number float <p>
  3411. * The number being formatted.
  3412. * </p>
  3413. * @param decimals int[optional] <p>
  3414. * Sets the number of decimal points.
  3415. * </p>
  3416. * @return string A formatted version of number.
  3417. */
  3418. function number_format ($number, $decimals = null) {}
  3419. /**
  3420. * Returns the floating point remainder (modulo) of the division
  3421. of the arguments
  3422. * @link http://www.php.net/manual/en/function.fmod.php
  3423. * @param x float <p>
  3424. * The dividend
  3425. * </p>
  3426. * @param y float <p>
  3427. * The divisor
  3428. * </p>
  3429. * @return float The floating point remainder of
  3430. * x/y
  3431. */
  3432. function fmod ($x, $y) {}
  3433. /**
  3434. * Converts a packed internet address to a human readable representation
  3435. * @link http://www.php.net/manual/en/function.inet-ntop.php
  3436. * @param in_addr string <p>
  3437. * A 32bit IPv4, or 128bit IPv6 address.
  3438. * </p>
  3439. * @return string a string representation of the address&return.falseforfailure;.
  3440. */
  3441. function inet_ntop ($in_addr) {}
  3442. /**
  3443. * Converts a human readable IP address to its packed in_addr representation
  3444. * @link http://www.php.net/manual/en/function.inet-pton.php
  3445. * @param address string <p>
  3446. * A human readable IPv4 or IPv6 address.
  3447. * </p>
  3448. * @return string the in_addr representation of the given
  3449. * address
  3450. */
  3451. function inet_pton ($address) {}
  3452. /**
  3453. * Converts a string containing an (IPv4) Internet Protocol dotted address into a proper address
  3454. * @link http://www.php.net/manual/en/function.ip2long.php
  3455. * @param ip_address string <p>
  3456. * A standard format address.
  3457. * </p>
  3458. * @return int the IPv4 address or false if ip_address
  3459. * is invalid.
  3460. */
  3461. function ip2long ($ip_address) {}
  3462. /**
  3463. * Converts an (IPv4) Internet network address into a string in Internet standard dotted format
  3464. * @link http://www.php.net/manual/en/function.long2ip.php
  3465. * @param proper_address string <p>
  3466. * A proper address representation.
  3467. * </p>
  3468. * @return string the Internet IP address as a string.
  3469. */
  3470. function long2ip ($proper_address) {}
  3471. /**
  3472. * Gets the value of an environment variable
  3473. * @link http://www.php.net/manual/en/function.getenv.php
  3474. * @param varname string <p>
  3475. * The variable name.
  3476. * </p>
  3477. * @return string the value of the environment variable
  3478. * varname, or false on an error.
  3479. */
  3480. function getenv ($varname) {}
  3481. /**
  3482. * Sets the value of an environment variable
  3483. * @link http://www.php.net/manual/en/function.putenv.php
  3484. * @param setting string <p>
  3485. * The setting, like "FOO=BAR"
  3486. * </p>
  3487. * @return bool Returns true on success or false on failure.
  3488. */
  3489. function putenv ($setting) {}
  3490. /**
  3491. * Gets options from the command line argument list
  3492. * @link http://www.php.net/manual/en/function.getopt.php
  3493. * @param options string Each character in this string will be used as option characters and
  3494. * matched against options passed to the script starting with a single
  3495. * hyphen (-).
  3496. * For example, an option string "x" recognizes an
  3497. * option -x.
  3498. * Only a-z, A-Z and 0-9 are allowed.
  3499. * @param longopts array[optional] An array of options. Each element in this array will be used as option
  3500. * strings and matched against options passed to the script starting with
  3501. * two hyphens (--).
  3502. * For example, an longopts element "opt" recognizes an
  3503. * option --opt.
  3504. * Prior to PHP5.3.0 this parameter was only available on few systems
  3505. * @return array This function will return an array of option / argument pairs or false on
  3506. * failure.
  3507. * </p>
  3508. * <p>
  3509. * The parsing of options will end at the first non-option found, anything
  3510. * that follows is discarded.
  3511. */
  3512. function getopt ($options, array $longopts = null) {}
  3513. /**
  3514. * Gets system load average
  3515. * @link http://www.php.net/manual/en/function.sys-getloadavg.php
  3516. * @return array an array with three samples (last 1, 5 and 15
  3517. * minutes).
  3518. */
  3519. function sys_getloadavg () {}
  3520. /**
  3521. * Return current Unix timestamp with microseconds
  3522. * @link http://www.php.net/manual/en/function.microtime.php
  3523. * @param get_as_float bool[optional] <p>
  3524. * When called without the optional argument, this function returns the string
  3525. * "msec sec" where sec is the current time measured in the number of
  3526. * seconds since the Unix Epoch (0:00:00 January 1, 1970 GMT), and
  3527. * msec is the microseconds part.
  3528. * Both portions of the string are returned in units of seconds.
  3529. * </p>
  3530. * <p>
  3531. * If the optional get_as_float is set to
  3532. * true then a float (in seconds) is returned.
  3533. * </p>
  3534. * @return mixed
  3535. */
  3536. function microtime ($get_as_float = null) {}
  3537. /**
  3538. * Get current time
  3539. * @link http://www.php.net/manual/en/function.gettimeofday.php
  3540. * @param return_float bool[optional] <p>
  3541. * When set to true, a float instead of an array is returned.
  3542. * </p>
  3543. * @return mixed By default an array is returned. If return_float
  3544. * is set, then a float is returned.
  3545. * </p>
  3546. * <p>
  3547. * Array keys:
  3548. * "sec" - seconds since the Unix Epoch
  3549. * "usec" - microseconds
  3550. * "minuteswest" - minutes west of Greenwich
  3551. * "dsttime" - type of dst correction
  3552. */
  3553. function gettimeofday ($return_float = null) {}
  3554. /**
  3555. * Gets the current resource usages
  3556. * @link http://www.php.net/manual/en/function.getrusage.php
  3557. * @param who int[optional] <p>
  3558. * If who is 1, getrusage will be called with
  3559. * RUSAGE_CHILDREN.
  3560. * </p>
  3561. * @return array an associative array containing the data returned from the system
  3562. * call. All entries are accessible by using their documented field names.
  3563. */
  3564. function getrusage ($who = null) {}
  3565. /**
  3566. * Generate a unique ID
  3567. * @link http://www.php.net/manual/en/function.uniqid.php
  3568. * @param prefix string[optional] <p>
  3569. * Can be useful, for instance, if you generate identifiers
  3570. * simultaneously on several hosts that might happen to generate the
  3571. * identifier at the same microsecond.
  3572. * </p>
  3573. * <p>
  3574. * With an empty prefix, the returned string will
  3575. * be 13 characters long. If more_entropy is
  3576. * true, it will be 23 characters.
  3577. * </p>
  3578. * @param more_entropy bool[optional] <p>
  3579. * If set to true, uniqid will add additional
  3580. * entropy (using the combined linear congruential generator) at the end
  3581. * of the return value, which should make the results more unique.
  3582. * </p>
  3583. * @return string the unique identifier, as a string.
  3584. */
  3585. function uniqid ($prefix = null, $more_entropy = null) {}
  3586. /**
  3587. * Convert a quoted-printable string to an 8 bit string
  3588. * @link http://www.php.net/manual/en/function.quoted-printable-decode.php
  3589. * @param str string <p>
  3590. * The input string.
  3591. * </p>
  3592. * @return string the 8-bit binary string.
  3593. */
  3594. function quoted_printable_decode ($str) {}
  3595. /**
  3596. * Convert from one Cyrillic character set to another
  3597. * @link http://www.php.net/manual/en/function.convert-cyr-string.php
  3598. * @param str string <p>
  3599. * The string to be converted.
  3600. * </p>
  3601. * @param from string <p>
  3602. * The source Cyrillic character set, as a single character.
  3603. * </p>
  3604. * @param to string <p>
  3605. * The target Cyrillic character set, as a single character.
  3606. * </p>
  3607. * @return string the converted string.
  3608. */
  3609. function convert_cyr_string ($str, $from, $to) {}
  3610. /**
  3611. * Gets the name of the owner of the current PHP script
  3612. * @link http://www.php.net/manual/en/function.get-current-user.php
  3613. * @return string the username as a string.
  3614. */
  3615. function get_current_user () {}
  3616. /**
  3617. * Limits the maximum execution time
  3618. * @link http://www.php.net/manual/en/function.set-time-limit.php
  3619. * @param seconds int <p>
  3620. * The maximum execution time, in seconds. If set to zero, no time limit
  3621. * is imposed.
  3622. * </p>
  3623. * @return void
  3624. */
  3625. function set_time_limit ($seconds) {}
  3626. /**
  3627. * Gets the value of a PHP configuration option
  3628. * @link http://www.php.net/manual/en/function.get-cfg-var.php
  3629. * @param option string <p>
  3630. * The configuration option name.
  3631. * </p>
  3632. * @return string the current value of the PHP configuration variable specified by
  3633. * option, or false if an error occurs.
  3634. */
  3635. function get_cfg_var ($option) {}
  3636. /**
  3637. * &Alias; <function>set_magic_quotes_runtime</function>
  3638. * @link http://www.php.net/manual/en/function.magic-quotes-runtime.php
  3639. */
  3640. function magic_quotes_runtime () {}
  3641. /**
  3642. * Sets the current active configuration setting of magic_quotes_runtime
  3643. * @link http://www.php.net/manual/en/function.set-magic-quotes-runtime.php
  3644. * @param new_setting bool <p>
  3645. * false for off, true for on.
  3646. * </p>
  3647. * @return bool Returns true on success or false on failure.
  3648. */
  3649. function set_magic_quotes_runtime ($new_setting) {}
  3650. /**
  3651. * Gets the current configuration setting of magic_quotes_gpc
  3652. * @link http://www.php.net/manual/en/function.get-magic-quotes-gpc.php
  3653. * @return int 0 if magic_quotes_gpc is off, 1 otherwise.
  3654. */
  3655. function get_magic_quotes_gpc () {}
  3656. /**
  3657. * Gets the current active configuration setting of magic_quotes_runtime
  3658. * @link http://www.php.net/manual/en/function.get-magic-quotes-runtime.php
  3659. * @return int 0 if magic_quotes_runtime is off, 1 otherwise.
  3660. */
  3661. function get_magic_quotes_runtime () {}
  3662. /**
  3663. * Import GET/POST/Cookie variables into the global scope
  3664. * @link http://www.php.net/manual/en/function.import-request-variables.php
  3665. * @param types string <p>
  3666. * Using the types parameter, you can specify
  3667. * which request variables to import. You can use 'G', 'P' and 'C'
  3668. * characters respectively for GET, POST and Cookie. These characters are
  3669. * not case sensitive, so you can also use any combination of 'g', 'p'
  3670. * and 'c'. POST includes the POST uploaded file information.
  3671. * </p>
  3672. * <p>
  3673. * Note that the order of the letters matters, as when using
  3674. * "GP", the
  3675. * POST variables will overwrite GET variables with the same name. Any
  3676. * other letters than GPC are discarded.
  3677. * </p>
  3678. * @param prefix string[optional] <p>
  3679. * Variable name prefix, prepended before all variable's name imported
  3680. * into the global scope. So if you have a GET value named
  3681. * "userid", and provide a prefix
  3682. * "pref_", then you'll get a global variable named
  3683. * $pref_userid.
  3684. * </p>
  3685. * <p>
  3686. * Although the prefix parameter is optional, you
  3687. * will get an E_NOTICE level
  3688. * error if you specify no prefix, or specify an empty string as a
  3689. * prefix. This is a possible security hazard. Notice level errors are
  3690. * not displayed using the default error reporting level.
  3691. * </p>
  3692. * @return bool Returns true on success or false on failure.
  3693. */
  3694. function import_request_variables ($types, $prefix = null) {}
  3695. /**
  3696. * Send an error message somewhere
  3697. * @link http://www.php.net/manual/en/function.error-log.php
  3698. * @param message string <p>
  3699. * The error message that should be logged.
  3700. * </p>
  3701. * @param message_type int[optional] <p>
  3702. * Says where the error should go. The possible message types are as
  3703. * follows:
  3704. * </p>
  3705. * <p>
  3706. * <table>
  3707. * error_log log types
  3708. * <tr valign="top">
  3709. * <td>0</td>
  3710. * <td>
  3711. * message is sent to PHP's system logger, using
  3712. * the Operating System's system logging mechanism or a file, depending
  3713. * on what the error_log
  3714. * configuration directive is set to. This is the default option.
  3715. * </td>
  3716. * </tr>
  3717. * <tr valign="top">
  3718. * <td>1</td>
  3719. * <td>
  3720. * message is sent by email to the address in
  3721. * the destination parameter. This is the only
  3722. * message type where the fourth parameter,
  3723. * extra_headers is used.
  3724. * </td>
  3725. * </tr>
  3726. * <tr valign="top">
  3727. * <td>2</td>
  3728. * <td>
  3729. * No longer an option.
  3730. * </td>
  3731. * </tr>
  3732. * <tr valign="top">
  3733. * <td>3</td>
  3734. * <td>
  3735. * message is appended to the file
  3736. * destination. A newline is not automatically
  3737. * added to the end of the message string.
  3738. * </td>
  3739. * </tr>
  3740. * <tr valign="top">
  3741. * <td>4</td>
  3742. * <td>
  3743. * message is sent directly to the SAPI logging
  3744. * handler.
  3745. * </td>
  3746. * </tr>
  3747. * </table>
  3748. * </p>
  3749. * @param destination string[optional] <p>
  3750. * The destination. Its meaning depends on the
  3751. * message_type parameter as described above.
  3752. * </p>
  3753. * @param extra_headers string[optional] <p>
  3754. * The extra headers. It's used when the message_type
  3755. * parameter is set to 1.
  3756. * This message type uses the same internal function as
  3757. * mail does.
  3758. * </p>
  3759. * @return bool Returns true on success or false on failure.
  3760. */
  3761. function error_log ($message, $message_type = null, $destination = null, $extra_headers = null) {}
  3762. /**
  3763. * Get the last occurred error
  3764. * @link http://www.php.net/manual/en/function.error-get-last.php
  3765. * @return array an associative array describing the last error with keys "type",
  3766. * "message", "file" and "line". Returns &null; if there hasn't been an error
  3767. * yet.
  3768. */
  3769. function error_get_last () {}
  3770. /**
  3771. * Call a user function given by the first parameter
  3772. * @link http://www.php.net/manual/en/function.call-user-func.php
  3773. * @param function callback <p>
  3774. * The function to be called. Class methods may also be invoked
  3775. * statically using this function by passing
  3776. * array($classname, $methodname) to this parameter.
  3777. * Additionally class methods of an object instance may be called by passing
  3778. * array($objectinstance, $methodname) to this parameter.
  3779. * </p>
  3780. * @param parameter mixed[optional] <p>
  3781. * Zero or more parameters to be passed to the function.
  3782. * </p>
  3783. * <p>
  3784. * Note that the parameters for call_user_func are
  3785. * not passed by reference.
  3786. * call_user_func example and references
  3787. * ]]>
  3788. * &example.outputs;
  3789. * </p>
  3790. * @param _ mixed[optional]
  3791. * @return mixed the function result, or false on error.
  3792. */
  3793. function call_user_func ($function, $parameter = null, $_ = null) {}
  3794. /**
  3795. * Call a user function given with an array of parameters
  3796. * @link http://www.php.net/manual/en/function.call-user-func-array.php
  3797. * @param function callback <p>
  3798. * The function to be called.
  3799. * </p>
  3800. * @param param_arr array <p>
  3801. * The parameters to be passed to the function, as an indexed array.
  3802. * </p>
  3803. * @return mixed the function result, or false on error.
  3804. */
  3805. function call_user_func_array ($function, array $param_arr) {}
  3806. /**
  3807. * Call a user method on an specific object [deprecated]
  3808. * @link http://www.php.net/manual/en/function.call-user-method.php
  3809. * @param method_name string <p>
  3810. * The method name being called.
  3811. * </p>
  3812. * @param obj object <p>
  3813. * The object that method_name
  3814. * is being called on.
  3815. * </p>
  3816. * @param parameter mixed[optional]
  3817. * @param _ mixed[optional]
  3818. * @return mixed
  3819. */
  3820. function call_user_method ($method_name, &$obj, $parameter = null, $_ = null) {}
  3821. /**
  3822. * Call a user method given with an array of parameters [deprecated]
  3823. * @link http://www.php.net/manual/en/function.call-user-method-array.php
  3824. * @param method_name string <p>
  3825. * The method name being called.
  3826. * </p>
  3827. * @param obj object <p>
  3828. * The object that method_name
  3829. * is being called on.
  3830. * </p>
  3831. * @param params array <p>
  3832. * An array of parameters.
  3833. * </p>
  3834. * @return mixed
  3835. */
  3836. function call_user_method_array ($method_name, &$obj, array $params) {}
  3837. /**
  3838. * Generates a storable representation of a value
  3839. * @link http://www.php.net/manual/en/function.serialize.php
  3840. * @param value mixed <p>
  3841. * The value to be serialized. serialize
  3842. * handles all types, except the resource-type.
  3843. * You can even serialize arrays that contain
  3844. * references to itself. Circular references inside the array/object you
  3845. * are serializing will also be stored. Any other
  3846. * reference will be lost.
  3847. * </p>
  3848. * <p>
  3849. * When serializing objects, PHP will attempt to call the member function
  3850. * __sleep prior to serialization.
  3851. * This is to allow the object to do any last minute clean-up, etc. prior
  3852. * to being serialized. Likewise, when the object is restored using
  3853. * unserialize the __wakeup member function is called.
  3854. * </p>
  3855. * <p>
  3856. * Object's private members have the class name prepended to the member
  3857. * name; protected members have a '*' prepended to the member name.
  3858. * These prepended values have null bytes on either side.
  3859. * </p>
  3860. * @return string a string containing a byte-stream representation of
  3861. * value that can be stored anywhere.
  3862. */
  3863. function serialize ($value) {}
  3864. /**
  3865. * Creates a PHP value from a stored representation
  3866. * @link http://www.php.net/manual/en/function.unserialize.php
  3867. * @param str string <p>
  3868. * The serialized string.
  3869. * </p>
  3870. * <p>
  3871. * If the variable being unserialized is an object, after successfully
  3872. * reconstructing the object PHP will automatically attempt to call the
  3873. * __wakeup member function (if it exists).
  3874. * </p>
  3875. * <p>
  3876. * unserialize_callback_func directive
  3877. * <p>
  3878. * It's possible to set a callback-function which will be called,
  3879. * if an undefined class should be instantiated during unserializing.
  3880. * (to prevent getting an incomplete object "__PHP_Incomplete_Class".)
  3881. * Use your &php.ini;, ini_set or &htaccess;
  3882. * to define 'unserialize_callback_func'. Everytime an undefined class
  3883. * should be instantiated, it'll be called. To disable this feature just
  3884. * empty this setting.
  3885. * </p>
  3886. * </p>
  3887. * @return mixed The converted value is returned, and can be a boolean,
  3888. * integer, float, string,
  3889. * array or object.
  3890. * </p>
  3891. * <p>
  3892. * In case the passed string is not unserializeable, false is returned and
  3893. * E_NOTICE is issued.
  3894. */
  3895. function unserialize ($str) {}
  3896. /**
  3897. * Dumps information about a variable
  3898. * @link http://www.php.net/manual/en/function.var-dump.php
  3899. * @param expression mixed <p>
  3900. * The variable you want to export.
  3901. * </p>
  3902. * @param expression mixed[optional]
  3903. * @return void
  3904. */
  3905. function var_dump ($expression, $expression = null) {}
  3906. /**
  3907. * Outputs or returns a parsable string representation of a variable
  3908. * @link http://www.php.net/manual/en/function.var-export.php
  3909. * @param expression mixed <p>
  3910. * The variable you want to export.
  3911. * </p>
  3912. * @param return bool[optional] <p>
  3913. * If used and set to true, var_export will return
  3914. * the variable representation instead of outputing it.
  3915. * </p>
  3916. * &note.uses-ob;
  3917. * @return mixed the variable representation when the return
  3918. * parameter is used and evaluates to true. Otherwise, this function will
  3919. * return &null;.
  3920. */
  3921. function var_export ($expression, $return = null) {}
  3922. /**
  3923. * Dumps a string representation of an internal zend value to output
  3924. * @link http://www.php.net/manual/en/function.debug-zval-dump.php
  3925. * @param variable mixed <p>
  3926. * The variable being evaluated.
  3927. * </p>
  3928. * @return void
  3929. */
  3930. function debug_zval_dump ($variable) {}
  3931. /**
  3932. * Prints human-readable information about a variable
  3933. * @link http://www.php.net/manual/en/function.print-r.php
  3934. * @param expression mixed <p>
  3935. * The expression to be printed.
  3936. * </p>
  3937. * @param return bool[optional] <p>
  3938. * If you would like to capture the output of print_r,
  3939. * use the return parameter. When this parameter is set
  3940. * to true, print_r will return the information rather than print it.
  3941. * </p>
  3942. * @return mixed If given a string, integer or float,
  3943. * the value itself will be printed. If given an array, values
  3944. * will be presented in a format that shows keys and elements. Similar
  3945. * notation is used for objects.
  3946. * </p>
  3947. * <p>
  3948. * When the return parameter is true, this function
  3949. * will return a string. Otherwise, the return value is true.
  3950. */
  3951. function print_r ($expression, $return = null) {}
  3952. /**
  3953. * Returns the amount of memory allocated to PHP
  3954. * @link http://www.php.net/manual/en/function.memory-get-usage.php
  3955. * @param real_usage bool[optional] <p>
  3956. * Set this to true to get the real size of memory allocated from
  3957. * system. If not set or false only the memory used by
  3958. * emalloc() is reported.
  3959. * </p>
  3960. * @return int the memory amount in bytes.
  3961. */
  3962. function memory_get_usage ($real_usage = null) {}
  3963. /**
  3964. * Returns the peak of memory allocated by PHP
  3965. * @link http://www.php.net/manual/en/function.memory-get-peak-usage.php
  3966. * @param real_usage bool[optional] <p>
  3967. * Set this to true to get the real size of memory allocated from
  3968. * system. If not set or false only the memory used by
  3969. * emalloc() is reported.
  3970. * </p>
  3971. * @return int the memory peak in bytes.
  3972. */
  3973. function memory_get_peak_usage ($real_usage = null) {}
  3974. /**
  3975. * Register a function for execution on shutdown
  3976. * @link http://www.php.net/manual/en/function.register-shutdown-function.php
  3977. * @param function callback <p>
  3978. * The shutdown function to register.
  3979. * </p>
  3980. * <p>
  3981. * The shutdown functions are called as the part of the request so that
  3982. * it's possible to send the output from them. There is currently no way
  3983. * to process the data with output buffering functions in the shutdown
  3984. * function.
  3985. * </p>
  3986. * <p>
  3987. * Shutdown functions are called after closing all opened output buffers
  3988. * thus, for example, its output will not be compressed if zlib.output_compression is
  3989. * enabled.
  3990. * </p>
  3991. * @param parameter mixed[optional] <p>
  3992. * It is possible to pass parameters to the shutdown function by passing
  3993. * additional parameters.
  3994. * </p>
  3995. * @param _ mixed[optional]
  3996. * @return void
  3997. */
  3998. function register_shutdown_function ($function, $parameter = null, $_ = null) {}
  3999. /**
  4000. * Register a function for execution on each tick
  4001. * @link http://www.php.net/manual/en/function.register-tick-function.php
  4002. * @param function callback <p>
  4003. * The function name as a string, or an array consisting of an object and
  4004. * a method.
  4005. * </p>
  4006. * @param arg mixed[optional] <p>
  4007. * </p>
  4008. * @param _ mixed[optional]
  4009. * @return bool Returns true on success or false on failure.
  4010. */
  4011. function register_tick_function ($function, $arg = null, $_ = null) {}
  4012. /**
  4013. * De-register a function for execution on each tick
  4014. * @link http://www.php.net/manual/en/function.unregister-tick-function.php
  4015. * @param function_name string <p>
  4016. * The function name, as a string.
  4017. * </p>
  4018. * @return void
  4019. */
  4020. function unregister_tick_function ($function_name) {}
  4021. /**
  4022. * Syntax highlighting of a file
  4023. * @link http://www.php.net/manual/en/function.highlight-file.php
  4024. * @param filename string <p>
  4025. * Path to the PHP file to be highlighted.
  4026. * </p>
  4027. * @param return bool[optional] <p>
  4028. * Set this parameter to true to make this function return the
  4029. * highlighted code.
  4030. * </p>
  4031. * @return mixed If return is set to true, returns the highlighted
  4032. * code as a string instead of printing it out. Otherwise, it will return
  4033. * true on success, false on failure.
  4034. */
  4035. function highlight_file ($filename, $return = null) {}
  4036. /**
  4037. * &Alias; <function>highlight_file</function>
  4038. * @link http://www.php.net/manual/en/function.show-source.php
  4039. * @param file_name
  4040. * @param return[optional]
  4041. */
  4042. function show_source ($file_name, $return) {}
  4043. /**
  4044. * Syntax highlighting of a string
  4045. * @link http://www.php.net/manual/en/function.highlight-string.php
  4046. * @param str string <p>
  4047. * The PHP code to be highlighted. This should include the opening tag.
  4048. * </p>
  4049. * @param return bool[optional] <p>
  4050. * Set this parameter to true to make this function return the
  4051. * highlighted code.
  4052. * </p>
  4053. * @return mixed If return is set to true, returns the highlighted
  4054. * code as a string instead of printing it out. Otherwise, it will return
  4055. * true on success, false on failure.
  4056. */
  4057. function highlight_string ($str, $return = null) {}
  4058. /**
  4059. * Return source with stripped comments and whitespace
  4060. * @link http://www.php.net/manual/en/function.php-strip-whitespace.php
  4061. * @param filename string <p>
  4062. * Path to the PHP file.
  4063. * </p>
  4064. * @return string The stripped source code will be returned on success, or an empty string
  4065. * on failure.
  4066. * </p>
  4067. * <p>
  4068. * This function works as described as of PHP 5.0.1. Before this it would
  4069. * only return an empty string. For more information on this bug and its
  4070. * prior behavior, see bug report
  4071. * #29606.
  4072. */
  4073. function php_strip_whitespace ($filename) {}
  4074. /**
  4075. * Gets the value of a configuration option
  4076. * @link http://www.php.net/manual/en/function.ini-get.php
  4077. * @param varname string <p>
  4078. * The configuration option name.
  4079. * </p>
  4080. * @return string the value of the configuration option as a string on success, or
  4081. * an empty string on failure or for null values.
  4082. */
  4083. function ini_get ($varname) {}
  4084. /**
  4085. * Gets all configuration options
  4086. * @link http://www.php.net/manual/en/function.ini-get-all.php
  4087. * @param extension string[optional] <p>
  4088. * An optional extension name. If set, the function return only options
  4089. * specific for that extension.
  4090. * </p>
  4091. * @param details bool[optional] <p>
  4092. * Retrieve details settings or only the current value for each setting.
  4093. * Default is true (retrieve details).
  4094. * </p>
  4095. * @return array an associative array with directive name as the array key.
  4096. * </p>
  4097. * <p>
  4098. * When details is true (default) the array will
  4099. * contain global_value (set in
  4100. * &php.ini;), local_value (perhaps set with
  4101. * ini_set or &htaccess;), and
  4102. * access (the access level).
  4103. * </p>
  4104. * <p>
  4105. * When details is false the value will be the
  4106. * current value of the option.
  4107. * </p>
  4108. * <p>
  4109. * See the manual section
  4110. * for information on what access levels mean.
  4111. * </p>
  4112. * <p>
  4113. * It's possible for a directive to have multiple access levels, which is
  4114. * why access shows the appropriate bitmask values.
  4115. */
  4116. function ini_get_all ($extension = null, $details = null) {}
  4117. /**
  4118. * Sets the value of a configuration option
  4119. * @link http://www.php.net/manual/en/function.ini-set.php
  4120. * @param varname string <p>
  4121. * </p>
  4122. * <p>
  4123. * Not all the available options can be changed using
  4124. * ini_set. There is a list of all available options
  4125. * in the appendix.
  4126. * </p>
  4127. * @param newvalue string <p>
  4128. * The new value for the option.
  4129. * </p>
  4130. * @return string the old value on success, false on failure.
  4131. */
  4132. function ini_set ($varname, $newvalue) {}
  4133. /**
  4134. * &Alias; <function>ini_set</function>
  4135. * @link http://www.php.net/manual/en/function.ini-alter.php
  4136. * @param varname
  4137. * @param newvalue
  4138. */
  4139. function ini_alter ($varname, $newvalue) {}
  4140. /**
  4141. * Restores the value of a configuration option
  4142. * @link http://www.php.net/manual/en/function.ini-restore.php
  4143. * @param varname string <p>
  4144. * The configuration option name.
  4145. * </p>
  4146. * @return void
  4147. */
  4148. function ini_restore ($varname) {}
  4149. /**
  4150. * Gets the current include_path configuration option
  4151. * @link http://www.php.net/manual/en/function.get-include-path.php
  4152. * @return string the path, as a string.
  4153. */
  4154. function get_include_path () {}
  4155. /**
  4156. * Sets the include_path configuration option
  4157. * @link http://www.php.net/manual/en/function.set-include-path.php
  4158. * @param new_include_path string <p>
  4159. * The new value for the include_path
  4160. * </p>
  4161. * @return string the old include_path on
  4162. * success&return.falseforfailure;.
  4163. */
  4164. function set_include_path ($new_include_path) {}
  4165. /**
  4166. * Restores the value of the include_path configuration option
  4167. * @link http://www.php.net/manual/en/function.restore-include-path.php
  4168. * @return void
  4169. */
  4170. function restore_include_path () {}
  4171. /**
  4172. * Send a cookie
  4173. * @link http://www.php.net/manual/en/function.setcookie.php
  4174. * @param name string <p>
  4175. * The name of the cookie.
  4176. * </p>
  4177. * @param value string[optional] <p>
  4178. * The value of the cookie. This value is stored on the clients
  4179. * computer; do not store sensitive information.
  4180. * Assuming the name is 'cookiename', this
  4181. * value is retrieved through $_COOKIE['cookiename']
  4182. * </p>
  4183. * @param expire int[optional] <p>
  4184. * The time the cookie expires. This is a Unix timestamp so is
  4185. * in number of seconds since the epoch. In other words, you'll
  4186. * most likely set this with the time function
  4187. * plus the number of seconds before you want it to expire. Or
  4188. * you might use mktime.
  4189. * time()+60*60*24*30 will set the cookie to
  4190. * expire in 30 days. If set to 0, or omitted, the cookie will expire at
  4191. * the end of the session (when the browser closes).
  4192. * </p>
  4193. * <p>
  4194. * <p>
  4195. * You may notice the expire parameter takes on a
  4196. * Unix timestamp, as opposed to the date format Wdy, DD-Mon-YYYY
  4197. * HH:MM:SS GMT, this is because PHP does this conversion
  4198. * internally.
  4199. * </p>
  4200. * <p>
  4201. * expire is compared to the client's time which can
  4202. * differ from server's time.
  4203. * </p>
  4204. * </p>
  4205. * @param path string[optional] <p>
  4206. * The path on the server in which the cookie will be available on.
  4207. * If set to '/', the cookie will be available
  4208. * within the entire domain. If set to
  4209. * '/foo/', the cookie will only be available
  4210. * within the /foo/ directory and all
  4211. * sub-directories such as /foo/bar/ of
  4212. * domain. The default value is the
  4213. * current directory that the cookie is being set in.
  4214. * </p>
  4215. * @param domain string[optional] <p>
  4216. * The domain that the cookie is available.
  4217. * To make the cookie available on all subdomains of example.com
  4218. * then you'd set it to '.example.com'. The
  4219. * . is not required but makes it compatible
  4220. * with more browsers. Setting it to www.example.com
  4221. * will make the cookie only available in the www
  4222. * subdomain. Refer to tail matching in the
  4223. * spec for details.
  4224. * </p>
  4225. * @param secure bool[optional] <p>
  4226. * Indicates that the cookie should only be transmitted over a
  4227. * secure HTTPS connection from the client. When set to true, the
  4228. * cookie will only be set if a secure connection exists.
  4229. * On the server-side, it's on the programmer to send this
  4230. * kind of cookie only on secure connection (e.g. with respect to
  4231. * $_SERVER["HTTPS"]).
  4232. * </p>
  4233. * @param httponly bool[optional] <p>
  4234. * When true the cookie will be made accessible only through the HTTP
  4235. * protocol. This means that the cookie won't be accessible by
  4236. * scripting languages, such as JavaScript. This setting can effectively
  4237. * help to reduce identity theft through XSS attacks (although it is
  4238. * not supported by all browsers). Added in PHP 5.2.0.
  4239. * true or false
  4240. * </p>
  4241. * @return bool If output exists prior to calling this function,
  4242. * setcookie will fail and return false. If
  4243. * setcookie successfully runs, it will return true.
  4244. * This does not indicate whether the user accepted the cookie.
  4245. */
  4246. function setcookie ($name, $value = null, $expire = null, $path = null, $domain = null, $secure = null, $httponly = null) {}
  4247. /**
  4248. * Send a cookie without urlencoding the cookie value
  4249. * @link http://www.php.net/manual/en/function.setrawcookie.php
  4250. * @param name string
  4251. * @param value string[optional]
  4252. * @param expire int[optional]
  4253. * @param path string[optional]
  4254. * @param domain string[optional]
  4255. * @param secure bool[optional]
  4256. * @param httponly bool[optional]
  4257. * @return bool Returns true on success or false on failure.
  4258. */
  4259. function setrawcookie ($name, $value = null, $expire = null, $path = null, $domain = null, $secure = null, $httponly = null) {}
  4260. /**
  4261. * Send a raw HTTP header
  4262. * @link http://www.php.net/manual/en/function.header.php
  4263. * @param string string <p>
  4264. * The header string.
  4265. * </p>
  4266. * <p>
  4267. * There are two special-case header calls. The first is a header
  4268. * that starts with the string "HTTP/" (case is not
  4269. * significant), which will be used to figure out the HTTP status
  4270. * code to send. For example, if you have configured Apache to
  4271. * use a PHP script to handle requests for missing files (using
  4272. * the ErrorDocument directive), you may want to
  4273. * make sure that your script generates the proper status code.
  4274. * </p>
  4275. * <p>
  4276. * ]]>
  4277. * </p>
  4278. * <p>
  4279. * The second special case is the "Location:" header. Not only does
  4280. * it send this header back to the browser, but it also returns a
  4281. * REDIRECT (302) status code to the browser
  4282. * unless the 201 or
  4283. * a 3xx status code has already been set.
  4284. * </p>
  4285. * <p>
  4286. * ]]>
  4287. * </p>
  4288. * @param replace bool[optional] <p>
  4289. * The optional replace parameter indicates
  4290. * whether the header should replace a previous similar header, or
  4291. * add a second header of the same type. By default it will replace,
  4292. * but if you pass in false as the second argument you can force
  4293. * multiple headers of the same type. For example:
  4294. * </p>
  4295. * <p>
  4296. * ]]>
  4297. * </p>
  4298. * @param http_response_code int[optional] <p>
  4299. * Forces the HTTP response code to the specified value.
  4300. * </p>
  4301. * @return void
  4302. */
  4303. function header ($string, $replace = null, $http_response_code = null) {}
  4304. /**
  4305. * Checks if or where headers have been sent
  4306. * @link http://www.php.net/manual/en/function.headers-sent.php
  4307. * @param file string[optional] <p>
  4308. * If the optional file and
  4309. * line parameters are set,
  4310. * headers_sent will put the PHP source file name
  4311. * and line number where output started in the file
  4312. * and line variables.
  4313. * </p>
  4314. * @param line int[optional] <p>
  4315. * The line number where the output started.
  4316. * </p>
  4317. * @return bool headers_sent will return false if no HTTP headers
  4318. * have already been sent or true otherwise.
  4319. */
  4320. function headers_sent (&$file = null, &$line = null) {}
  4321. /**
  4322. * Returns a list of response headers sent (or ready to send)
  4323. * @link http://www.php.net/manual/en/function.headers-list.php
  4324. * @return array a numerically indexed array of headers.
  4325. */
  4326. function headers_list () {}
  4327. /**
  4328. * Check whether client disconnected
  4329. * @link http://www.php.net/manual/en/function.connection-aborted.php
  4330. * @return int 1 if client disconnected, 0 otherwise.
  4331. */
  4332. function connection_aborted () {}
  4333. /**
  4334. * Returns connection status bitfield
  4335. * @link http://www.php.net/manual/en/function.connection-status.php
  4336. * @return int the connection status bitfield, which can be used against the
  4337. * CONNECTION_XXX constants to determine the connection
  4338. * status.
  4339. */
  4340. function connection_status () {}
  4341. /**
  4342. * Set whether a client disconnect should abort script execution
  4343. * @link http://www.php.net/manual/en/function.ignore-user-abort.php
  4344. * @param value string[optional] <p>
  4345. * If set, this function will set the ignore_user_abort ini setting
  4346. * to the given value. If not, this function will
  4347. * only return the previous setting without changing it.
  4348. * </p>
  4349. * @return int the previous setting, as an integer.
  4350. */
  4351. function ignore_user_abort ($value = null) {}
  4352. /**
  4353. * Parse a configuration file
  4354. * @link http://www.php.net/manual/en/function.parse-ini-file.php
  4355. * @param filename string <p>
  4356. * The filename of the ini file being parsed.
  4357. * </p>
  4358. * @param process_sections bool[optional] <p>
  4359. * By setting the process_sections
  4360. * parameter to true, you get a multidimensional array, with
  4361. * the section names and settings included. The default
  4362. * for process_sections is false
  4363. * </p>
  4364. * @param scanner_mode int[optional] <p>
  4365. * Can either be INI_SCANNER_NORMAL (default) or
  4366. * INI_SCANNER_RAW. If INI_SCANNER_RAW
  4367. * is supplied, then option values will not be parsed.
  4368. * </p>
  4369. * @return array The settings are returned as an associative array on success,
  4370. * and false on failure.
  4371. */
  4372. function parse_ini_file ($filename, $process_sections = null, $scanner_mode = null) {}
  4373. /**
  4374. * Tells whether the file was uploaded via HTTP POST
  4375. * @link http://www.php.net/manual/en/function.is-uploaded-file.php
  4376. * @param filename string <p>
  4377. * The filename being checked.
  4378. * </p>
  4379. * @return bool Returns true on success or false on failure.
  4380. */
  4381. function is_uploaded_file ($filename) {}
  4382. /**
  4383. * Moves an uploaded file to a new location
  4384. * @link http://www.php.net/manual/en/function.move-uploaded-file.php
  4385. * @param filename string <p>
  4386. * The filename of the uploaded file.
  4387. * </p>
  4388. * @param destination string <p>
  4389. * The destination of the moved file.
  4390. * </p>
  4391. * @return bool If filename is not a valid upload file,
  4392. * then no action will occur, and
  4393. * move_uploaded_file will return
  4394. * false.
  4395. * </p>
  4396. * <p>
  4397. * If filename is a valid upload file, but
  4398. * cannot be moved for some reason, no action will occur, and
  4399. * move_uploaded_file will return
  4400. * false. Additionally, a warning will be issued.
  4401. */
  4402. function move_uploaded_file ($filename, $destination) {}
  4403. /**
  4404. * Get the Internet host name corresponding to a given IP address
  4405. * @link http://www.php.net/manual/en/function.gethostbyaddr.php
  4406. * @param ip_address string <p>
  4407. * The host IP address.
  4408. * </p>
  4409. * @return string the host name or the unmodified ip_address
  4410. * on failure.
  4411. */
  4412. function gethostbyaddr ($ip_address) {}
  4413. /**
  4414. * Get the IPv4 address corresponding to a given Internet host name
  4415. * @link http://www.php.net/manual/en/function.gethostbyname.php
  4416. * @param hostname string <p>
  4417. * The host name.
  4418. * </p>
  4419. * @return string the IPv4 address or a string containing the unmodified
  4420. * hostname on failure.
  4421. */
  4422. function gethostbyname ($hostname) {}
  4423. /**
  4424. * Get a list of IPv4 addresses corresponding to a given Internet host
  4425. name
  4426. * @link http://www.php.net/manual/en/function.gethostbynamel.php
  4427. * @param hostname string <p>
  4428. * The host name.
  4429. * </p>
  4430. * @return array an array of IPv4 addresses or false if
  4431. * hostname could not be resolved.
  4432. */
  4433. function gethostbynamel ($hostname) {}
  4434. /**
  4435. * &Alias; <function>checkdnsrr</function>
  4436. * @link http://www.php.net/manual/en/function.dns-check-record.php
  4437. * @param host
  4438. * @param type[optional]
  4439. */
  4440. function dns_check_record ($host, $type) {}
  4441. /**
  4442. * Check DNS records corresponding to a given Internet host name or IP address
  4443. * @link http://www.php.net/manual/en/function.checkdnsrr.php
  4444. * @param host string <p>
  4445. * host may either be the IP address in
  4446. * dotted-quad notation or the host name.
  4447. * </p>
  4448. * @param type string[optional] <p>
  4449. * type may be any one of: A, MX, NS, SOA,
  4450. * PTR, CNAME, AAAA, A6, SRV, NAPTR, TXT or ANY.
  4451. * </p>
  4452. * @return bool true if any records are found; returns false if no records
  4453. * were found or if an error occurred.
  4454. */
  4455. function checkdnsrr ($host, $type = null) {}
  4456. /**
  4457. * &Alias; <function>getmxrr</function>
  4458. * @link http://www.php.net/manual/en/function.dns-get-mx.php
  4459. * @param hostname
  4460. * @param mxhosts
  4461. * @param weight[optional]
  4462. */
  4463. function dns_get_mx ($hostname, &$mxhosts, &$weight) {}
  4464. /**
  4465. * Get MX records corresponding to a given Internet host name
  4466. * @link http://www.php.net/manual/en/function.getmxrr.php
  4467. * @param hostname string <p>
  4468. * The Internet host name.
  4469. * </p>
  4470. * @param mxhosts array <p>
  4471. * A list of the MX records found is placed into the array
  4472. * mxhosts.
  4473. * </p>
  4474. * @param weight array[optional] <p>
  4475. * If the weight array is given, it will be filled
  4476. * with the weight information gathered.
  4477. * </p>
  4478. * @return bool true if any records are found; returns false if no records
  4479. * were found or if an error occurred.
  4480. */
  4481. function getmxrr ($hostname, array &$mxhosts, array &$weight = null) {}
  4482. /**
  4483. * Fetch DNS Resource Records associated with a hostname
  4484. * @link http://www.php.net/manual/en/function.dns-get-record.php
  4485. * @param hostname string <p>
  4486. * hostname should be a valid DNS hostname such
  4487. * as "www.example.com". Reverse lookups can be generated
  4488. * using in-addr.arpa notation, but
  4489. * gethostbyaddr is more suitable for
  4490. * the majority of reverse lookups.
  4491. * </p>
  4492. * <p>
  4493. * Per DNS standards, email addresses are given in user.host format (for
  4494. * example: hostmaster.example.com as opposed to hostmaster@example.com),
  4495. * be sure to check this value and modify if necessary before using it
  4496. * with a functions such as mail.
  4497. * </p>
  4498. * @param type int[optional] <p>
  4499. * By default, dns_get_record will search for any
  4500. * resource records associated with hostname.
  4501. * To limit the query, specify the optional type
  4502. * parameter. May be any one of the following:
  4503. * DNS_A, DNS_CNAME,
  4504. * DNS_HINFO, DNS_MX,
  4505. * DNS_NS, DNS_PTR,
  4506. * DNS_SOA, DNS_TXT,
  4507. * DNS_AAAA, DNS_SRV,
  4508. * DNS_NAPTR, DNS_A6,
  4509. * DNS_ALL or DNS_ANY.
  4510. * </p>
  4511. * <p>
  4512. * Because of eccentricities in the performance of libresolv
  4513. * between platforms, DNS_ANY will not
  4514. * always return every record, the slower DNS_ALL
  4515. * will collect all records more reliably.
  4516. * </p>
  4517. * @param authns array[optional] <p>
  4518. * Passed by reference and, if given, will be populated with Resource
  4519. * Records for the Authoritative Name Servers.
  4520. * </p>
  4521. * @param addtl array[optional] <p>
  4522. * Passed by reference and, if given, will be populated with any
  4523. * Additional Records.
  4524. * </p>
  4525. * @return array This function returns an array of associative arrays. Each associative array contains
  4526. * at minimum the following keys:
  4527. * <table>
  4528. * Basic DNS attributes
  4529. * <tr valign="top">
  4530. * <td>Attribute</td>
  4531. * <td>Meaning</td>
  4532. * </tr>
  4533. * <tr valign="top">
  4534. * <td>host</td>
  4535. * <td>
  4536. * The record in the DNS namespace to which the rest of the associated data refers.
  4537. * </td>
  4538. * </tr>
  4539. * <tr valign="top">
  4540. * <td>class</td>
  4541. * <td>
  4542. * dns_get_record only returns Internet class records and as
  4543. * such this parameter will always return IN.
  4544. * </td>
  4545. * </tr>
  4546. * <tr valign="top">
  4547. * <td>type</td>
  4548. * <td>
  4549. * String containing the record type. Additional attributes will also be contained
  4550. * in the resulting array dependant on the value of type. See table below.
  4551. * </td>
  4552. * </tr>
  4553. * <tr valign="top">
  4554. * <td>ttl</td>
  4555. * <td>
  4556. * "Time To Live" remaining for this record. This will not equal
  4557. * the record's original ttl, but will rather equal the original ttl minus whatever
  4558. * length of time has passed since the authoritative name server was queried.
  4559. * </td>
  4560. * </tr>
  4561. * </table>
  4562. * </p>
  4563. * <p>
  4564. * <table>
  4565. * Other keys in associative arrays dependant on 'type'
  4566. * <tr valign="top">
  4567. * <td>Type</td>
  4568. * <td>Extra Columns</td>
  4569. * </tr>
  4570. * <tr valign="top">
  4571. * <td>A</td>
  4572. * <td>
  4573. * ip: An IPv4 addresses in dotted decimal notation.
  4574. * </td>
  4575. * </tr>
  4576. * <tr valign="top">
  4577. * <td>MX</td>
  4578. * <td>
  4579. * pri: Priority of mail exchanger.
  4580. * Lower numbers indicate greater priority.
  4581. * target: FQDN of the mail exchanger.
  4582. * See also dns_get_mx.
  4583. * </td>
  4584. * </tr>
  4585. * <tr valign="top">
  4586. * <td>CNAME</td>
  4587. * <td>
  4588. * target: FQDN of location in DNS namespace to which
  4589. * the record is aliased.
  4590. * </td>
  4591. * </tr>
  4592. * <tr valign="top">
  4593. * <td>NS</td>
  4594. * <td>
  4595. * target: FQDN of the name server which is authoritative
  4596. * for this hostname.
  4597. * </td>
  4598. * </tr>
  4599. * <tr valign="top">
  4600. * <td>PTR</td>
  4601. * <td>
  4602. * target: Location within the DNS namespace to which
  4603. * this record points.
  4604. * </td>
  4605. * </tr>
  4606. * <tr valign="top">
  4607. * <td>TXT</td>
  4608. * <td>
  4609. * txt: Arbitrary string data associated with this record.
  4610. * </td>
  4611. * </tr>
  4612. * <tr valign="top">
  4613. * <td>HINFO</td>
  4614. * <td>
  4615. * cpu: IANA number designating the CPU of the machine
  4616. * referenced by this record.
  4617. * os: IANA number designating the Operating System on
  4618. * the machine referenced by this record.
  4619. * See IANA's Operating System
  4620. * Names for the meaning of these values.
  4621. * </td>
  4622. * </tr>
  4623. * <tr valign="top">
  4624. * <td>SOA</td>
  4625. * <td>
  4626. * mname: FQDN of the machine from which the resource
  4627. * records originated.
  4628. * rname: Email address of the administrative contain
  4629. * for this domain.
  4630. * serial: Serial # of this revision of the requested
  4631. * domain.
  4632. * refresh: Refresh interval (seconds) secondary name
  4633. * servers should use when updating remote copies of this domain.
  4634. * retry: Length of time (seconds) to wait after a
  4635. * failed refresh before making a second attempt.
  4636. * expire: Maximum length of time (seconds) a secondary
  4637. * DNS server should retain remote copies of the zone data without a
  4638. * successful refresh before discarding.
  4639. * minimum-ttl: Minimum length of time (seconds) a
  4640. * client can continue to use a DNS resolution before it should request
  4641. * a new resolution from the server. Can be overridden by individual
  4642. * resource records.
  4643. * </td>
  4644. * </tr>
  4645. * <tr valign="top">
  4646. * <td>AAAA</td>
  4647. * <td>
  4648. * ipv6: IPv6 address
  4649. * </td>
  4650. * </tr>
  4651. * <tr valign="top">
  4652. * <td>A6(PHP &gt;= 5.1.0)</td>
  4653. * <td>
  4654. * masklen: Length (in bits) to inherit from the target
  4655. * specified by chain.
  4656. * ipv6: Address for this specific record to merge with
  4657. * chain.
  4658. * chain: Parent record to merge with
  4659. * ipv6 data.
  4660. * </td>
  4661. * </tr>
  4662. * <tr valign="top">
  4663. * <td>SRV</td>
  4664. * <td>
  4665. * pri: (Priority) lowest priorities should be used first.
  4666. * weight: Ranking to weight which of commonly prioritized
  4667. * targets should be chosen at random.
  4668. * target and port: hostname and port
  4669. * where the requested service can be found.
  4670. * For additional information see: RFC 2782
  4671. * </td>
  4672. * </tr>
  4673. * <tr valign="top">
  4674. * <td>NAPTR</td>
  4675. * <td>
  4676. * order and pref: Equivalent to
  4677. * pri and weight above.
  4678. * flags, services, regex,
  4679. * and replacement: Parameters as defined by
  4680. * RFC 2915.
  4681. * </td>
  4682. * </tr>
  4683. * </table>
  4684. */
  4685. function dns_get_record ($hostname, $type = null, array &$authns = null, array &$addtl = null) {}
  4686. /**
  4687. * Get the integer value of a variable
  4688. * @link http://www.php.net/manual/en/function.intval.php
  4689. * @param var mixed <p>
  4690. * The scalar value being converted to an integer
  4691. * </p>
  4692. * @param base int[optional] <p>
  4693. * The base for the conversion
  4694. * </p>
  4695. * @return int The integer value of var on success, or 0 on
  4696. * failure. Empty arrays and objects return 0, non-empty arrays and
  4697. * objects return 1.
  4698. * </p>
  4699. * <p>
  4700. * The maximum value depends on the system. 32 bit systems have a
  4701. * maximum signed integer range of -2147483648 to 2147483647. So for example
  4702. * on such a system, intval('1000000000000') will return
  4703. * 2147483647. The maximum signed integer value for 64 bit systems is
  4704. * 9223372036854775807.
  4705. * </p>
  4706. * <p>
  4707. * Strings will most likely return 0 although this depends on the
  4708. * leftmost characters of the string. The common rules of
  4709. * integer casting
  4710. * apply.
  4711. */
  4712. function intval ($var, $base = null) {}
  4713. /**
  4714. * Get float value of a variable
  4715. * @link http://www.php.net/manual/en/function.floatval.php
  4716. * @param var mixed <p>
  4717. * May be any scalar type. floatval should not be used
  4718. * on objects, as doing so will emit an E_NOTICE level
  4719. * error and return 1.
  4720. * </p>
  4721. * @return float The float value of the given variable. Empty arrays return 0, non-empty
  4722. * arrays return 1.
  4723. */
  4724. function floatval ($var) {}
  4725. /**
  4726. * &Alias; <function>floatval</function>
  4727. * @link http://www.php.net/manual/en/function.doubleval.php
  4728. * @param var
  4729. */
  4730. function doubleval ($var) {}
  4731. /**
  4732. * Get string value of a variable
  4733. * @link http://www.php.net/manual/en/function.strval.php
  4734. * @param var mixed <p>
  4735. * The variable that is being converted to a string.
  4736. * </p>
  4737. * <p>
  4738. * var may be any scalar type. You cannot use
  4739. * strval on arrays or objects.
  4740. * </p>
  4741. * @return string The string value of var.
  4742. */
  4743. function strval ($var) {}
  4744. /**
  4745. * Get the type of a variable
  4746. * @link http://www.php.net/manual/en/function.gettype.php
  4747. * @param var mixed <p>
  4748. * The variable being type checked.
  4749. * </p>
  4750. * @return string Possibles values for the returned string are:
  4751. * "boolean"
  4752. * "integer"
  4753. * "double" (for historical reasons "double" is
  4754. * returned in case of a float, and not simply
  4755. * "float")
  4756. * "string"
  4757. * "array"
  4758. * "object"
  4759. * "resource"
  4760. * "NULL"
  4761. * "unknown type"
  4762. */
  4763. function gettype ($var) {}
  4764. /**
  4765. * Set the type of a variable
  4766. * @link http://www.php.net/manual/en/function.settype.php
  4767. * @param var mixed <p>
  4768. * The variable being converted.
  4769. * </p>
  4770. * @param type string <p>
  4771. * Possibles values of type are:
  4772. * "boolean" (or, since PHP 4.2.0, "bool")
  4773. * @return bool Returns true on success or false on failure.
  4774. */
  4775. function settype (&$var, $type) {}
  4776. /**
  4777. * Finds whether a variable is &null;
  4778. * @link http://www.php.net/manual/en/function.is-null.php
  4779. * @param var mixed <p>
  4780. * The variable being evaluated.
  4781. * </p>
  4782. * @return bool true if var is null, false
  4783. * otherwise.
  4784. */
  4785. function is_null ($var) {}
  4786. /**
  4787. * Finds whether a variable is a resource
  4788. * @link http://www.php.net/manual/en/function.is-resource.php
  4789. * @param var mixed <p>
  4790. * The variable being evaluated.
  4791. * </p>
  4792. * @return bool true if var is a resource,
  4793. * false otherwise.
  4794. */
  4795. function is_resource ($var) {}
  4796. /**
  4797. * Finds out whether a variable is a boolean
  4798. * @link http://www.php.net/manual/en/function.is-bool.php
  4799. * @param var mixed <p>
  4800. * The variable being evaluated.
  4801. * </p>
  4802. * @return bool true if var is a boolean,
  4803. * false otherwise.
  4804. */
  4805. function is_bool ($var) {}
  4806. /**
  4807. * &Alias; <function>is_int</function>
  4808. * @link http://www.php.net/manual/en/function.is-long.php
  4809. * @param var
  4810. */
  4811. function is_long ($var) {}
  4812. /**
  4813. * Finds whether the type of a variable is float
  4814. * @link http://www.php.net/manual/en/function.is-float.php
  4815. * @param var mixed <p>
  4816. * The variable being evaluated.
  4817. * </p>
  4818. * @return bool true if var is a float,
  4819. * false otherwise.
  4820. */
  4821. function is_float ($var) {}
  4822. /**
  4823. * Find whether the type of a variable is integer
  4824. * @link http://www.php.net/manual/en/function.is-int.php
  4825. * @param var mixed <p>
  4826. * The variable being evaluated.
  4827. * </p>
  4828. * @return bool true if var is an integer,
  4829. * false otherwise.
  4830. */
  4831. function is_int ($var) {}
  4832. /**
  4833. * &Alias; <function>is_int</function>
  4834. * @link http://www.php.net/manual/en/function.is-integer.php
  4835. * @param var
  4836. */
  4837. function is_integer ($var) {}
  4838. /**
  4839. * &Alias; <function>is_float</function>
  4840. * @link http://www.php.net/manual/en/function.is-double.php
  4841. * @param var
  4842. */
  4843. function is_double ($var) {}
  4844. /**
  4845. * &Alias; <function>is_float</function>
  4846. * @link http://www.php.net/manual/en/function.is-real.php
  4847. * @param var
  4848. */
  4849. function is_real ($var) {}
  4850. /**
  4851. * Finds whether a variable is a number or a numeric string
  4852. * @link http://www.php.net/manual/en/function.is-numeric.php
  4853. * @param var mixed <p>
  4854. * The variable being evaluated.
  4855. * </p>
  4856. * @return bool true if var is a number or a numeric
  4857. * string, false otherwise.
  4858. */
  4859. function is_numeric ($var) {}
  4860. /**
  4861. * Find whether the type of a variable is string
  4862. * @link http://www.php.net/manual/en/function.is-string.php
  4863. * @param var mixed <p>
  4864. * The variable being evaluated.
  4865. * </p>
  4866. * @return bool true if var is of type string,
  4867. * false otherwise.
  4868. */
  4869. function is_string ($var) {}
  4870. /**
  4871. * Finds whether a variable is an array
  4872. * @link http://www.php.net/manual/en/function.is-array.php
  4873. * @param var mixed <p>
  4874. * The variable being evaluated.
  4875. * </p>
  4876. * @return bool true if var is an array,
  4877. * false otherwise.
  4878. */
  4879. function is_array ($var) {}
  4880. /**
  4881. * Finds whether a variable is an object
  4882. * @link http://www.php.net/manual/en/function.is-object.php
  4883. * @param var mixed <p>
  4884. * The variable being evaluated.
  4885. * </p>
  4886. * @return bool true if var is an object,
  4887. * false otherwise.
  4888. */
  4889. function is_object ($var) {}
  4890. /**
  4891. * Finds whether a variable is a scalar
  4892. * @link http://www.php.net/manual/en/function.is-scalar.php
  4893. * @param var mixed <p>
  4894. * The variable being evaluated.
  4895. * </p>
  4896. * @return bool true if var is a scalar false
  4897. * otherwise.
  4898. */
  4899. function is_scalar ($var) {}
  4900. /**
  4901. * Verify that the contents of a variable can be called as a function
  4902. * @link http://www.php.net/manual/en/function.is-callable.php
  4903. * @param name callback <p>
  4904. * Can be either the name of a function stored in a string variable, or
  4905. * an object and the name of a method within the object, like this:
  4906. * array($SomeObject, 'MethodName')
  4907. * </p>
  4908. * @param syntax_only bool[optional] <p>
  4909. * If set to true the function only verifies that
  4910. * name might be a function or method. It will only
  4911. * reject simple variables that are not strings, or an array that does
  4912. * not have a valid structure to be used as a callback. The valid ones
  4913. * are supposed to have only 2 entries, the first of which is an object
  4914. * or a string, and the second a string.
  4915. * </p>
  4916. * @param callable_name string[optional] <p>
  4917. * Receives the "callable name". In the example below it is
  4918. * "someClass::someMethod". Note, however, that despite the implication
  4919. * that someClass::SomeMethod() is a callable static method, this is not
  4920. * the case.
  4921. * </p>
  4922. * @return bool true if name is callable, false
  4923. * otherwise.
  4924. */
  4925. function is_callable ($name, $syntax_only = null, &$callable_name = null) {}
  4926. /**
  4927. * Regular expression match
  4928. * @link http://www.php.net/manual/en/function.ereg.php
  4929. * @param pattern string <p>
  4930. * Case sensitive regular expression.
  4931. * </p>
  4932. * @param string string <p>
  4933. * The input string.
  4934. * </p>
  4935. * @param regs array[optional] <p>
  4936. * If matches are found for parenthesized substrings of
  4937. * pattern and the function is called with the
  4938. * third argument regs, the matches will be stored
  4939. * in the elements of the array regs.
  4940. * </p>
  4941. * <p>
  4942. * $regs[1] will contain the substring which starts at
  4943. * the first left parenthesis; $regs[2] will contain
  4944. * the substring starting at the second, and so on.
  4945. * $regs[0] will contain a copy of the complete string
  4946. * matched.
  4947. * </p>
  4948. * @return int the length of the matched string if a match for
  4949. * pattern was found in string,
  4950. * or false if no matches were found or an error occurred.
  4951. * </p>
  4952. * <p>
  4953. * If the optional parameter regs was not passed or
  4954. * the length of the matched string is 0, this function returns 1.
  4955. */
  4956. function ereg ($pattern, $string, array &$regs = null) {}
  4957. /**
  4958. * Replace regular expression
  4959. * @link http://www.php.net/manual/en/function.ereg-replace.php
  4960. * @param pattern string <p>
  4961. * A POSIX extended regular expression.
  4962. * </p>
  4963. * @param replacement string <p>
  4964. * If pattern contains parenthesized substrings,
  4965. * replacement may contain substrings of the form
  4966. * \\digit, which will be
  4967. * replaced by the text matching the digit'th parenthesized substring;
  4968. * \\0 will produce the entire contents of string.
  4969. * Up to nine substrings may be used. Parentheses may be nested, in which
  4970. * case they are counted by the opening parenthesis.
  4971. * </p>
  4972. * @param string string <p>
  4973. * The input string.
  4974. * </p>
  4975. * @return string The modified string is returned. If no matches are found in
  4976. * string, then it will be returned unchanged.
  4977. */
  4978. function ereg_replace ($pattern, $replacement, $string) {}
  4979. /**
  4980. * Case insensitive regular expression match
  4981. * @link http://www.php.net/manual/en/function.eregi.php
  4982. * @param pattern string <p>
  4983. * Case insensitive regular expression.
  4984. * </p>
  4985. * @param string string <p>
  4986. * The input string.
  4987. * </p>
  4988. * @param regs array[optional] <p>
  4989. * If matches are found for parenthesized substrings of
  4990. * pattern and the function is called with the
  4991. * third argument regs, the matches will be stored
  4992. * in the elements of the array regs.
  4993. * </p>
  4994. * <p>
  4995. * $regs[1] will contain the substring which starts at the first left
  4996. * parenthesis; $regs[2] will contain the substring starting at the
  4997. * second, and so on. $regs[0] will contain a copy of the complete string
  4998. * matched.
  4999. * </p>
  5000. * @return int the length of the matched string if a match for
  5001. * pattern was found in string,
  5002. * or false if no matches were found or an error occurred.
  5003. * </p>
  5004. * <p>
  5005. * If the optional parameter regs was not passed or
  5006. * the length of the matched string is 0, this function returns 1.
  5007. */
  5008. function eregi ($pattern, $string, array &$regs = null) {}
  5009. /**
  5010. * Replace regular expression case insensitive
  5011. * @link http://www.php.net/manual/en/function.eregi-replace.php
  5012. * @param pattern string <p>
  5013. * A POSIX extended regular expression.
  5014. * </p>
  5015. * @param replacement string <p>
  5016. * If pattern contains parenthesized substrings,
  5017. * replacement may contain substrings of the form
  5018. * \\digit, which will be
  5019. * replaced by the text matching the digit'th parenthesized substring;
  5020. * \\0 will produce the entire contents of string.
  5021. * Up to nine substrings may be used. Parentheses may be nested, in which
  5022. * case they are counted by the opening parenthesis.
  5023. * </p>
  5024. * @param string string <p>
  5025. * The input string.
  5026. * </p>
  5027. * @return string The modified string is returned. If no matches are found in
  5028. * string, then it will be returned unchanged.
  5029. */
  5030. function eregi_replace ($pattern, $replacement, $string) {}
  5031. /**
  5032. * Split string into array by regular expression
  5033. * @link http://www.php.net/manual/en/function.split.php
  5034. * @param pattern string <p>
  5035. * Case sensitive regular expression.
  5036. * </p>
  5037. * <p>
  5038. * If you want to split on any of the characters which are considered
  5039. * special by regular expressions, you'll need to escape them first. If
  5040. * you think split (or any other regex function, for
  5041. * that matter) is doing something weird, please read the file
  5042. * regex.7, included in the
  5043. * regex/ subdirectory of the PHP distribution. It's
  5044. * in manpage format, so you'll want to do something along the lines of
  5045. * man /usr/local/src/regex/regex.7 in order to read it.
  5046. * </p>
  5047. * @param string string <p>
  5048. * The input string.
  5049. * </p>
  5050. * @param limit int[optional] <p>
  5051. * If limit is set, the returned array will
  5052. * contain a maximum of limit elements with the
  5053. * last element containing the whole rest of
  5054. * string.
  5055. * </p>
  5056. * @return array an array of strings, each of which is a substring of
  5057. * string formed by splitting it on boundaries formed
  5058. * by the case-sensitive regular expression pattern.
  5059. * </p>
  5060. * <p>
  5061. * If there are n occurrences of
  5062. * pattern, the returned array will contain
  5063. * n+1 items. For example, if
  5064. * there is no occurrence of pattern, an array with
  5065. * only one element will be returned. Of course, this is also true if
  5066. * string is empty. If an error occurs,
  5067. * split returns false.
  5068. */
  5069. function split ($pattern, $string, $limit = null) {}
  5070. /**
  5071. * Split string into array by regular expression case insensitive
  5072. * @link http://www.php.net/manual/en/function.spliti.php
  5073. * @param pattern string <p>
  5074. * Case insensitive regular expression.
  5075. * </p>
  5076. * <p>
  5077. * If you want to split on any of the characters which are considered
  5078. * special by regular expressions, you'll need to escape them first. If
  5079. * you think spliti (or any other regex function, for
  5080. * that matter) is doing something weird, please read the file
  5081. * regex.7, included in the
  5082. * regex/ subdirectory of the PHP distribution. It's
  5083. * in manpage format, so you'll want to do something along the lines of
  5084. * man /usr/local/src/regex/regex.7 in order to read it.
  5085. * </p>
  5086. * @param string string <p>
  5087. * The input string.
  5088. * </p>
  5089. * @param limit int[optional] <p>
  5090. * If limit is set, the returned array will
  5091. * contain a maximum of limit elements with the
  5092. * last element containing the whole rest of
  5093. * string.
  5094. * </p>
  5095. * @return array an array of strings, each of which is a substring of
  5096. * string formed by splitting it on boundaries formed
  5097. * by the case insensitive regular expression pattern.
  5098. * </p>
  5099. * <p>
  5100. * If there are n occurrences of
  5101. * pattern, the returned array will contain
  5102. * n+1 items. For example, if
  5103. * there is no occurrence of pattern, an array with
  5104. * only one element will be returned. Of course, this is also true if
  5105. * string is empty. If an error occurs,
  5106. * spliti returns false.
  5107. */
  5108. function spliti ($pattern, $string, $limit = null) {}
  5109. /**
  5110. * &Alias; <function>implode</function>
  5111. * @link http://www.php.net/manual/en/function.join.php
  5112. * @param glue
  5113. * @param pieces
  5114. */
  5115. function join ($glue, $pieces) {}
  5116. /**
  5117. * Make regular expression for case insensitive match
  5118. * @link http://www.php.net/manual/en/function.sql-regcase.php
  5119. * @param string string <p>
  5120. * The input string.
  5121. * </p>
  5122. * @return string a valid regular expression which will match
  5123. * string, ignoring case. This expression is
  5124. * string with each alphabetic character converted to
  5125. * a bracket expression; this bracket expression contains that character's
  5126. * uppercase and lowercase form. Other characters remain unchanged.
  5127. */
  5128. function sql_regcase ($string) {}
  5129. /**
  5130. * Loads a PHP extension at runtime
  5131. * @link http://www.php.net/manual/en/function.dl.php
  5132. * @param library string <p>
  5133. * This parameter is only the filename of the
  5134. * extension to load which also depends on your platform. For example,
  5135. * the sockets extension (if compiled
  5136. * as a shared module, not the default!) would be called
  5137. * sockets.so on Unix platforms whereas it is called
  5138. * php_sockets.dll on the Windows platform.
  5139. * </p>
  5140. * <p>
  5141. * The directory where the extension is loaded from depends on your
  5142. * platform:
  5143. * </p>
  5144. * <p>
  5145. * Windows - If not explicitly set in the &php.ini;, the extension is
  5146. * loaded from C:\php4\extensions\ (PHP4) or
  5147. * C:\php5\ (PHP5) by default.
  5148. * </p>
  5149. * <p>
  5150. * Unix - If not explicitly set in the &php.ini;, the default extension
  5151. * directory depends on
  5152. * whether PHP has been built with --enable-debug
  5153. * or not
  5154. * @return bool Returns true on success or false on failure. If the functionality of loading modules is not available
  5155. * or has been disabled (either by setting
  5156. * enable_dl off or by enabling &safemode;
  5157. * in &php.ini;) an E_ERROR is emitted
  5158. * and execution is stopped. If dl fails because the
  5159. * specified library couldn't be loaded, in addition to false an
  5160. * E_WARNING message is emitted.
  5161. */
  5162. function dl ($library) {}
  5163. /**
  5164. * Closes process file pointer
  5165. * @link http://www.php.net/manual/en/function.pclose.php
  5166. * @param handle resource <p>
  5167. * The file pointer must be valid, and must have been returned by a
  5168. * successful call to popen.
  5169. * </p>
  5170. * @return int the termination status of the process that was run.
  5171. */
  5172. function pclose ($handle) {}
  5173. /**
  5174. * Opens process file pointer
  5175. * @link http://www.php.net/manual/en/function.popen.php
  5176. * @param command string <p>
  5177. * The command
  5178. * </p>
  5179. * @param mode string <p>
  5180. * The mode
  5181. * </p>
  5182. * @return resource a file pointer identical to that returned by
  5183. * fopen, except that it is unidirectional (may
  5184. * only be used for reading or writing) and must be closed with
  5185. * pclose. This pointer may be used with
  5186. * fgets, fgetss, and
  5187. * fwrite.
  5188. * </p>
  5189. * <p>
  5190. * If an error occurs, returns false.
  5191. */
  5192. function popen ($command, $mode) {}
  5193. /**
  5194. * Outputs a file
  5195. * @link http://www.php.net/manual/en/function.readfile.php
  5196. * @param filename string <p>
  5197. * The filename being read.
  5198. * </p>
  5199. * @param use_include_path bool[optional] <p>
  5200. * You can use the optional second parameter and set it to true, if
  5201. * you want to search for the file in the include_path, too.
  5202. * </p>
  5203. * @param context resource[optional] <p>
  5204. * A context stream resource.
  5205. * </p>
  5206. * @return int the number of bytes read from the file. If an error
  5207. * occurs, false is returned and unless the function was called as
  5208. * @readfile, an error message is printed.
  5209. */
  5210. function readfile ($filename, $use_include_path = null, $context = null) {}
  5211. /**
  5212. * Rewind the position of a file pointer
  5213. * @link http://www.php.net/manual/en/function.rewind.php
  5214. * @param handle resource <p>
  5215. * The file pointer must be valid, and must point to a file
  5216. * successfully opened by fopen.
  5217. * </p>
  5218. * @return bool Returns true on success or false on failure.
  5219. */
  5220. function rewind ($handle) {}
  5221. /**
  5222. * Removes directory
  5223. * @link http://www.php.net/manual/en/function.rmdir.php
  5224. * @param dirname string <p>
  5225. * Path to the directory.
  5226. * </p>
  5227. * @param context resource[optional] &note.context-support;
  5228. * @return bool Returns true on success or false on failure.
  5229. */
  5230. function rmdir ($dirname, $context = null) {}
  5231. /**
  5232. * Changes the current umask
  5233. * @link http://www.php.net/manual/en/function.umask.php
  5234. * @param mask int[optional] <p>
  5235. * The new umask.
  5236. * </p>
  5237. * @return int umask without arguments simply returns the
  5238. * current umask otherwise the old umask is returned.
  5239. */
  5240. function umask ($mask = null) {}
  5241. /**
  5242. * Closes an open file pointer
  5243. * @link http://www.php.net/manual/en/function.fclose.php
  5244. * @param handle resource <p>
  5245. * The file pointer must be valid, and must point to a file successfully
  5246. * opened by fopen or fsockopen.
  5247. * </p>
  5248. * @return bool Returns true on success or false on failure.
  5249. */
  5250. function fclose ($handle) {}
  5251. /**
  5252. * Tests for end-of-file on a file pointer
  5253. * @link http://www.php.net/manual/en/function.feof.php
  5254. * @param handle resource &fs.validfp.all;
  5255. * @return bool true if the file pointer is at EOF or an error occurs
  5256. * (including socket timeout); otherwise returns false.
  5257. */
  5258. function feof ($handle) {}
  5259. /**
  5260. * Gets character from file pointer
  5261. * @link http://www.php.net/manual/en/function.fgetc.php
  5262. * @param handle resource &fs.validfp.all;
  5263. * @return string a string containing a single character read from the file pointed
  5264. * to by handle. Returns false on EOF.
  5265. */
  5266. function fgetc ($handle) {}
  5267. /**
  5268. * Gets line from file pointer
  5269. * @link http://www.php.net/manual/en/function.fgets.php
  5270. * @param handle resource &fs.validfp.all;
  5271. * @param length int[optional] <p>
  5272. * Reading ends when length - 1 bytes have been
  5273. * read, on a newline (which is included in the return value), or on EOF
  5274. * (whichever comes first). If no length is specified, it will keep
  5275. * reading from the stream until it reaches the end of the line.
  5276. * </p>
  5277. * <p>
  5278. * Until PHP 4.3.0, omitting it would assume 1024 as the line length.
  5279. * If the majority of the lines in the file are all larger than 8KB,
  5280. * it is more resource efficient for your script to specify the maximum
  5281. * line length.
  5282. * </p>
  5283. * @return string a string of up to length - 1 bytes read from
  5284. * the file pointed to by handle.
  5285. * </p>
  5286. * <p>
  5287. * If an error occurs, returns false.
  5288. */
  5289. function fgets ($handle, $length = null) {}
  5290. /**
  5291. * Gets line from file pointer and strip HTML tags
  5292. * @link http://www.php.net/manual/en/function.fgetss.php
  5293. * @param handle resource &fs.validfp.all;
  5294. * @param length int[optional] <p>
  5295. * Length of the data to be retrieved.
  5296. * </p>
  5297. * @param allowable_tags string[optional] <p>
  5298. * You can use the optional third parameter to specify tags which should
  5299. * not be stripped.
  5300. * </p>
  5301. * @return string a string of up to length - 1 bytes read from
  5302. * the file pointed to by handle, with all HTML and PHP
  5303. * code stripped.
  5304. * </p>
  5305. * <p>
  5306. * If an error occurs, returns false.
  5307. */
  5308. function fgetss ($handle, $length = null, $allowable_tags = null) {}
  5309. /**
  5310. * Binary-safe file read
  5311. * @link http://www.php.net/manual/en/function.fread.php
  5312. * @param handle resource &fs.file.pointer;
  5313. * @param length int <p>
  5314. * Up to length number of bytes read.
  5315. * </p>
  5316. * @return string the read string &return.falseforfailure;.
  5317. */
  5318. function fread ($handle, $length) {}
  5319. /**
  5320. * Opens file or URL
  5321. * @link http://www.php.net/manual/en/function.fopen.php
  5322. * @param filename string <p>
  5323. * If filename is of the form "scheme://...", it
  5324. * is assumed to be a URL and PHP will search for a protocol handler
  5325. * (also known as a wrapper) for that scheme. If no wrappers for that
  5326. * protocol are registered, PHP will emit a notice to help you track
  5327. * potential problems in your script and then continue as though
  5328. * filename specifies a regular file.
  5329. * </p>
  5330. * <p>
  5331. * If PHP has decided that filename specifies
  5332. * a local file, then it will try to open a stream on that file.
  5333. * The file must be accessible to PHP, so you need to ensure that
  5334. * the file access permissions allow this access.
  5335. * If you have enabled &safemode;,
  5336. * or open_basedir further
  5337. * restrictions may apply.
  5338. * </p>
  5339. * <p>
  5340. * If PHP has decided that filename specifies
  5341. * a registered protocol, and that protocol is registered as a
  5342. * network URL, PHP will check to make sure that
  5343. * allow_url_fopen is
  5344. * enabled. If it is switched off, PHP will emit a warning and
  5345. * the fopen call will fail.
  5346. * </p>
  5347. * <p>
  5348. * The list of supported protocols can be found in . Some protocols (also referred to as
  5349. * wrappers) support context
  5350. * and/or &php.ini; options. Refer to the specific page for the
  5351. * protocol in use for a list of options which can be set. (e.g.
  5352. * &php.ini; value user_agent used by the
  5353. * http wrapper).
  5354. * </p>
  5355. * <p>
  5356. * On the Windows platform, be careful to escape any backslashes
  5357. * used in the path to the file, or use forward slashes.
  5358. * ]]>
  5359. * </p>
  5360. * @param mode string <p>
  5361. * The mode parameter specifies the type of access
  5362. * you require to the stream. It may be any of the following:
  5363. * <table>
  5364. * A list of possible modes for fopen
  5365. * using mode
  5366. * <tr valign="top">
  5367. * <td>mode</td>
  5368. * <td>Description</td>
  5369. * </tr>
  5370. * <tr valign="top">
  5371. * <td>'r'</td>
  5372. * <td>
  5373. * Open for reading only; place the file pointer at the
  5374. * beginning of the file.
  5375. * </td>
  5376. * </tr>
  5377. * <tr valign="top">
  5378. * <td>'r+'</td>
  5379. * <td>
  5380. * Open for reading and writing; place the file pointer at
  5381. * the beginning of the file.
  5382. * </td>
  5383. * </tr>
  5384. * <tr valign="top">
  5385. * <td>'w'</td>
  5386. * <td>
  5387. * Open for writing only; place the file pointer at the
  5388. * beginning of the file and truncate the file to zero length.
  5389. * If the file does not exist, attempt to create it.
  5390. * </td>
  5391. * </tr>
  5392. * <tr valign="top">
  5393. * <td>'w+'</td>
  5394. * <td>
  5395. * Open for reading and writing; place the file pointer at
  5396. * the beginning of the file and truncate the file to zero
  5397. * length. If the file does not exist, attempt to create it.
  5398. * </td>
  5399. * </tr>
  5400. * <tr valign="top">
  5401. * <td>'a'</td>
  5402. * <td>
  5403. * Open for writing only; place the file pointer at the end of
  5404. * the file. If the file does not exist, attempt to create it.
  5405. * </td>
  5406. * </tr>
  5407. * <tr valign="top">
  5408. * <td>'a+'</td>
  5409. * <td>
  5410. * Open for reading and writing; place the file pointer at
  5411. * the end of the file. If the file does not exist, attempt to
  5412. * create it.
  5413. * </td>
  5414. * </tr>
  5415. * <tr valign="top">
  5416. * <td>'x'</td>
  5417. * <td>
  5418. * Create and open for writing only; place the file pointer at the
  5419. * beginning of the file. If the file already exists, the
  5420. * fopen call will fail by returning false and
  5421. * generating an error of level E_WARNING. If
  5422. * the file does not exist, attempt to create it. This is equivalent
  5423. * to specifying O_EXCL|O_CREAT flags for the
  5424. * underlying open(2) system call.
  5425. * </td>
  5426. * </tr>
  5427. * <tr valign="top">
  5428. * <td>'x+'</td>
  5429. * <td>
  5430. * Create and open for reading and writing; place the file pointer at
  5431. * the beginning of the file. If the file already exists, the
  5432. * fopen call will fail by returning false and
  5433. * generating an error of level E_WARNING. If
  5434. * the file does not exist, attempt to create it. This is equivalent
  5435. * to specifying O_EXCL|O_CREAT flags for the
  5436. * underlying open(2) system call.
  5437. * </td>
  5438. * </tr>
  5439. * </table>
  5440. * </p>
  5441. * <p>
  5442. * Different operating system families have different line-ending
  5443. * conventions. When you write a text file and want to insert a line
  5444. * break, you need to use the correct line-ending character(s) for your
  5445. * operating system. Unix based systems use \n as the
  5446. * line ending character, Windows based systems use \r\n
  5447. * as the line ending characters and Macintosh based systems use
  5448. * \r as the line ending character.
  5449. * </p>
  5450. * <p>
  5451. * If you use the wrong line ending characters when writing your files, you
  5452. * might find that other applications that open those files will "look
  5453. * funny".
  5454. * </p>
  5455. * <p>
  5456. * Windows offers a text-mode translation flag ('t')
  5457. * which will transparently translate \n to
  5458. * \r\n when working with the file. In contrast, you
  5459. * can also use 'b' to force binary mode, which will not
  5460. * translate your data. To use these flags, specify either
  5461. * 'b' or 't' as the last character
  5462. * of the mode parameter.
  5463. * </p>
  5464. * <p>
  5465. * The default translation mode depends on the SAPI and version of PHP that
  5466. * you are using, so you are encouraged to always specify the appropriate
  5467. * flag for portability reasons. You should use the 't'
  5468. * mode if you are working with plain-text files and you use
  5469. * \n to delimit your line endings in your script, but
  5470. * expect your files to be readable with applications such as notepad. You
  5471. * should use the 'b' in all other cases.
  5472. * </p>
  5473. * <p>
  5474. * If you do not specify the 'b' flag when working with binary files, you
  5475. * may experience strange problems with your data, including broken image
  5476. * files and strange problems with \r\n characters.
  5477. * </p>
  5478. * <p>
  5479. * For portability, it is strongly recommended that you always
  5480. * use the 'b' flag when opening files with fopen.
  5481. * </p>
  5482. * <p>
  5483. * Again, for portability, it is also strongly recommended that
  5484. * you re-write code that uses or relies upon the 't'
  5485. * mode so that it uses the correct line endings and
  5486. * 'b' mode instead.
  5487. * </p>
  5488. * @param use_include_path bool[optional] <p>
  5489. * The optional third use_include_path parameter
  5490. * can be set to '1' or true if you want to search for the file in the
  5491. * include_path, too.
  5492. * </p>
  5493. * @param context resource[optional] &note.context-support;
  5494. * @return resource a file pointer resource on success, or false on error.
  5495. */
  5496. function fopen ($filename, $mode, $use_include_path = null, $context = null) {}
  5497. /**
  5498. * Output all remaining data on a file pointer
  5499. * @link http://www.php.net/manual/en/function.fpassthru.php
  5500. * @param handle resource &fs.validfp.all;
  5501. * @return int If an error occurs, fpassthru returns
  5502. * false. Otherwise, fpassthru returns
  5503. * the number of characters read from handle
  5504. * and passed through to the output.
  5505. */
  5506. function fpassthru ($handle) {}
  5507. /**
  5508. * Truncates a file to a given length
  5509. * @link http://www.php.net/manual/en/function.ftruncate.php
  5510. * @param handle resource <p>
  5511. * The file pointer.
  5512. * </p>
  5513. * <p>
  5514. * The handle must be open for writing.
  5515. * </p>
  5516. * @param size int <p>
  5517. * The size to truncate to.
  5518. * </p>
  5519. * <p>
  5520. * If size is larger than the file it is extended
  5521. * with null bytes.
  5522. * </p>
  5523. * <p>
  5524. * If size is smaller than the extra data
  5525. * will be lost.
  5526. * </p>
  5527. * @return bool Returns true on success or false on failure.
  5528. */
  5529. function ftruncate ($handle, $size) {}
  5530. /**
  5531. * Gets information about a file using an open file pointer
  5532. * @link http://www.php.net/manual/en/function.fstat.php
  5533. * @param handle resource &fs.file.pointer;
  5534. * @return array an array with the statistics of the file; the format of the array
  5535. * is described in detail on the stat manual page.
  5536. */
  5537. function fstat ($handle) {}
  5538. /**
  5539. * Seeks on a file pointer
  5540. * @link http://www.php.net/manual/en/function.fseek.php
  5541. * @param handle resource &fs.file.pointer;
  5542. * @param offset int <p>
  5543. * The offset.
  5544. * </p>
  5545. * <p>
  5546. * To move to a position before the end-of-file, you need to pass
  5547. * a negative value in offset and
  5548. * set whence
  5549. * to SEEK_END.
  5550. * </p>
  5551. * @param whence int[optional] <p>
  5552. * whence values are:
  5553. * SEEK_SET - Set position equal to offset bytes.
  5554. * SEEK_CUR - Set position to current location plus offset.
  5555. * SEEK_END - Set position to end-of-file plus offset.
  5556. * </p>
  5557. * @return int Upon success, returns 0; otherwise, returns -1. Note that seeking
  5558. * past EOF is not considered an error.
  5559. */
  5560. function fseek ($handle, $offset, $whence = null) {}
  5561. /**
  5562. * Returns the current position of the file read/write pointer
  5563. * @link http://www.php.net/manual/en/function.ftell.php
  5564. * @param handle resource <p>
  5565. * The file pointer must be valid, and must point to a file successfully
  5566. * opened by fopen or popen.
  5567. * ftell gives undefined results for append-only streams
  5568. * (opened with "a" flag).
  5569. * </p>
  5570. * @return int the position of the file pointer referenced by
  5571. * handle as an integer; i.e., its offset into the file stream.
  5572. * </p>
  5573. * <p>
  5574. * If an error occurs, returns false.
  5575. */
  5576. function ftell ($handle) {}
  5577. /**
  5578. * Flushes the output to a file
  5579. * @link http://www.php.net/manual/en/function.fflush.php
  5580. * @param handle resource &fs.validfp.all;
  5581. * @return bool Returns true on success or false on failure.
  5582. */
  5583. function fflush ($handle) {}
  5584. /**
  5585. * Binary-safe file write
  5586. * @link http://www.php.net/manual/en/function.fwrite.php
  5587. * @param handle resource &fs.file.pointer;
  5588. * @param string string <p>
  5589. * The string that is to be written.
  5590. * </p>
  5591. * @param length int[optional] <p>
  5592. * If the length argument is given, writing will
  5593. * stop after length bytes have been written or
  5594. * the end of string is reached, whichever comes
  5595. * first.
  5596. * </p>
  5597. * <p>
  5598. * Note that if the length argument is given,
  5599. * then the magic_quotes_runtime
  5600. * configuration option will be ignored and no slashes will be
  5601. * stripped from string.
  5602. * </p>
  5603. * @return int
  5604. */
  5605. function fwrite ($handle, $string, $length = null) {}
  5606. /**
  5607. * &Alias; <function>fwrite</function>
  5608. * @link http://www.php.net/manual/en/function.fputs.php
  5609. * @param fp
  5610. * @param str
  5611. * @param length[optional]
  5612. */
  5613. function fputs ($fp, $str, $length) {}
  5614. /**
  5615. * Makes directory
  5616. * @link http://www.php.net/manual/en/function.mkdir.php
  5617. * @param pathname string <p>
  5618. * The directory path.
  5619. * </p>
  5620. * @param mode int[optional] <p>
  5621. * The mode is 0777 by default, which means the widest possible
  5622. * access. For more information on modes, read the details
  5623. * on the chmod page.
  5624. * </p>
  5625. * <p>
  5626. * mode is ignored on Windows.
  5627. * </p>
  5628. * <p>
  5629. * Note that you probably want to specify the mode as an octal number,
  5630. * which means it should have a leading zero. The mode is also modified
  5631. * by the current umask, which you can change using
  5632. * umask.
  5633. * </p>
  5634. * @param recursive bool[optional] <p>
  5635. * Allows the creation of nested directories specified in the
  5636. * pathname. Defaults to false.
  5637. * </p>
  5638. * @param context resource[optional] &note.context-support;
  5639. * @return bool Returns true on success or false on failure.
  5640. */
  5641. function mkdir ($pathname, $mode = null, $recursive = null, $context = null) {}
  5642. /**
  5643. * Renames a file or directory
  5644. * @link http://www.php.net/manual/en/function.rename.php
  5645. * @param oldname string <p>
  5646. * </p>
  5647. * <p>
  5648. * The old name. The wrapper used in oldname
  5649. * must match the wrapper used in
  5650. * newname.
  5651. * </p>
  5652. * @param newname string <p>
  5653. * The new name.
  5654. * </p>
  5655. * @param context resource[optional] &note.context-support;
  5656. * @return bool Returns true on success or false on failure.
  5657. */
  5658. function rename ($oldname, $newname, $context = null) {}
  5659. /**
  5660. * Copies file
  5661. * @link http://www.php.net/manual/en/function.copy.php
  5662. * @param source string <p>
  5663. * Path to the source file.
  5664. * </p>
  5665. * @param dest string <p>
  5666. * The destination path. If dest is a URL, the
  5667. * copy operation may fail if the wrapper does not support overwriting of
  5668. * existing files.
  5669. * </p>
  5670. * <p>
  5671. * If the destination file already exists, it will be overwritten.
  5672. * </p>
  5673. * @param context resource[optional] <p>
  5674. * A valid context resource created with
  5675. * stream_context_create.
  5676. * </p>
  5677. * @return bool Returns true on success or false on failure.
  5678. */
  5679. function copy ($source, $dest, $context = null) {}
  5680. /**
  5681. * Create file with unique file name
  5682. * @link http://www.php.net/manual/en/function.tempnam.php
  5683. * @param dir string <p>
  5684. * The directory where the temporary filename will be created.
  5685. * </p>
  5686. * @param prefix string <p>
  5687. * The prefix of the generated temporary filename.
  5688. * </p>
  5689. * Windows uses only the first three characters of prefix.
  5690. * @return string the new temporary filename, or false on
  5691. * failure.
  5692. */
  5693. function tempnam ($dir, $prefix) {}
  5694. /**
  5695. * Creates a temporary file
  5696. * @link http://www.php.net/manual/en/function.tmpfile.php
  5697. * @return resource a file handle, similar to the one returned by
  5698. * fopen, for the new file&return.falseforfailure;.
  5699. */
  5700. function tmpfile () {}
  5701. /**
  5702. * Reads entire file into an array
  5703. * @link http://www.php.net/manual/en/function.file.php
  5704. * @param filename string <p>
  5705. * Path to the file.
  5706. * </p>
  5707. * &tip.fopen-wrapper;
  5708. * @param flags int[optional] <p>
  5709. * The optional parameter flags can be one, or
  5710. * more, of the following constants:
  5711. * FILE_USE_INCLUDE_PATH
  5712. * Search for the file in the include_path.
  5713. * @param context resource[optional] <p>
  5714. * A context resource created with the
  5715. * stream_context_create function.
  5716. * </p>
  5717. * <p>
  5718. * &note.context-support;
  5719. * </p>
  5720. * @return array the file in an array. Each element of the array corresponds to a
  5721. * line in the file, with the newline still attached. Upon failure,
  5722. * file returns false.
  5723. * </p>
  5724. * <p>
  5725. * Each line in the resulting array will include the line ending, unless
  5726. * FILE_IGNORE_NEW_LINES is used, so you still need to
  5727. * use rtrim if you do not want the line ending
  5728. * present.
  5729. */
  5730. function file ($filename, $flags = null, $context = null) {}
  5731. /**
  5732. * Reads entire file into a string
  5733. * @link http://www.php.net/manual/en/function.file-get-contents.php
  5734. * @param filename string <p>
  5735. * Name of the file to read.
  5736. * </p>
  5737. * @param use_include_path bool[optional] <p>
  5738. * As of PHP 5 the FILE_USE_INCLUDE_PATH can be used
  5739. * to trigger include path
  5740. * search.
  5741. * </p>
  5742. * @param context resource[optional] <p>
  5743. * A valid context resource created with
  5744. * stream_context_create. If you don't need to use a
  5745. * custom context, you can skip this parameter by &null;.
  5746. * </p>
  5747. * @param offset int[optional] <p>
  5748. * The offset where the reading starts on the original stream.
  5749. * </p>
  5750. * @param maxlen int[optional] <p>
  5751. * Maximum length of data read. The default is to read until end
  5752. * of file is reached. Note that this parameter is applied to the
  5753. * stream processed by the filters.
  5754. * </p>
  5755. * @return string The function returns the read data&return.falseforfailure;.
  5756. */
  5757. function file_get_contents ($filename, $use_include_path = null, $context = null, $offset = null, $maxlen = null) {}
  5758. /**
  5759. * Write a string to a file
  5760. * @link http://www.php.net/manual/en/function.file-put-contents.php
  5761. * @param filename string <p>
  5762. * Path to the file where to write the data.
  5763. * </p>
  5764. * @param data mixed <p>
  5765. * The data to write. Can be either a string, an
  5766. * array or a stream resource.
  5767. * </p>
  5768. * <p>
  5769. * If data is a stream resource, the
  5770. * remaining buffer of that stream will be copied to the specified file.
  5771. * This is similar with using stream_copy_to_stream.
  5772. * </p>
  5773. * <p>
  5774. * You can also specify the data parameter as a single
  5775. * dimension array. This is equivalent to
  5776. * file_put_contents($filename, implode('', $array)).
  5777. * </p>
  5778. * @param flags int[optional] <p>
  5779. * The value of flags can be any combination of
  5780. * the following flags (with some restrictions), joined with the binary OR
  5781. * (|) operator.
  5782. * </p>
  5783. * <p>
  5784. * <table>
  5785. * Available flags
  5786. * <tr valign="top">
  5787. * <td>Flag</td>
  5788. * <td>Description</td>
  5789. * </tr>
  5790. * <tr valign="top">
  5791. * <td>
  5792. * FILE_USE_INCLUDE_PATH
  5793. * </td>
  5794. * <td>
  5795. * Search for filename in the include directory.
  5796. * See include_path for more
  5797. * information.
  5798. * </td>
  5799. * </tr>
  5800. * <tr valign="top">
  5801. * <td>
  5802. * FILE_APPEND
  5803. * </td>
  5804. * <td>
  5805. * If file filename already exists, append
  5806. * the data to the file instead of overwriting it. Mutually
  5807. * exclusive with LOCK_EX since appends are atomic and thus there
  5808. * is no reason to lock.
  5809. * </td>
  5810. * </tr>
  5811. * <tr valign="top">
  5812. * <td>
  5813. * LOCK_EX
  5814. * </td>
  5815. * <td>
  5816. * Acquire an exclusive lock on the file while proceeding to the
  5817. * writing. Mutually exclusive with FILE_APPEND.
  5818. * </td>
  5819. * </tr>
  5820. * </table>
  5821. * </p>
  5822. * @param context resource[optional] <p>
  5823. * A valid context resource created with
  5824. * stream_context_create.
  5825. * </p>
  5826. * @return int The function returns the number of bytes that were written to the file, or
  5827. * false on failure.
  5828. */
  5829. function file_put_contents ($filename, $data, $flags = null, $context = null) {}
  5830. /**
  5831. * Runs the equivalent of the select() system call on the given
  5832. arrays of streams with a timeout specified by tv_sec and tv_usec
  5833. * @link http://www.php.net/manual/en/function.stream-select.php
  5834. * @param read array <p>
  5835. * The streams listed in the read array will be watched to
  5836. * see if characters become available for reading (more precisely, to see if
  5837. * a read will not block - in particular, a stream resource is also ready on
  5838. * end-of-file, in which case an fread will return
  5839. * a zero length string).
  5840. * </p>
  5841. * @param write array <p>
  5842. * The streams listed in the write array will be
  5843. * watched to see if a write will not block.
  5844. * </p>
  5845. * @param except array <p>
  5846. * The streams listed in the except array will be
  5847. * watched for high priority exceptional ("out-of-band") data arriving.
  5848. * </p>
  5849. * <p>
  5850. * When stream_select returns, the arrays
  5851. * read, write and
  5852. * except are modified to indicate which stream
  5853. * resource(s) actually changed status.
  5854. * </p>
  5855. * You do not need to pass every array to
  5856. * stream_select. You can leave it out and use an
  5857. * empty array or &null; instead. Also do not forget that those arrays are
  5858. * passed by reference and will be modified after
  5859. * stream_select returns.
  5860. * @param tv_sec int <p>
  5861. * The tv_sec and tv_usec
  5862. * together form the timeout parameter,
  5863. * tv_sec specifies the number of seconds while
  5864. * tv_usec the number of microseconds.
  5865. * The timeout is an upper bound on the amount of time
  5866. * that stream_select will wait before it returns.
  5867. * If tv_sec and tv_usec are
  5868. * both set to 0, stream_select will
  5869. * not wait for data - instead it will return immediately, indicating the
  5870. * current status of the streams.
  5871. * </p>
  5872. * <p>
  5873. * If tv_sec is &null; stream_select
  5874. * can block indefinitely, returning only when an event on one of the
  5875. * watched streams occurs (or if a signal interrupts the system call).
  5876. * </p>
  5877. * <p>
  5878. * Using a timeout value of 0 allows you to
  5879. * instantaneously poll the status of the streams, however, it is NOT a
  5880. * good idea to use a 0 timeout value in a loop as it
  5881. * will cause your script to consume too much CPU time.
  5882. * </p>
  5883. * <p>
  5884. * It is much better to specify a timeout value of a few seconds, although
  5885. * if you need to be checking and running other code concurrently, using a
  5886. * timeout value of at least 200000 microseconds will
  5887. * help reduce the CPU usage of your script.
  5888. * </p>
  5889. * <p>
  5890. * Remember that the timeout value is the maximum time that will elapse;
  5891. * stream_select will return as soon as the
  5892. * requested streams are ready for use.
  5893. * </p>
  5894. * @param tv_usec int[optional] <p>
  5895. * See tv_sec description.
  5896. * </p>
  5897. * @return int On success stream_select returns the number of
  5898. * stream resources contained in the modified arrays, which may be zero if
  5899. * the timeout expires before anything interesting happens. On error false
  5900. * is returned and a warning raised (this can happen if the system call is
  5901. * interrupted by an incoming signal).
  5902. */
  5903. function stream_select (array &$read, array &$write, array &$except, $tv_sec, $tv_usec = null) {}
  5904. /**
  5905. * Create a streams context
  5906. * @link http://www.php.net/manual/en/function.stream-context-create.php
  5907. * @param options array[optional] <p>
  5908. * Must be an associative array of associative arrays in the format
  5909. * $arr['wrapper']['option'] = $value.
  5910. * </p>
  5911. * <p>
  5912. * Default to an empty array.
  5913. * </p>
  5914. * @param params array[optional] <p>
  5915. * Must be an associative array in the format
  5916. * $arr['parameter'] = $value.
  5917. * Refer to context parameters for
  5918. * a listing of standard stream parameters.
  5919. * </p>
  5920. * @return resource A stream context resource.
  5921. */
  5922. function stream_context_create (array $options = null, array $params = null) {}
  5923. /**
  5924. * Set parameters for a stream/wrapper/context
  5925. * @link http://www.php.net/manual/en/function.stream-context-set-params.php
  5926. * @param stream_or_context resource <p>
  5927. * The stream or context to apply the parameters too.
  5928. * </p>
  5929. * @param params array <p>
  5930. * An array of parameters to set.
  5931. * </p>
  5932. * <p>
  5933. * params should be an associative array of the structure:
  5934. * $params['paramname'] = "paramvalue";.
  5935. * </p>
  5936. * @return bool Returns true on success or false on failure.
  5937. */
  5938. function stream_context_set_params ($stream_or_context, array $params) {}
  5939. /**
  5940. * Sets an option for a stream/wrapper/context
  5941. * @link http://www.php.net/manual/en/function.stream-context-set-option.php
  5942. * @param stream_or_context resource <p>
  5943. * The stream or context resource to apply the options too.
  5944. * </p>
  5945. * @param wrapper string
  5946. * @param option string
  5947. * @param value mixed
  5948. * @return bool Returns true on success or false on failure.
  5949. */
  5950. function stream_context_set_option ($stream_or_context, $wrapper, $option, $value) {}
  5951. /**
  5952. * Retrieve options for a stream/wrapper/context
  5953. * @link http://www.php.net/manual/en/function.stream-context-get-options.php
  5954. * @param stream_or_context resource <p>
  5955. * The stream or context to get options from
  5956. * </p>
  5957. * @return array an associative array with the options.
  5958. */
  5959. function stream_context_get_options ($stream_or_context) {}
  5960. /**
  5961. * Retreive the default streams context
  5962. * @link http://www.php.net/manual/en/function.stream-context-get-default.php
  5963. * @param options array[optional] options must be an associative
  5964. * array of associative arrays in the format
  5965. * $arr['wrapper']['option'] = $value.
  5966. * <p>
  5967. * As of PHP 5.3.0, the stream_context_set_default function
  5968. * can be used to set the default context.
  5969. * </p>
  5970. * @return resource A stream context resource.
  5971. */
  5972. function stream_context_get_default (array $options = null) {}
  5973. /**
  5974. * Attach a filter to a stream
  5975. * @link http://www.php.net/manual/en/function.stream-filter-prepend.php
  5976. * @param stream resource <p>
  5977. * The target stream.
  5978. * </p>
  5979. * @param filtername string <p>
  5980. * The filter name.
  5981. * </p>
  5982. * @param read_write int[optional] <p>
  5983. * By default, stream_filter_prepend will
  5984. * attach the filter to the read filter chain
  5985. * if the file was opened for reading (i.e. File Mode:
  5986. * r, and/or +). The filter
  5987. * will also be attached to the write filter chain
  5988. * if the file was opened for writing (i.e. File Mode:
  5989. * w, a, and/or +).
  5990. * STREAM_FILTER_READ,
  5991. * STREAM_FILTER_WRITE, and/or
  5992. * STREAM_FILTER_ALL can also be passed to the
  5993. * read_write parameter to override this behavior.
  5994. * See stream_filter_append for an example of
  5995. * using this parameter.
  5996. * </p>
  5997. * @param params mixed[optional] <p>
  5998. * This filter will be added with the specified params
  5999. * to the beginning of the list and will therefore be
  6000. * called first during stream operations. To add a filter to the end of the
  6001. * list, use stream_filter_append.
  6002. * </p>
  6003. * @return resource a resource which can be used to refer to this filter
  6004. * instance during a call to stream_filter_remove.
  6005. */
  6006. function stream_filter_prepend ($stream, $filtername, $read_write = null, $params = null) {}
  6007. /**
  6008. * Attach a filter to a stream
  6009. * @link http://www.php.net/manual/en/function.stream-filter-append.php
  6010. * @param stream resource <p>
  6011. * The target stream.
  6012. * </p>
  6013. * @param filtername string <p>
  6014. * The filter name.
  6015. * </p>
  6016. * @param read_write int[optional] <p>
  6017. * By default, stream_filter_append will
  6018. * attach the filter to the read filter chain
  6019. * if the file was opened for reading (i.e. File Mode:
  6020. * r, and/or +). The filter
  6021. * will also be attached to the write filter chain
  6022. * if the file was opened for writing (i.e. File Mode:
  6023. * w, a, and/or +).
  6024. * STREAM_FILTER_READ,
  6025. * STREAM_FILTER_WRITE, and/or
  6026. * STREAM_FILTER_ALL can also be passed to the
  6027. * read_write parameter to override this behavior.
  6028. * </p>
  6029. * @param params mixed[optional] <p>
  6030. * This filter will be added with the specified
  6031. * params to the end of
  6032. * the list and will therefore be called last during stream operations.
  6033. * To add a filter to the beginning of the list, use
  6034. * stream_filter_prepend.
  6035. * </p>
  6036. * @return resource a resource which can be used to refer to this filter
  6037. * instance during a call to stream_filter_remove.
  6038. */
  6039. function stream_filter_append ($stream, $filtername, $read_write = null, $params = null) {}
  6040. /**
  6041. * Remove a filter from a stream
  6042. * @link http://www.php.net/manual/en/function.stream-filter-remove.php
  6043. * @param stream_filter resource <p>
  6044. * The stream filter to be removed.
  6045. * </p>
  6046. * @return bool Returns true on success or false on failure.
  6047. */
  6048. function stream_filter_remove ($stream_filter) {}
  6049. /**
  6050. * Open Internet or Unix domain socket connection
  6051. * @link http://www.php.net/manual/en/function.stream-socket-client.php
  6052. * @param remote_socket string <p>
  6053. * Address to the socket to connect to.
  6054. * </p>
  6055. * @param errno int[optional] <p>
  6056. * Will be set to the system level error number if connection fails.
  6057. * </p>
  6058. * @param errstr string[optional] <p>
  6059. * Will be set to the system level error message if the connection fails.
  6060. * </p>
  6061. * @param timeout float[optional] <p>
  6062. * Number of seconds until the connect() system call
  6063. * should timeout.
  6064. * This parameter only applies when not making asynchronous
  6065. * connection attempts.
  6066. * <p>
  6067. * To set a timeout for reading/writing data over the socket, use the
  6068. * stream_set_timeout, as the
  6069. * timeout only applies while making connecting
  6070. * the socket.
  6071. * </p>
  6072. * </p>
  6073. * @param flags int[optional] <p>
  6074. * Bitmask field which may be set to any combination of connection flags.
  6075. * Currently the select of connection flags is limited to
  6076. * STREAM_CLIENT_CONNECT (default),
  6077. * STREAM_CLIENT_ASYNC_CONNECT and
  6078. * STREAM_CLIENT_PERSISTENT.
  6079. * </p>
  6080. * @param context resource[optional] <p>
  6081. * A valid context resource created with stream_context_create.
  6082. * </p>
  6083. * @return resource On success a stream resource is returned which may
  6084. * be used together with the other file functions (such as
  6085. * fgets, fgetss,
  6086. * fwrite, fclose, and
  6087. * feof), false on failure.
  6088. */
  6089. function stream_socket_client ($remote_socket, &$errno = null, &$errstr = null, $timeout = null, $flags = null, $context = null) {}
  6090. /**
  6091. * Create an Internet or Unix domain server socket
  6092. * @link http://www.php.net/manual/en/function.stream-socket-server.php
  6093. * @param local_socket string <p>
  6094. * The type of socket created is determined by the transport specified
  6095. * using standard URL formatting: transport://target.
  6096. * </p>
  6097. * <p>
  6098. * For Internet Domain sockets (AF_INET) such as TCP and UDP, the
  6099. * target portion of the
  6100. * remote_socket parameter should consist of a
  6101. * hostname or IP address followed by a colon and a port number. For
  6102. * Unix domain sockets, the target portion should
  6103. * point to the socket file on the filesystem.
  6104. * </p>
  6105. * <p>
  6106. * Depending on the environment, Unix domain sockets may not be available.
  6107. * A list of available transports can be retrieved using
  6108. * stream_get_transports. See
  6109. * for a list of bulitin transports.
  6110. * </p>
  6111. * @param errno int[optional] <p>
  6112. * If the optional errno and errstr
  6113. * arguments are present they will be set to indicate the actual system
  6114. * level error that occurred in the system-level socket(),
  6115. * bind(), and listen() calls. If
  6116. * the value returned in errno is
  6117. * 0 and the function returned false, it is an
  6118. * indication that the error occurred before the bind()
  6119. * call. This is most likely due to a problem initializing the socket.
  6120. * Note that the errno and
  6121. * errstr arguments will always be passed by reference.
  6122. * </p>
  6123. * @param errstr string[optional] <p>
  6124. * See errno description.
  6125. * </p>
  6126. * @param flags int[optional] <p>
  6127. * A bitmask field which may be set to any combination of socket creation
  6128. * flags.
  6129. * </p>
  6130. * <p>
  6131. * For UDP sockets, you must use STREAM_SERVER_BIND as
  6132. * the flags parameter.
  6133. * </p>
  6134. * @param context resource[optional] <p>
  6135. * </p>
  6136. * @return resource the created stream, or false on error.
  6137. */
  6138. function stream_socket_server ($local_socket, &$errno = null, &$errstr = null, $flags = null, $context = null) {}
  6139. /**
  6140. * Accept a connection on a socket created by <function>stream_socket_server</function>
  6141. * @link http://www.php.net/manual/en/function.stream-socket-accept.php
  6142. * @param server_socket resource
  6143. * @param timeout float[optional] <p>
  6144. * Override the default socket accept timeout. Time should be given in
  6145. * seconds.
  6146. * </p>
  6147. * @param peername string[optional] <p>
  6148. * Will be set to the name (address) of the client which connected, if
  6149. * included and available from the selected transport.
  6150. * </p>
  6151. * <p>
  6152. * Can also be determined later using
  6153. * stream_socket_get_name.
  6154. * </p>
  6155. * @return resource Returns true on success or false on failure.
  6156. */
  6157. function stream_socket_accept ($server_socket, $timeout = null, &$peername = null) {}
  6158. /**
  6159. * Retrieve the name of the local or remote sockets
  6160. * @link http://www.php.net/manual/en/function.stream-socket-get-name.php
  6161. * @param handle resource <p>
  6162. * The socket to get the name of.
  6163. * </p>
  6164. * @param want_peer bool <p>
  6165. * If set to true the remote socket name will be returned, if set
  6166. * to false the local socket name will be returned.
  6167. * </p>
  6168. * @return string The name of the socket.
  6169. */
  6170. function stream_socket_get_name ($handle, $want_peer) {}
  6171. /**
  6172. * Receives data from a socket, connected or not
  6173. * @link http://www.php.net/manual/en/function.stream-socket-recvfrom.php
  6174. * @param socket resource <p>
  6175. * The remote socket.
  6176. * </p>
  6177. * @param length int <p>
  6178. * The number of bytes to receive from the socket.
  6179. * </p>
  6180. * @param flags int[optional] <p>
  6181. * The value of flags can be any combination
  6182. * of the following:
  6183. * <table>
  6184. * Possible values for flags
  6185. * <tr valign="top">
  6186. * <td>STREAM_OOB</td>
  6187. * <td>
  6188. * Process OOB (out-of-band) data.
  6189. * </td>
  6190. * </tr>
  6191. * <tr valign="top">
  6192. * <td>STREAM_PEEK</td>
  6193. * <td>
  6194. * Retrieve data from the socket, but do not consume the buffer.
  6195. * Subsequent calls to fread or
  6196. * stream_socket_recvfrom will see
  6197. * the same data.
  6198. * </td>
  6199. * </tr>
  6200. * </table>
  6201. * </p>
  6202. * @param address string[optional] <p>
  6203. * If address is provided it will be populated with
  6204. * the address of the remote socket.
  6205. * </p>
  6206. * @return string the read data, as a string
  6207. */
  6208. function stream_socket_recvfrom ($socket, $length, $flags = null, &$address = null) {}
  6209. /**
  6210. * Sends a message to a socket, whether it is connected or not
  6211. * @link http://www.php.net/manual/en/function.stream-socket-sendto.php
  6212. * @param socket resource <p>
  6213. * The socket to send data to.
  6214. * </p>
  6215. * @param data string <p>
  6216. * The data to be sent.
  6217. * </p>
  6218. * @param flags int[optional] <p>
  6219. * The value of flags can be any combination
  6220. * of the following:
  6221. * <table>
  6222. * possible values for flags
  6223. * <tr valign="top">
  6224. * <td>STREAM_OOB</td>
  6225. * <td>
  6226. * Process OOB (out-of-band) data.
  6227. * </td>
  6228. * </tr>
  6229. * </table>
  6230. * </p>
  6231. * @param address string[optional] <p>
  6232. * The address specified when the socket stream was created will be used
  6233. * unless an alternate address is specified in address.
  6234. * </p>
  6235. * <p>
  6236. * If specified, it must be in dotted quad (or [ipv6]) format.
  6237. * </p>
  6238. * @return int a result code, as an integer.
  6239. */
  6240. function stream_socket_sendto ($socket, $data, $flags = null, $address = null) {}
  6241. /**
  6242. * Turns encryption on/off on an already connected socket
  6243. * @link http://www.php.net/manual/en/function.stream-socket-enable-crypto.php
  6244. * @param stream resource <p>
  6245. * The stream resource.
  6246. * </p>
  6247. * @param enable bool <p>
  6248. * Enable/disable cryptography on the stream.
  6249. * </p>
  6250. * @param crypto_type int[optional] <p>
  6251. * Setup encryption on the stream.
  6252. * Valid methods are
  6253. * STREAM_CRYPTO_METHOD_SSLv2_CLIENT
  6254. * @param session_stream resource[optional] <p>
  6255. * Seed the stream with settings from session_stream.
  6256. * </p>
  6257. * @return mixed true on success, false if negotiation has failed or
  6258. * 0 if there isn't enough data and you should try again
  6259. * (only for non-blocking sockets).
  6260. */
  6261. function stream_socket_enable_crypto ($stream, $enable, $crypto_type = null, $session_stream = null) {}
  6262. /**
  6263. * Shutdown a full-duplex connection
  6264. * @link http://www.php.net/manual/en/function.stream-socket-shutdown.php
  6265. * @param stream resource <p>
  6266. * An open stream (opened with stream_socket_client,
  6267. * for example)
  6268. * </p>
  6269. * @param how int <p>
  6270. * One of the following constants: STREAM_SHUT_RD
  6271. * (disable further receptions), STREAM_SHUT_WR
  6272. * (disable further transmissions) or
  6273. * STREAM_SHUT_RDWR (disable further receptions and
  6274. * transmissions).
  6275. * </p>
  6276. * @return bool Returns true on success or false on failure.
  6277. */
  6278. function stream_socket_shutdown ($stream, $how) {}
  6279. /**
  6280. * Creates a pair of connected, indistinguishable socket streams
  6281. * @link http://www.php.net/manual/en/function.stream-socket-pair.php
  6282. * @param domain int <p>
  6283. * The protocol family to be used: STREAM_PF_INET,
  6284. * STREAM_PF_INET6 or
  6285. * STREAM_PF_UNIX
  6286. * </p>
  6287. * @param type int <p>
  6288. * The type of communication to be used:
  6289. * STREAM_SOCK_DGRAM,
  6290. * STREAM_SOCK_RAW,
  6291. * STREAM_SOCK_RDM,
  6292. * STREAM_SOCK_SEQPACKET or
  6293. * STREAM_SOCK_STREAM
  6294. * </p>
  6295. * @param protocol int <p>
  6296. * The protocol to be used: STREAM_IPPROTO_ICMP,
  6297. * STREAM_IPPROTO_IP,
  6298. * STREAM_IPPROTO_RAW,
  6299. * STREAM_IPPROTO_TCP or
  6300. * STREAM_IPPROTO_UDP
  6301. * </p>
  6302. * @return array an array with the two socket resources on success, or
  6303. * false on failure.
  6304. */
  6305. function stream_socket_pair ($domain, $type, $protocol) {}
  6306. /**
  6307. * Copies data from one stream to another
  6308. * @link http://www.php.net/manual/en/function.stream-copy-to-stream.php
  6309. * @param source resource <p>
  6310. * The source stream
  6311. * </p>
  6312. * @param dest resource <p>
  6313. * The destination stream
  6314. * </p>
  6315. * @param maxlength int[optional] <p>
  6316. * Maximum bytes to copy
  6317. * </p>
  6318. * @param offset int[optional] <p>
  6319. * The offset where to start to copy data
  6320. * </p>
  6321. * @return int the total count of bytes copied.
  6322. */
  6323. function stream_copy_to_stream ($source, $dest, $maxlength = null, $offset = null) {}
  6324. /**
  6325. * Reads remainder of a stream into a string
  6326. * @link http://www.php.net/manual/en/function.stream-get-contents.php
  6327. * @param handle resource <p>
  6328. * A stream resource (e.g. returned from fopen)
  6329. * </p>
  6330. * @param maxlength int[optional] <p>
  6331. * The maximum bytes to read. Defaults to -1 (read all the remaining
  6332. * buffer).
  6333. * </p>
  6334. * @param offset int[optional] <p>
  6335. * Seek to the specified offset before reading.
  6336. * </p>
  6337. * @return string a string&return.falseforfailure;.
  6338. */
  6339. function stream_get_contents ($handle, $maxlength = null, $offset = null) {}
  6340. /**
  6341. * Gets line from file pointer and parse for CSV fields
  6342. * @link http://www.php.net/manual/en/function.fgetcsv.php
  6343. * @param handle resource <p>
  6344. * A valid file pointer to a file successfully opened by
  6345. * fopen, popen, or
  6346. * fsockopen.
  6347. * </p>
  6348. * @param length int[optional] <p>
  6349. * Must be greater than the longest line (in characters) to be found in
  6350. * the CSV file (allowing for trailing line-end characters). It became
  6351. * optional in PHP 5. Omitting this parameter (or setting it to 0 in PHP
  6352. * 5.0.4 and later) the maximum line length is not limited, which is
  6353. * slightly slower.
  6354. * </p>
  6355. * @param delimiter string[optional] <p>
  6356. * Set the field delimiter (one character only).
  6357. * </p>
  6358. * @param enclosure string[optional] <p>
  6359. * Set the field enclosure character (one character only).
  6360. * </p>
  6361. * @param escape string[optional] <p>
  6362. * Set the escape character (one character only). Defaults as a backslash.
  6363. * </p>
  6364. * @return array an indexed array containing the fields read.
  6365. * </p>
  6366. * <p>
  6367. * A blank line in a CSV file will be returned as an array
  6368. * comprising a single null field, and will not be treated
  6369. * as an error.
  6370. * </p>
  6371. * &note.line-endings;
  6372. * <p>
  6373. * fgetcsv returns &null; if an invalid
  6374. * handle is supplied or false on other errors,
  6375. * including end of file.
  6376. */
  6377. function fgetcsv ($handle, $length = null, $delimiter = null, $enclosure = null, $escape = null) {}
  6378. /**
  6379. * Format line as CSV and write to file pointer
  6380. * @link http://www.php.net/manual/en/function.fputcsv.php
  6381. * @param handle resource &fs.validfp.all;
  6382. * @param fields array <p>
  6383. * An array of values.
  6384. * </p>
  6385. * @param delimiter string[optional] <p>
  6386. * The optional delimiter parameter sets the field
  6387. * delimiter (one character only).
  6388. * </p>
  6389. * @param enclosure string[optional] <p>
  6390. * The optional enclosure parameter sets the field
  6391. * enclosure (one character only).
  6392. * </p>
  6393. * @return int the length of the written string&return.falseforfailure;.
  6394. */
  6395. function fputcsv ($handle, array $fields, $delimiter = null, $enclosure = null) {}
  6396. /**
  6397. * Portable advisory file locking
  6398. * @link http://www.php.net/manual/en/function.flock.php
  6399. * @param handle resource <p>
  6400. * An open file pointer.
  6401. * </p>
  6402. * @param operation int <p>
  6403. * operation is one of the following:
  6404. * LOCK_SH to acquire a shared lock (reader).
  6405. * @param wouldblock int[optional] <p>
  6406. * The optional third argument is set to true if the lock would block
  6407. * (EWOULDBLOCK errno condition). (not supported on Windows)
  6408. * </p>
  6409. * @return bool Returns true on success or false on failure.
  6410. */
  6411. function flock ($handle, $operation, &$wouldblock = null) {}
  6412. /**
  6413. * Extracts all meta tag content attributes from a file and returns an array
  6414. * @link http://www.php.net/manual/en/function.get-meta-tags.php
  6415. * @param filename string <p>
  6416. * The path to the HTML file, as a string. This can be a local file or an
  6417. * URL.
  6418. * </p>
  6419. * <p>
  6420. * What get_meta_tags parses
  6421. * ]]>
  6422. * (pay attention to line endings - PHP uses a native function to
  6423. * parse the input, so a Mac file won't work on Unix).
  6424. * </p>
  6425. * @param use_include_path bool[optional] <p>
  6426. * Setting use_include_path to true will result
  6427. * in PHP trying to open the file along the standard include path as per
  6428. * the include_path directive.
  6429. * This is used for local files, not URLs.
  6430. * </p>
  6431. * @return array an array with all the parsed meta tags.
  6432. * </p>
  6433. * <p>
  6434. * The value of the name property becomes the key, the value of the content
  6435. * property becomes the value of the returned array, so you can easily use
  6436. * standard array functions to traverse it or access single values.
  6437. * Special characters in the value of the name property are substituted with
  6438. * '_', the rest is converted to lower case. If two meta tags have the same
  6439. * name, only the last one is returned.
  6440. */
  6441. function get_meta_tags ($filename, $use_include_path = null) {}
  6442. /**
  6443. * Sets file buffering on the given stream
  6444. * @link http://www.php.net/manual/en/function.stream-set-write-buffer.php
  6445. * @param stream resource <p>
  6446. * The file pointer.
  6447. * </p>
  6448. * @param buffer int <p>
  6449. * The number of bytes to buffer. If buffer
  6450. * is 0 then write operations are unbuffered. This ensures that all writes
  6451. * with fwrite are completed before other processes are
  6452. * allowed to write to that output stream.
  6453. * </p>
  6454. * @return int 0 on success, or EOF if the request cannot be honored.
  6455. */
  6456. function stream_set_write_buffer ($stream, $buffer) {}
  6457. /**
  6458. * &Alias; <function>stream_set_write_buffer</function>
  6459. * @link http://www.php.net/manual/en/function.set-file-buffer.php
  6460. * @param fp
  6461. * @param buffer
  6462. */
  6463. function set_file_buffer ($fp, $buffer) {}
  6464. /**
  6465. * &Alias; <function>stream_set_blocking</function>
  6466. * @link http://www.php.net/manual/en/function.set-socket-blocking.php
  6467. * @param socket
  6468. * @param mode
  6469. */
  6470. function set_socket_blocking ($socket, $mode) {}
  6471. /**
  6472. * Set blocking/non-blocking mode on a stream
  6473. * @link http://www.php.net/manual/en/function.stream-set-blocking.php
  6474. * @param stream resource <p>
  6475. * The stream.
  6476. * </p>
  6477. * @param mode int <p>
  6478. * If mode is 0, the given stream
  6479. * will be switched to non-blocking mode, and if 1, it
  6480. * will be switched to blocking mode. This affects calls like
  6481. * fgets and fread
  6482. * that read from the stream. In non-blocking mode an
  6483. * fgets call will always return right away
  6484. * while in blocking mode it will wait for data to become available
  6485. * on the stream.
  6486. * </p>
  6487. * @return bool Returns true on success or false on failure.
  6488. */
  6489. function stream_set_blocking ($stream, $mode) {}
  6490. /**
  6491. * &Alias; <function>stream_set_blocking</function>
  6492. * @link http://www.php.net/manual/en/function.socket-set-blocking.php
  6493. * @param socket
  6494. * @param mode
  6495. */
  6496. function socket_set_blocking ($socket, $mode) {}
  6497. /**
  6498. * Retrieves header/meta data from streams/file pointers
  6499. * @link http://www.php.net/manual/en/function.stream-get-meta-data.php
  6500. * @param stream resource <p>
  6501. * The stream can be any stream created by fopen,
  6502. * fsockopen and pfsockopen.
  6503. * </p>
  6504. * @return array The result array contains the following items:
  6505. * </p>
  6506. * <p>
  6507. * timed_out (bool) - true if the stream
  6508. * timed out while waiting for data on the last call to
  6509. * fread or fgets.
  6510. * </p>
  6511. * <p>
  6512. * blocked (bool) - true if the stream is
  6513. * in blocking IO mode. See stream_set_blocking.
  6514. * </p>
  6515. * <p>
  6516. * eof (bool) - true if the stream has reached
  6517. * end-of-file. Note that for socket streams this member can be true
  6518. * even when unread_bytes is non-zero. To
  6519. * determine if there is more data to be read, use
  6520. * feof instead of reading this item.
  6521. * </p>
  6522. * <p>
  6523. * unread_bytes (int) - the number of bytes
  6524. * currently contained in the PHP's own internal buffer.
  6525. * </p>
  6526. * You shouldn't use this value in a script.
  6527. * <p>
  6528. * stream_type (string) - a label describing
  6529. * the underlying implementation of the stream.
  6530. * </p>
  6531. * <p>
  6532. * wrapper_type (string) - a label describing
  6533. * the protocol wrapper implementation layered over the stream.
  6534. * See for more information about wrappers.
  6535. * </p>
  6536. * <p>
  6537. * wrapper_data (mixed) - wrapper specific
  6538. * data attached to this stream. See for
  6539. * more information about wrappers and their wrapper data.
  6540. * </p>
  6541. * <p>
  6542. * filters (array) - and array containing
  6543. * the names of any filters that have been stacked onto this stream.
  6544. * Documentation on filters can be found in the
  6545. * Filters appendix.
  6546. * </p>
  6547. * <p>
  6548. * mode (string) - the type of access required for
  6549. * this stream (see Table 1 of the fopen() reference)
  6550. * </p>
  6551. * <p>
  6552. * seekable (bool) - whether the current stream can
  6553. * be seeked.
  6554. * </p>
  6555. * <p>
  6556. * uri (string) - the URI/filename associated with this
  6557. * stream.
  6558. */
  6559. function stream_get_meta_data ($stream) {}
  6560. /**
  6561. * Gets line from stream resource up to a given delimiter
  6562. * @link http://www.php.net/manual/en/function.stream-get-line.php
  6563. * @param handle resource <p>
  6564. * A valid file handle.
  6565. * </p>
  6566. * @param length int <p>
  6567. * The number of bytes to read from the handle.
  6568. * </p>
  6569. * @param ending string[optional] <p>
  6570. * An optional string delimiter.
  6571. * </p>
  6572. * @return string a string of up to length bytes read from the file
  6573. * pointed to by handle.
  6574. * </p>
  6575. * <p>
  6576. * If an error occurs, returns false.
  6577. */
  6578. function stream_get_line ($handle, $length, $ending = null) {}
  6579. /**
  6580. * Register a URL wrapper implemented as a PHP class
  6581. * @link http://www.php.net/manual/en/function.stream-wrapper-register.php
  6582. * @param protocol string <p>
  6583. * The wrapper name to be registered.
  6584. * </p>
  6585. * @param classname string <p>
  6586. * The classname which implements the protocol.
  6587. * </p>
  6588. * @param flags int[optional] <p>
  6589. * Should be set to STREAM_IS_URL if
  6590. * protocol is a URL protocol. Default is 0, local
  6591. * stream.
  6592. * </p>
  6593. * @return bool Returns true on success or false on failure.
  6594. * </p>
  6595. * <p>
  6596. * stream_wrapper_register will return false if the
  6597. * protocol already has a handler.
  6598. */
  6599. function stream_wrapper_register ($protocol, $classname, $flags = null) {}
  6600. /**
  6601. * &Alias; <function>stream_wrapper_register</function>
  6602. * @link http://www.php.net/manual/en/function.stream-register-wrapper.php
  6603. * @param protocol
  6604. * @param classname
  6605. * @param flags[optional]
  6606. */
  6607. function stream_register_wrapper ($protocol, $classname, $flags) {}
  6608. /**
  6609. * Unregister a URL wrapper
  6610. * @link http://www.php.net/manual/en/function.stream-wrapper-unregister.php
  6611. * @param protocol string <p>
  6612. * </p>
  6613. * @return bool Returns true on success or false on failure.
  6614. */
  6615. function stream_wrapper_unregister ($protocol) {}
  6616. /**
  6617. * Restores a previously unregistered built-in wrapper
  6618. * @link http://www.php.net/manual/en/function.stream-wrapper-restore.php
  6619. * @param protocol string <p>
  6620. * </p>
  6621. * @return bool Returns true on success or false on failure.
  6622. */
  6623. function stream_wrapper_restore ($protocol) {}
  6624. /**
  6625. * Retrieve list of registered streams
  6626. * @link http://www.php.net/manual/en/function.stream-get-wrappers.php
  6627. * @return array an indexed array containing the name of all stream wrappers
  6628. * available on the running system.
  6629. */
  6630. function stream_get_wrappers () {}
  6631. /**
  6632. * Retrieve list of registered socket transports
  6633. * @link http://www.php.net/manual/en/function.stream-get-transports.php
  6634. * @return array an indexed array of socket transports names.
  6635. */
  6636. function stream_get_transports () {}
  6637. /**
  6638. * Checks if a stream is a local stream
  6639. * @link http://www.php.net/manual/en/function.stream-is-local.php
  6640. * @param stream_or_url mixed <p>
  6641. * The stream resource or URL to check.
  6642. * </p>
  6643. * @return bool Returns true on success or false on failure.
  6644. */
  6645. function stream_is_local ($stream_or_url) {}
  6646. /**
  6647. * Fetches all the headers sent by the server in response to a HTTP request
  6648. * @link http://www.php.net/manual/en/function.get-headers.php
  6649. * @param url string <p>
  6650. * The target URL.
  6651. * </p>
  6652. * @param format int[optional] <p>
  6653. * If the optional format parameter is set to non-zero,
  6654. * get_headers parses the response and sets the
  6655. * array's keys.
  6656. * </p>
  6657. * @return array an indexed or associative array with the headers, or false on
  6658. * failure.
  6659. */
  6660. function get_headers ($url, $format = null) {}
  6661. /**
  6662. * Set timeout period on a stream
  6663. * @link http://www.php.net/manual/en/function.stream-set-timeout.php
  6664. * @param stream resource <p>
  6665. * The target stream.
  6666. * </p>
  6667. * @param seconds int <p>
  6668. * The seconds part of the timeout to be set.
  6669. * </p>
  6670. * @param microseconds int[optional] <p>
  6671. * The microseconds part of the timeout to be set.
  6672. * </p>
  6673. * @return bool Returns true on success or false on failure.
  6674. */
  6675. function stream_set_timeout ($stream, $seconds, $microseconds = null) {}
  6676. /**
  6677. * &Alias; <function>stream_set_timeout</function>
  6678. * @link http://www.php.net/manual/en/function.socket-set-timeout.php
  6679. * @param stream
  6680. * @param seconds
  6681. * @param microseconds
  6682. */
  6683. function socket_set_timeout ($stream, $seconds, $microseconds) {}
  6684. /**
  6685. * &Alias; <function>stream_get_meta_data</function>
  6686. * @link http://www.php.net/manual/en/function.socket-get-status.php
  6687. * @param fp
  6688. */
  6689. function socket_get_status ($fp) {}
  6690. /**
  6691. * Returns canonicalized absolute pathname
  6692. * @link http://www.php.net/manual/en/function.realpath.php
  6693. * @param path string <p>
  6694. * The path being checked.
  6695. * </p>
  6696. * @return string the canonicalized absolute pathname on success. The resulting path
  6697. * will have no symbolic link, '/./' or '/../' components.
  6698. * </p>
  6699. * <p>
  6700. * realpath returns false on failure, e.g. if
  6701. * the file does not exist.
  6702. * </p>
  6703. * <p>
  6704. * The running script must have executable permissions on all directories in
  6705. * the hierarchy, otherwise realpath will return
  6706. * false.
  6707. */
  6708. function realpath ($path) {}
  6709. /**
  6710. * Match filename against a pattern
  6711. * @link http://www.php.net/manual/en/function.fnmatch.php
  6712. * @param pattern string <p>
  6713. * The shell wildcard pattern.
  6714. * </p>
  6715. * @param string string <p>
  6716. * The tested string. This function is especially useful for filenames,
  6717. * but may also be used on regular strings.
  6718. * </p>
  6719. * <p>
  6720. * The average user may be used to shell patterns or at least in their
  6721. * simplest form to '?' and '*'
  6722. * wildcards so using fnmatch instead of
  6723. * preg_match for
  6724. * frontend search expression input may be way more convenient for
  6725. * non-programming users.
  6726. * </p>
  6727. * @param flags int[optional] <p>
  6728. * The value of flags can be any combination of
  6729. * the following flags, joined with the
  6730. * binary OR (|) operator.
  6731. * <table>
  6732. * A list of possible flags for fnmatch
  6733. * <tr valign="top">
  6734. * <td>Flag</td>
  6735. * <td>Description</td>
  6736. * </tr>
  6737. * <tr valign="top">
  6738. * <td>FNM_NOESCAPE</td>
  6739. * <td>
  6740. * Disable backslash escaping.
  6741. * </td>
  6742. * </tr>
  6743. * <tr valign="top">
  6744. * <td>FNM_PATHNAME</td>
  6745. * <td>
  6746. * Slash in string only matches slash in the given pattern.
  6747. * </td>
  6748. * </tr>
  6749. * <tr valign="top">
  6750. * <td>FNM_PERIOD</td>
  6751. * <td>
  6752. * Leading period in string must be exactly matched by period in the given pattern.
  6753. * </td>
  6754. * </tr>
  6755. * <tr valign="top">
  6756. * <td>FNM_CASEFOLD</td>
  6757. * <td>
  6758. * Caseless match. Part of the GNU extension.
  6759. * </td>
  6760. * </tr>
  6761. * </table>
  6762. * </p>
  6763. * @return bool true if there is a match, false otherwise.
  6764. */
  6765. function fnmatch ($pattern, $string, $flags = null) {}
  6766. /**
  6767. * Open Internet or Unix domain socket connection
  6768. * @link http://www.php.net/manual/en/function.fsockopen.php
  6769. * @param hostname string <p>
  6770. * If you have compiled in OpenSSL support, you may prefix the
  6771. * hostname with either ssl://
  6772. * or tls:// to use an SSL or TLS client connection
  6773. * over TCP/IP to connect to the remote host.
  6774. * </p>
  6775. * @param port int[optional] <p>
  6776. * The port number.
  6777. * </p>
  6778. * @param errno int[optional] <p>
  6779. * If provided, holds the system level error number that occurred in the
  6780. * system-level connect() call.
  6781. * </p>
  6782. * <p>
  6783. * If the value returned in errno is
  6784. * 0 and the function returned false, it is an
  6785. * indication that the error occurred before the
  6786. * connect() call. This is most likely due to a
  6787. * problem initializing the socket.
  6788. * </p>
  6789. * @param errstr string[optional] <p>
  6790. * The error message as a string.
  6791. * </p>
  6792. * @param timeout float[optional] <p>
  6793. * The connection timeout, in seconds.
  6794. * </p>
  6795. * <p>
  6796. * If you need to set a timeout for reading/writing data over the
  6797. * socket, use stream_set_timeout, as the
  6798. * timeout parameter to
  6799. * fsockopen only applies while connecting the
  6800. * socket.
  6801. * </p>
  6802. * @return resource fsockopen returns a file pointer which may be used
  6803. * together with the other file functions (such as
  6804. * fgets, fgetss,
  6805. * fwrite, fclose, and
  6806. * feof). If the call fails, it will return false
  6807. */
  6808. function fsockopen ($hostname, $port = null, &$errno = null, &$errstr = null, $timeout = null) {}
  6809. /**
  6810. * Open persistent Internet or Unix domain socket connection
  6811. * @link http://www.php.net/manual/en/function.pfsockopen.php
  6812. * @param hostname string
  6813. * @param port int[optional]
  6814. * @param errno int[optional]
  6815. * @param errstr string[optional]
  6816. * @param timeout float[optional]
  6817. * @return resource
  6818. */
  6819. function pfsockopen ($hostname, $port = null, &$errno = null, &$errstr = null, $timeout = null) {}
  6820. /**
  6821. * Pack data into binary string
  6822. * @link http://www.php.net/manual/en/function.pack.php
  6823. * @param format string <p>
  6824. * The format string consists of format codes
  6825. * followed by an optional repeater argument. The repeater argument can
  6826. * be either an integer value or * for repeating to
  6827. * the end of the input data. For a, A, h, H the repeat count specifies
  6828. * how many characters of one data argument are taken, for @ it is the
  6829. * absolute position where to put the next data, for everything else the
  6830. * repeat count specifies how many data arguments are consumed and packed
  6831. * into the resulting binary string.
  6832. * </p>
  6833. * <p>
  6834. * Currently implemented formats are:
  6835. * <table>
  6836. * pack format characters
  6837. * <tr valign="top">
  6838. * <td>Code</td>
  6839. * <td>Description</td>
  6840. * </tr>
  6841. * <tr valign="top">
  6842. * <td>a</td>
  6843. * <td>NUL-padded string</td>
  6844. * </tr>
  6845. * <tr valign="top">
  6846. * <td>A</td>
  6847. * <td>SPACE-padded string</td></tr>
  6848. * <tr valign="top">
  6849. * <td>h</td>
  6850. * <td>Hex string, low nibble first</td></tr>
  6851. * <tr valign="top">
  6852. * <td>H</td>
  6853. * <td>Hex string, high nibble first</td></tr>
  6854. * <tr valign="top"><td>c</td><td>signed char</td></tr>
  6855. * <tr valign="top">
  6856. * <td>C</td>
  6857. * <td>unsigned char</td></tr>
  6858. * <tr valign="top">
  6859. * <td>s</td>
  6860. * <td>signed short (always 16 bit, machine byte order)</td>
  6861. * </tr>
  6862. * <tr valign="top">
  6863. * <td>S</td>
  6864. * <td>unsigned short (always 16 bit, machine byte order)</td>
  6865. * </tr>
  6866. * <tr valign="top">
  6867. * <td>n</td>
  6868. * <td>unsigned short (always 16 bit, big endian byte order)</td>
  6869. * </tr>
  6870. * <tr valign="top">
  6871. * <td>v</td>
  6872. * <td>unsigned short (always 16 bit, little endian byte order)</td>
  6873. * </tr>
  6874. * <tr valign="top">
  6875. * <td>i</td>
  6876. * <td>signed integer (machine dependent size and byte order)</td>
  6877. * </tr>
  6878. * <tr valign="top">
  6879. * <td>I</td>
  6880. * <td>unsigned integer (machine dependent size and byte order)</td>
  6881. * </tr>
  6882. * <tr valign="top">
  6883. * <td>l</td>
  6884. * <td>signed long (always 32 bit, machine byte order)</td>
  6885. * </tr>
  6886. * <tr valign="top">
  6887. * <td>L</td>
  6888. * <td>unsigned long (always 32 bit, machine byte order)</td>
  6889. * </tr>
  6890. * <tr valign="top">
  6891. * <td>N</td>
  6892. * <td>unsigned long (always 32 bit, big endian byte order)</td>
  6893. * </tr>
  6894. * <tr valign="top">
  6895. * <td>V</td>
  6896. * <td>unsigned long (always 32 bit, little endian byte order)</td>
  6897. * </tr>
  6898. * <tr valign="top">
  6899. * <td>f</td>
  6900. * <td>float (machine dependent size and representation)</td>
  6901. * </tr>
  6902. * <tr valign="top">
  6903. * <td>d</td>
  6904. * <td>double (machine dependent size and representation)</td>
  6905. * </tr>
  6906. * <tr valign="top">
  6907. * <td>x</td>
  6908. * <td>NUL byte</td>
  6909. * </tr>
  6910. * <tr valign="top">
  6911. * <td>X</td>
  6912. * <td>Back up one byte</td>
  6913. * </tr>
  6914. * <tr valign="top">
  6915. * <td>@</td>
  6916. * <td>NUL-fill to absolute position</td>
  6917. * </tr>
  6918. * </table>
  6919. * </p>
  6920. * @param args mixed[optional] <p>
  6921. * </p>
  6922. * @param _ mixed[optional]
  6923. * @return string a binary string containing data.
  6924. */
  6925. function pack ($format, $args = null, $_ = null) {}
  6926. /**
  6927. * Unpack data from binary string
  6928. * @link http://www.php.net/manual/en/function.unpack.php
  6929. * @param format string <p>
  6930. * See pack for an explanation of the format codes.
  6931. * </p>
  6932. * @param data string <p>
  6933. * The packed data.
  6934. * </p>
  6935. * @return array an associative array containing unpacked elements of binary
  6936. * string.
  6937. */
  6938. function unpack ($format, $data) {}
  6939. /**
  6940. * Tells what the user's browser is capable of
  6941. * @link http://www.php.net/manual/en/function.get-browser.php
  6942. * @param user_agent string[optional] <p>
  6943. * The User Agent to be analyzed. By default, the value of HTTP
  6944. * User-Agent header is used; however, you can alter this (i.e., look up
  6945. * another browser's info) by passing this parameter.
  6946. * </p>
  6947. * <p>
  6948. * You can bypass this parameter with a &null; value.
  6949. * </p>
  6950. * @param return_array bool[optional] <p>
  6951. * If set to true, this function will return an array
  6952. * instead of an object.
  6953. * </p>
  6954. * @return mixed The information is returned in an object or an array which will contain
  6955. * various data elements representing, for instance, the browser's major and
  6956. * minor version numbers and ID string; true/false values for features
  6957. * such as frames, JavaScript, and cookies; and so forth.
  6958. * </p>
  6959. * <p>
  6960. * The cookies value simply means that the browser
  6961. * itself is capable of accepting cookies and does not mean the user has
  6962. * enabled the browser to accept cookies or not. The only way to test if
  6963. * cookies are accepted is to set one with setcookie,
  6964. * reload, and check for the value.
  6965. */
  6966. function get_browser ($user_agent = null, $return_array = null) {}
  6967. /**
  6968. * One-way string hashing
  6969. * @link http://www.php.net/manual/en/function.crypt.php
  6970. * @param str string <p>
  6971. * The string to be hashed.
  6972. * </p>
  6973. * @param salt string[optional] <p>
  6974. * An optional salt string to base the hashing on. If not provided,
  6975. * one will be randomly generated by PHP each time you call this function.
  6976. * </p>
  6977. * <p>
  6978. * If you are using the supplied salt, you should be aware that the salt
  6979. * is generated once. If you are calling this function repeatedly, this
  6980. * may impact both appearance and security.
  6981. * </p>
  6982. * @return string the hashed string or a string that is shorter than 13 characters
  6983. * and is guaranteed to differ from the salt on failure.
  6984. */
  6985. function crypt ($str, $salt = null) {}
  6986. /**
  6987. * Open directory handle
  6988. * @link http://www.php.net/manual/en/function.opendir.php
  6989. * @param path string <p>
  6990. * The directory path that is to be opened
  6991. * </p>
  6992. * @param context resource[optional] <p>
  6993. * For a description of the context parameter,
  6994. * refer to the streams section of
  6995. * the manual.
  6996. * </p>
  6997. * @return resource a directory handle resource on success, or
  6998. * false on failure.
  6999. * </p>
  7000. * <p>
  7001. * If path is not a valid directory or the
  7002. * directory can not be opened due to permission restrictions or
  7003. * filesystem errors, opendir returns false and
  7004. * generates a PHP error of level
  7005. * E_WARNING. You can suppress the error output of
  7006. * opendir by prepending
  7007. * '@' to the
  7008. * front of the function name.
  7009. */
  7010. function opendir ($path, $context = null) {}
  7011. /**
  7012. * Close directory handle
  7013. * @link http://www.php.net/manual/en/function.closedir.php
  7014. * @param dir_handle resource[optional] <p>
  7015. * The directory handle resource previously opened
  7016. * with opendir. If the directory handle is
  7017. * not specified, the last link opened by opendir
  7018. * is assumed.
  7019. * </p>
  7020. * @return void
  7021. */
  7022. function closedir ($dir_handle = null) {}
  7023. /**
  7024. * Change directory
  7025. * @link http://www.php.net/manual/en/function.chdir.php
  7026. * @param directory string <p>
  7027. * The new current directory
  7028. * </p>
  7029. * @return bool Returns true on success or false on failure.
  7030. */
  7031. function chdir ($directory) {}
  7032. /**
  7033. * Gets the current working directory
  7034. * @link http://www.php.net/manual/en/function.getcwd.php
  7035. * @return string the current working directory on success, or false on
  7036. * failure.
  7037. * </p>
  7038. * <p>
  7039. * On some Unix variants, getcwd will return
  7040. * false if any one of the parent directories does not have the
  7041. * readable or search mode set, even if the current directory
  7042. * does. See chmod for more information on
  7043. * modes and permissions.
  7044. */
  7045. function getcwd () {}
  7046. /**
  7047. * Rewind directory handle
  7048. * @link http://www.php.net/manual/en/function.rewinddir.php
  7049. * @param dir_handle resource[optional] <p>
  7050. * The directory handle resource previously opened
  7051. * with opendir. If the directory handle is
  7052. * not specified, the last link opened by opendir
  7053. * is assumed.
  7054. * </p>
  7055. * @return void
  7056. */
  7057. function rewinddir ($dir_handle = null) {}
  7058. /**
  7059. * Read entry from directory handle
  7060. * @link http://www.php.net/manual/en/function.readdir.php
  7061. * @param dir_handle resource[optional] <p>
  7062. * The directory handle resource previously opened
  7063. * with opendir. If the directory handle is
  7064. * not specified, the last link opened by opendir
  7065. * is assumed.
  7066. * </p>
  7067. * @return string the filename on success&return.falseforfailure;.
  7068. */
  7069. function readdir ($dir_handle = null) {}
  7070. /**
  7071. * Return an instance of the Directory class
  7072. * @link http://www.php.net/manual/en/class.dir.php
  7073. * @param directory
  7074. * @param context[optional]
  7075. * @return string
  7076. */
  7077. function dir ($directory, $context) {}
  7078. /**
  7079. * List files and directories inside the specified path
  7080. * @link http://www.php.net/manual/en/function.scandir.php
  7081. * @param directory string <p>
  7082. * The directory that will be scanned.
  7083. * </p>
  7084. * @param sorting_order int[optional] <p>
  7085. * By default, the sorted order is alphabetical in ascending order. If
  7086. * the optional sorting_order is set to non-zero,
  7087. * then the sort order is alphabetical in descending order.
  7088. * </p>
  7089. * @param context resource[optional] <p>
  7090. * For a description of the context parameter,
  7091. * refer to the streams section of
  7092. * the manual.
  7093. * </p>
  7094. * @return array an array of filenames on success, or false on
  7095. * failure. If directory is not a directory, then
  7096. * boolean false is returned, and an error of level
  7097. * E_WARNING is generated.
  7098. */
  7099. function scandir ($directory, $sorting_order = null, $context = null) {}
  7100. /**
  7101. * Find pathnames matching a pattern
  7102. * @link http://www.php.net/manual/en/function.glob.php
  7103. * @param pattern string <p>
  7104. * The pattern. No tilde expansion or parameter substitution is done.
  7105. * </p>
  7106. * @param flags int[optional] <p>
  7107. * Valid flags:
  7108. * GLOB_MARK - Adds a slash to each directory returned
  7109. * @return array an array containing the matched files/directories, an empty array
  7110. * if no file matched or false on error.
  7111. * </p>
  7112. * <p>
  7113. * On some systems it is impossible to distinguish between empty match and an
  7114. * error.
  7115. */
  7116. function glob ($pattern, $flags = null) {}
  7117. /**
  7118. * Gets last access time of file
  7119. * @link http://www.php.net/manual/en/function.fileatime.php
  7120. * @param filename string <p>
  7121. * Path to the file.
  7122. * </p>
  7123. * @return int the time the file was last accessed, &return.falseforfailure;.
  7124. * The time is returned as a Unix timestamp.
  7125. */
  7126. function fileatime ($filename) {}
  7127. /**
  7128. * Gets inode change time of file
  7129. * @link http://www.php.net/manual/en/function.filectime.php
  7130. * @param filename string <p>
  7131. * Path to the file.
  7132. * </p>
  7133. * @return int the time the file was last changed, &return.falseforfailure;.
  7134. * The time is returned as a Unix timestamp.
  7135. */
  7136. function filectime ($filename) {}
  7137. /**
  7138. * Gets file group
  7139. * @link http://www.php.net/manual/en/function.filegroup.php
  7140. * @param filename string <p>
  7141. * Path to the file.
  7142. * </p>
  7143. * @return int the group ID of the file, or false in case
  7144. * of an error. The group ID is returned in numerical format, use
  7145. * posix_getgrgid to resolve it to a group name.
  7146. * Upon failure, false is returned.
  7147. */
  7148. function filegroup ($filename) {}
  7149. /**
  7150. * Gets file inode
  7151. * @link http://www.php.net/manual/en/function.fileinode.php
  7152. * @param filename string <p>
  7153. * Path to the file.
  7154. * </p>
  7155. * @return int the inode number of the file, &return.falseforfailure;.
  7156. */
  7157. function fileinode ($filename) {}
  7158. /**
  7159. * Gets file modification time
  7160. * @link http://www.php.net/manual/en/function.filemtime.php
  7161. * @param filename string <p>
  7162. * Path to the file.
  7163. * </p>
  7164. * @return int the time the file was last modified, &return.falseforfailure;.
  7165. * The time is returned as a Unix timestamp, which is
  7166. * suitable for the date function.
  7167. */
  7168. function filemtime ($filename) {}
  7169. /**
  7170. * Gets file owner
  7171. * @link http://www.php.net/manual/en/function.fileowner.php
  7172. * @param filename string <p>
  7173. * Path to the file.
  7174. * </p>
  7175. * @return int the user ID of the owner of the file, &return.falseforfailure;.
  7176. * The user ID is returned in numerical format, use
  7177. * posix_getpwuid to resolve it to a username.
  7178. */
  7179. function fileowner ($filename) {}
  7180. /**
  7181. * Gets file permissions
  7182. * @link http://www.php.net/manual/en/function.fileperms.php
  7183. * @param filename string <p>
  7184. * Path to the file.
  7185. * </p>
  7186. * @return int the permissions on the file, &return.falseforfailure;.
  7187. */
  7188. function fileperms ($filename) {}
  7189. /**
  7190. * Gets file size
  7191. * @link http://www.php.net/manual/en/function.filesize.php
  7192. * @param filename string <p>
  7193. * Path to the file.
  7194. * </p>
  7195. * @return int the size of the file in bytes, or false (and generates an error
  7196. * of level E_WARNING) in case of an error.
  7197. */
  7198. function filesize ($filename) {}
  7199. /**
  7200. * Gets file type
  7201. * @link http://www.php.net/manual/en/function.filetype.php
  7202. * @param filename string <p>
  7203. * Path to the file.
  7204. * </p>
  7205. * @return string the type of the file. Possible values are fifo, char,
  7206. * dir, block, link, file, socket and unknown.
  7207. * </p>
  7208. * <p>
  7209. * Returns false if an error occurs. filetype will also
  7210. * produce an E_NOTICE message if the stat call fails
  7211. * or if the file type is unknown.
  7212. */
  7213. function filetype ($filename) {}
  7214. /**
  7215. * Checks whether a file or directory exists
  7216. * @link http://www.php.net/manual/en/function.file-exists.php
  7217. * @param filename string <p>
  7218. * Path to the file or directory.
  7219. * </p>
  7220. * <p>
  7221. * On windows, use //computername/share/filename or
  7222. * \\computername\share\filename to check files on
  7223. * network shares.
  7224. * </p>
  7225. * @return bool true if the file or directory specified by
  7226. * filename exists; false otherwise.
  7227. * </p>
  7228. * <p>
  7229. * This function will return false for symlinks pointing to non-existing
  7230. * files.
  7231. * </p>
  7232. * <p>
  7233. * This function returns false for files inaccessible due to safe mode restrictions. However these
  7234. * files still can be included if
  7235. * they are located in safe_mode_include_dir.
  7236. * </p>
  7237. * <p>
  7238. * The check is done using the real UID/GID instead of the effective one.
  7239. */
  7240. function file_exists ($filename) {}
  7241. /**
  7242. * Tells whether the filename is writable
  7243. * @link http://www.php.net/manual/en/function.is-writable.php
  7244. * @param filename string <p>
  7245. * The filename being checked.
  7246. * </p>
  7247. * @return bool true if the filename exists and is
  7248. * writable.
  7249. */
  7250. function is_writable ($filename) {}
  7251. /**
  7252. * &Alias; <function>is_writable</function>
  7253. * @link http://www.php.net/manual/en/function.is-writeable.php
  7254. * @param filename
  7255. */
  7256. function is_writeable ($filename) {}
  7257. /**
  7258. * Tells whether a file exists and is readable
  7259. * @link http://www.php.net/manual/en/function.is-readable.php
  7260. * @param filename string <p>
  7261. * Path to the file.
  7262. * </p>
  7263. * @return bool true if the file or directory specified by
  7264. * filename exists and is readable, false otherwise.
  7265. */
  7266. function is_readable ($filename) {}
  7267. /**
  7268. * Tells whether the filename is executable
  7269. * @link http://www.php.net/manual/en/function.is-executable.php
  7270. * @param filename string <p>
  7271. * Path to the file.
  7272. * </p>
  7273. * @return bool true if the filename exists and is executable, or false on
  7274. * error.
  7275. */
  7276. function is_executable ($filename) {}
  7277. /**
  7278. * Tells whether the filename is a regular file
  7279. * @link http://www.php.net/manual/en/function.is-file.php
  7280. * @param filename string <p>
  7281. * Path to the file.
  7282. * </p>
  7283. * @return bool true if the filename exists and is a regular file, false
  7284. * otherwise.
  7285. */
  7286. function is_file ($filename) {}
  7287. /**
  7288. * Tells whether the filename is a directory
  7289. * @link http://www.php.net/manual/en/function.is-dir.php
  7290. * @param filename string <p>
  7291. * Path to the file. If filename is a relative
  7292. * filename, it will be checked relative to the current working
  7293. * directory. If filename is a symbolic or hard link
  7294. * then the link will be resolved and checked. If you have enabled &safemode;,
  7295. * or open_basedir further
  7296. * restrictions may apply.
  7297. * </p>
  7298. * @return bool true if the filename exists and is a directory, false
  7299. * otherwise.
  7300. */
  7301. function is_dir ($filename) {}
  7302. /**
  7303. * Tells whether the filename is a symbolic link
  7304. * @link http://www.php.net/manual/en/function.is-link.php
  7305. * @param filename string <p>
  7306. * Path to the file.
  7307. * </p>
  7308. * @return bool true if the filename exists and is a symbolic link, false
  7309. * otherwise.
  7310. */
  7311. function is_link ($filename) {}
  7312. /**
  7313. * Gives information about a file
  7314. * @link http://www.php.net/manual/en/function.stat.php
  7315. * @param filename string <p>
  7316. * Path to the file.
  7317. * </p>
  7318. * @return array <table>
  7319. * stat and fstat result
  7320. * format
  7321. * <tr valign="top">
  7322. * <td>Numeric</td>
  7323. * <td>Associative (since PHP 4.0.6)</td>
  7324. * <td>Description</td>
  7325. * </tr>
  7326. * <tr valign="top">
  7327. * <td>0</td>
  7328. * <td>dev</td>
  7329. * <td>device number</td>
  7330. * </tr>
  7331. * <tr valign="top">
  7332. * <td>1</td>
  7333. * <td>ino</td>
  7334. * <td>inode number *</td>
  7335. * </tr>
  7336. * <tr valign="top">
  7337. * <td>2</td>
  7338. * <td>mode</td>
  7339. * <td>inode protection mode</td>
  7340. * </tr>
  7341. * <tr valign="top">
  7342. * <td>3</td>
  7343. * <td>nlink</td>
  7344. * <td>number of links</td>
  7345. * </tr>
  7346. * <tr valign="top">
  7347. * <td>4</td>
  7348. * <td>uid</td>
  7349. * <td>userid of owner *</td>
  7350. * </tr>
  7351. * <tr valign="top">
  7352. * <td>5</td>
  7353. * <td>gid</td>
  7354. * <td>groupid of owner *</td>
  7355. * </tr>
  7356. * <tr valign="top">
  7357. * <td>6</td>
  7358. * <td>rdev</td>
  7359. * <td>device type, if inode device</td>
  7360. * </tr>
  7361. * <tr valign="top">
  7362. * <td>7</td>
  7363. * <td>size</td>
  7364. * <td>size in bytes</td>
  7365. * </tr>
  7366. * <tr valign="top">
  7367. * <td>8</td>
  7368. * <td>atime</td>
  7369. * <td>time of last access (Unix timestamp)</td>
  7370. * </tr>
  7371. * <tr valign="top">
  7372. * <td>9</td>
  7373. * <td>mtime</td>
  7374. * <td>time of last modification (Unix timestamp)</td>
  7375. * </tr>
  7376. * <tr valign="top">
  7377. * <td>10</td>
  7378. * <td>ctime</td>
  7379. * <td>time of last inode change (Unix timestamp)</td>
  7380. * </tr>
  7381. * <tr valign="top">
  7382. * <td>11</td>
  7383. * <td>blksize</td>
  7384. * <td>blocksize of filesystem IO **</td>
  7385. * </tr>
  7386. * <tr valign="top">
  7387. * <td>12</td>
  7388. * <td>blocks</td>
  7389. * <td>number of 512-byte blocks allocated **</td>
  7390. * </tr>
  7391. * </table>
  7392. * * On Windows this will always be 0.
  7393. * </p>
  7394. * <p>
  7395. * ** Only valid on systems supporting the st_blksize type - other
  7396. * systems (e.g. Windows) return -1.
  7397. * </p>
  7398. * <p>
  7399. * In case of error, stat returns false.
  7400. */
  7401. function stat ($filename) {}
  7402. /**
  7403. * Gives information about a file or symbolic link
  7404. * @link http://www.php.net/manual/en/function.lstat.php
  7405. * @param filename string <p>
  7406. * Path to a file or a symbolic link.
  7407. * </p>
  7408. * @return array See the manual page for stat for information on
  7409. * the structure of the array that lstat returns.
  7410. * This function is identical to the stat function
  7411. * except that if the filename parameter is a symbolic
  7412. * link, the status of the symbolic link is returned, not the status of the
  7413. * file pointed to by the symbolic link.
  7414. */
  7415. function lstat ($filename) {}
  7416. /**
  7417. * Changes file owner
  7418. * @link http://www.php.net/manual/en/function.chown.php
  7419. * @param filename string <p>
  7420. * Path to the file.
  7421. * </p>
  7422. * @param user mixed <p>
  7423. * A user name or number.
  7424. * </p>
  7425. * @return bool Returns true on success or false on failure.
  7426. */
  7427. function chown ($filename, $user) {}
  7428. /**
  7429. * Changes file group
  7430. * @link http://www.php.net/manual/en/function.chgrp.php
  7431. * @param filename string <p>
  7432. * Path to the file.
  7433. * </p>
  7434. * @param group mixed <p>
  7435. * A group name or number.
  7436. * </p>
  7437. * @return bool Returns true on success or false on failure.
  7438. */
  7439. function chgrp ($filename, $group) {}
  7440. /**
  7441. * Changes user ownership of symlink
  7442. * @link http://www.php.net/manual/en/function.lchown.php
  7443. * @param filename string <p>
  7444. * Path to the file.
  7445. * </p>
  7446. * @param user mixed <p>
  7447. * User name or number.
  7448. * </p>
  7449. * @return bool Returns true on success or false on failure.
  7450. */
  7451. function lchown ($filename, $user) {}
  7452. /**
  7453. * Changes group ownership of symlink
  7454. * @link http://www.php.net/manual/en/function.lchgrp.php
  7455. * @param filename string <p>
  7456. * Path to the symlink.
  7457. * </p>
  7458. * @param group mixed <p>
  7459. * The group specified by name or number.
  7460. * </p>
  7461. * @return bool Returns true on success or false on failure.
  7462. */
  7463. function lchgrp ($filename, $group) {}
  7464. /**
  7465. * Changes file mode
  7466. * @link http://www.php.net/manual/en/function.chmod.php
  7467. * @param filename string <p>
  7468. * Path to the file.
  7469. * </p>
  7470. * @param mode int <p>
  7471. * Note that mode is not automatically
  7472. * assumed to be an octal value, so strings (such as "g+w") will
  7473. * not work properly. To ensure the expected operation,
  7474. * you need to prefix mode with a zero (0):
  7475. * </p>
  7476. * <p>
  7477. * ]]>
  7478. * </p>
  7479. * <p>
  7480. * The mode parameter consists of three octal
  7481. * number components specifying access restrictions for the owner,
  7482. * the user group in which the owner is in, and to everybody else in
  7483. * this order. One component can be computed by adding up the needed
  7484. * permissions for that target user base. Number 1 means that you
  7485. * grant execute rights, number 2 means that you make the file
  7486. * writeable, number 4 means that you make the file readable. Add
  7487. * up these numbers to specify needed rights. You can also read more
  7488. * about modes on Unix systems with 'man 1 chmod'
  7489. * and 'man 2 chmod'.
  7490. * </p>
  7491. * <p>
  7492. * @return bool Returns true on success or false on failure.
  7493. */
  7494. function chmod ($filename, $mode) {}
  7495. /**
  7496. * Sets access and modification time of file
  7497. * @link http://www.php.net/manual/en/function.touch.php
  7498. * @param filename string <p>
  7499. * The name of the file being touched.
  7500. * </p>
  7501. * @param time int[optional] <p>
  7502. * The touch time. If time is not supplied,
  7503. * the current system time is used.
  7504. * </p>
  7505. * @param atime int[optional] <p>
  7506. * If present, the access time of the given filename is set to
  7507. * the value of atime. Otherwise, it is set to
  7508. * time.
  7509. * </p>
  7510. * @return bool Returns true on success or false on failure.
  7511. */
  7512. function touch ($filename, $time = null, $atime = null) {}
  7513. /**
  7514. * Clears file status cache
  7515. * @link http://www.php.net/manual/en/function.clearstatcache.php
  7516. * @param clear_realpath_cache bool[optional] <p>
  7517. * Whether to clear the realpath cache or not.
  7518. * </p>
  7519. * @param filename string[optional] <p>
  7520. * Clear the realpath cache for a specific filename; only used if
  7521. * clear_realpath_cache is true.
  7522. * </p>
  7523. * @return void
  7524. */
  7525. function clearstatcache ($clear_realpath_cache = null, $filename = null) {}
  7526. /**
  7527. * Returns the total size of a filesystem or disk partition
  7528. * @link http://www.php.net/manual/en/function.disk-total-space.php
  7529. * @param directory string <p>
  7530. * A directory of the filesystem or disk partition.
  7531. * </p>
  7532. * @return float the total number of bytes as a float
  7533. * &return.falseforfailure;.
  7534. */
  7535. function disk_total_space ($directory) {}
  7536. /**
  7537. * Returns available space on filesystem or disk partition
  7538. * @link http://www.php.net/manual/en/function.disk-free-space.php
  7539. * @param directory string <p>
  7540. * A directory of the filesystem or disk partition.
  7541. * </p>
  7542. * <p>
  7543. * Given a file name instead of a directory, the behaviour of the
  7544. * function is unspecified and may differ between operating systems and
  7545. * PHP versions.
  7546. * </p>
  7547. * @return float the number of available bytes as a float
  7548. * &return.falseforfailure;.
  7549. */
  7550. function disk_free_space ($directory) {}
  7551. /**
  7552. * &Alias; <function>disk_free_space</function>
  7553. * @link http://www.php.net/manual/en/function.diskfreespace.php
  7554. * @param path
  7555. */
  7556. function diskfreespace ($path) {}
  7557. /**
  7558. * Send mail
  7559. * @link http://www.php.net/manual/en/function.mail.php
  7560. * @param to string <p>
  7561. * Receiver, or receivers of the mail.
  7562. * </p>
  7563. * <p>
  7564. * The formatting of this string must comply with
  7565. * RFC 2822. Some examples are:
  7566. * user@example.com
  7567. * user@example.com, anotheruser@example.com
  7568. * User &lt;user@example.com&gt;
  7569. * User &lt;user@example.com&gt;, Another User &lt;anotheruser@example.com&gt;
  7570. * </p>
  7571. * @param subject string <p>
  7572. * Subject of the email to be sent.
  7573. * </p>
  7574. * <p>
  7575. * Subject must satisfy RFC 2047.
  7576. * </p>
  7577. * @param message string <p>
  7578. * Message to be sent.
  7579. * </p>
  7580. * <p>
  7581. * Each line should be separated with a LF (\n). Lines should not be larger
  7582. * than 70 characters.
  7583. * </p>
  7584. * <p>
  7585. * (Windows only) When PHP is talking to a SMTP server directly, if a full
  7586. * stop is found on the start of a line, it is removed. To counter-act this,
  7587. * replace these occurrences with a double dot.
  7588. * ]]>
  7589. * </p>
  7590. * @param additional_headers string[optional] <p>
  7591. * String to be inserted at the end of the email header.
  7592. * </p>
  7593. * <p>
  7594. * This is typically used to add extra headers (From, Cc, and Bcc).
  7595. * Multiple extra headers should be separated with a CRLF (\r\n).
  7596. * </p>
  7597. * <p>
  7598. * When sending mail, the mail must contain
  7599. * a From header. This can be set with the
  7600. * additional_headers parameter, or a default
  7601. * can be set in &php.ini;.
  7602. * </p>
  7603. * <p>
  7604. * Failing to do this will result in an error
  7605. * message similar to Warning: mail(): "sendmail_from" not
  7606. * set in php.ini or custom "From:" header missing.
  7607. * The From header sets also
  7608. * Return-Path under Windows.
  7609. * </p>
  7610. * <p>
  7611. * If messages are not received, try using a LF (\n) only.
  7612. * Some poor quality Unix mail transfer agents replace LF by CRLF
  7613. * automatically (which leads to doubling CR if CRLF is used).
  7614. * This should be a last resort, as it does not comply with
  7615. * RFC 2822.
  7616. * </p>
  7617. * @param additional_parameters string[optional] <p>
  7618. * The additional_parameters parameter
  7619. * can be used to pass additional flags as command line options to the
  7620. * program configured to be used when sending mail, as defined by the
  7621. * sendmail_path configuration setting. For example,
  7622. * this can be used to set the envelope sender address when using
  7623. * sendmail with the -f sendmail option.
  7624. * </p>
  7625. * <p>
  7626. * The user that the webserver runs as should be added as a trusted user to the
  7627. * sendmail configuration to prevent a 'X-Warning' header from being added
  7628. * to the message when the envelope sender (-f) is set using this method.
  7629. * For sendmail users, this file is /etc/mail/trusted-users.
  7630. * </p>
  7631. * @return bool true if the mail was successfully accepted for delivery, false otherwise.
  7632. * </p>
  7633. * <p>
  7634. * It is important to note that just because the mail was accepted for delivery,
  7635. * it does NOT mean the mail will actually reach the intended destination.
  7636. */
  7637. function mail ($to, $subject, $message, $additional_headers = null, $additional_parameters = null) {}
  7638. /**
  7639. * Calculate the hash value needed by EZMLM
  7640. * @link http://www.php.net/manual/en/function.ezmlm-hash.php
  7641. * @param addr string <p>
  7642. * The email address that's being hashed.
  7643. * </p>
  7644. * @return int The hash value of addr.
  7645. */
  7646. function ezmlm_hash ($addr) {}
  7647. /**
  7648. * Open connection to system logger
  7649. * @link http://www.php.net/manual/en/function.openlog.php
  7650. * @param ident string <p>
  7651. * The string ident is added to each message.
  7652. * </p>
  7653. * @param option int <p>
  7654. * The option argument is used to indicate
  7655. * what logging options will be used when generating a log message.
  7656. * <table>
  7657. * openlog Options
  7658. * <tr valign="top">
  7659. * <td>Constant</td>
  7660. * <td>Description</td>
  7661. * </tr>
  7662. * <tr valign="top">
  7663. * <td>LOG_CONS</td>
  7664. * <td>
  7665. * if there is an error while sending data to the system logger,
  7666. * write directly to the system console
  7667. * </td>
  7668. * </tr>
  7669. * <tr valign="top">
  7670. * <td>LOG_NDELAY</td>
  7671. * <td>
  7672. * open the connection to the logger immediately
  7673. * </td>
  7674. * </tr>
  7675. * <tr valign="top">
  7676. * <td>LOG_ODELAY</td>
  7677. * <td>
  7678. * (default) delay opening the connection until the first
  7679. * message is logged
  7680. * </td>
  7681. * </tr>
  7682. * <tr valign="top">
  7683. * <td>LOG_PERROR</td>
  7684. * <td>print log message also to standard error</td>
  7685. * </tr>
  7686. * <tr valign="top">
  7687. * <td>LOG_PID</td>
  7688. * <td>include PID with each message</td>
  7689. * </tr>
  7690. * </table>
  7691. * You can use one or more of this options. When using multiple options
  7692. * you need to OR them, i.e. to open the connection
  7693. * immediately, write to the console and include the PID in each message,
  7694. * you will use: LOG_CONS | LOG_NDELAY | LOG_PID
  7695. * </p>
  7696. * @param facility int <p>
  7697. * The facility argument is used to specify what
  7698. * type of program is logging the message. This allows you to specify
  7699. * (in your machine's syslog configuration) how messages coming from
  7700. * different facilities will be handled.
  7701. * <table>
  7702. * openlog Facilities
  7703. * <tr valign="top">
  7704. * <td>Constant</td>
  7705. * <td>Description</td>
  7706. * </tr>
  7707. * <tr valign="top">
  7708. * <td>LOG_AUTH</td>
  7709. * <td>
  7710. * security/authorization messages (use
  7711. * LOG_AUTHPRIV instead
  7712. * in systems where that constant is defined)
  7713. * </td>
  7714. * </tr>
  7715. * <tr valign="top">
  7716. * <td>LOG_AUTHPRIV</td>
  7717. * <td>security/authorization messages (private)</td>
  7718. * </tr>
  7719. * <tr valign="top">
  7720. * <td>LOG_CRON</td>
  7721. * <td>clock daemon (cron and at)</td>
  7722. * </tr>
  7723. * <tr valign="top">
  7724. * <td>LOG_DAEMON</td>
  7725. * <td>other system daemons</td>
  7726. * </tr>
  7727. * <tr valign="top">
  7728. * <td>LOG_KERN</td>
  7729. * <td>kernel messages</td>
  7730. * </tr>
  7731. * <tr valign="top">
  7732. * <td>LOG_LOCAL0 ... LOG_LOCAL7</td>
  7733. * <td>reserved for local use, these are not available in Windows</td>
  7734. * </tr>
  7735. * <tr valign="top">
  7736. * <td>LOG_LPR</td>
  7737. * <td>line printer subsystem</td>
  7738. * </tr>
  7739. * <tr valign="top">
  7740. * <td>LOG_MAIL</td>
  7741. * <td>mail subsystem</td>
  7742. * </tr>
  7743. * <tr valign="top">
  7744. * <td>LOG_NEWS</td>
  7745. * <td>USENET news subsystem</td>
  7746. * </tr>
  7747. * <tr valign="top">
  7748. * <td>LOG_SYSLOG</td>
  7749. * <td>messages generated internally by syslogd</td>
  7750. * </tr>
  7751. * <tr valign="top">
  7752. * <td>LOG_USER</td>
  7753. * <td>generic user-level messages</td>
  7754. * </tr>
  7755. * <tr valign="top">
  7756. * <td>LOG_UUCP</td>
  7757. * <td>UUCP subsystem</td>
  7758. * </tr>
  7759. * </table>
  7760. * </p>
  7761. * <p>
  7762. * LOG_USER is the only valid log type under Windows
  7763. * operating systems
  7764. * </p>
  7765. * @return bool Returns true on success or false on failure.
  7766. */
  7767. function openlog ($ident, $option, $facility) {}
  7768. /**
  7769. * Generate a system log message
  7770. * @link http://www.php.net/manual/en/function.syslog.php
  7771. * @param priority int <p>
  7772. * priority is a combination of the facility and
  7773. * the level. Possible values are:
  7774. * <table>
  7775. * syslog Priorities (in descending order)
  7776. * <tr valign="top">
  7777. * <td>Constant</td>
  7778. * <td>Description</td>
  7779. * </tr>
  7780. * <tr valign="top">
  7781. * <td>LOG_EMERG</td>
  7782. * <td>system is unusable</td>
  7783. * </tr>
  7784. * <tr valign="top">
  7785. * <td>LOG_ALERT</td>
  7786. * <td>action must be taken immediately</td>
  7787. * </tr>
  7788. * <tr valign="top">
  7789. * <td>LOG_CRIT</td>
  7790. * <td>critical conditions</td>
  7791. * </tr>
  7792. * <tr valign="top">
  7793. * <td>LOG_ERR</td>
  7794. * <td>error conditions</td>
  7795. * </tr>
  7796. * <tr valign="top">
  7797. * <td>LOG_WARNING</td>
  7798. * <td>warning conditions</td>
  7799. * </tr>
  7800. * <tr valign="top">
  7801. * <td>LOG_NOTICE</td>
  7802. * <td>normal, but significant, condition</td>
  7803. * </tr>
  7804. * <tr valign="top">
  7805. * <td>LOG_INFO</td>
  7806. * <td>informational message</td>
  7807. * </tr>
  7808. * <tr valign="top">
  7809. * <td>LOG_DEBUG</td>
  7810. * <td>debug-level message</td>
  7811. * </tr>
  7812. * </table>
  7813. * </p>
  7814. * @param message string <p>
  7815. * The message to send, except that the two characters
  7816. * %m will be replaced by the error message string
  7817. * (strerror) corresponding to the present value of
  7818. * errno.
  7819. * </p>
  7820. * @return bool Returns true on success or false on failure.
  7821. */
  7822. function syslog ($priority, $message) {}
  7823. /**
  7824. * Close connection to system logger
  7825. * @link http://www.php.net/manual/en/function.closelog.php
  7826. * @return bool Returns true on success or false on failure.
  7827. */
  7828. function closelog () {}
  7829. /**
  7830. * Initializes all syslog related variables
  7831. * @link http://www.php.net/manual/en/function.define-syslog-variables.php
  7832. * @return void
  7833. */
  7834. function define_syslog_variables () {}
  7835. /**
  7836. * Combined linear congruential generator
  7837. * @link http://www.php.net/manual/en/function.lcg-value.php
  7838. * @return float A pseudo random float value in the range of (0, 1)
  7839. */
  7840. function lcg_value () {}
  7841. /**
  7842. * Calculate the metaphone key of a string
  7843. * @link http://www.php.net/manual/en/function.metaphone.php
  7844. * @param str string <p>
  7845. * The input string.
  7846. * </p>
  7847. * @param phonemes int[optional] <p>
  7848. * This parameter restricts the returned metaphone key to
  7849. * phonemes characters in length.
  7850. * The default value of 0 means no restriction.
  7851. * </p>
  7852. * @return string the metaphone key as a string, &return.falseforfailure;.
  7853. */
  7854. function metaphone ($str, $phonemes = null) {}
  7855. /**
  7856. * Turn on output buffering
  7857. * @link http://www.php.net/manual/en/function.ob-start.php
  7858. * @param output_callback callback[optional] <p>
  7859. * An optional output_callback function may be
  7860. * specified. This function takes a string as a parameter and should
  7861. * return a string. The function will be called when
  7862. * the output buffer is flushed (sent) or cleaned (with
  7863. * ob_flush, ob_clean or similar
  7864. * function) or when the output buffer
  7865. * is flushed to the browser at the end of the request. When
  7866. * output_callback is called, it will receive the
  7867. * contents of the output buffer as its parameter and is expected to
  7868. * return a new output buffer as a result, which will be sent to the
  7869. * browser. If the output_callback is not a
  7870. * callable function, this function will return false.
  7871. * </p>
  7872. * <p>
  7873. * If the callback function has two parameters, the second parameter is
  7874. * filled with a bit-field consisting of
  7875. * PHP_OUTPUT_HANDLER_START,
  7876. * PHP_OUTPUT_HANDLER_CONT and
  7877. * PHP_OUTPUT_HANDLER_END.
  7878. * </p>
  7879. * <p>
  7880. * If output_callback returns false original
  7881. * input is sent to the browser.
  7882. * </p>
  7883. * <p>
  7884. * The output_callback parameter may be bypassed
  7885. * by passing a &null; value.
  7886. * </p>
  7887. * <p>
  7888. * ob_end_clean, ob_end_flush,
  7889. * ob_clean, ob_flush and
  7890. * ob_start may not be called from a callback
  7891. * function. If you call them from callback function, the behavior is
  7892. * undefined. If you would like to delete the contents of a buffer,
  7893. * return "" (a null string) from callback function.
  7894. * You can't even call functions using the output buffering functions like
  7895. * print_r($expression, true) or
  7896. * highlight_file($filename, true) from a callback
  7897. * function.
  7898. * </p>
  7899. * <p>
  7900. * In PHP 4.0.4, ob_gzhandler was introduced to
  7901. * facilitate sending gz-encoded data to web browsers that support
  7902. * compressed web pages. ob_gzhandler determines
  7903. * what type of content encoding the browser will accept and will return
  7904. * its output accordingly.
  7905. * </p>
  7906. * @param chunk_size int[optional] <p>
  7907. * If the optional parameter chunk_size is passed, the
  7908. * buffer will be flushed after any output call which causes the buffer's
  7909. * length to equal or exceed chunk_size.
  7910. * Default value 0 means that the function is called only in the end,
  7911. * other special value 1 sets chunk_size to 4096.
  7912. * </p>
  7913. * @param erase bool[optional] <p>
  7914. * If the optional parameter erase is set to false,
  7915. * the buffer will not be deleted until the script finishes.
  7916. * This causes that flushing and cleaning functions would issue a notice
  7917. * and return false if called.
  7918. * </p>
  7919. * @return bool Returns true on success or false on failure.
  7920. */
  7921. function ob_start ($output_callback = null, $chunk_size = null, $erase = null) {}
  7922. /**
  7923. * Flush (send) the output buffer
  7924. * @link http://www.php.net/manual/en/function.ob-flush.php
  7925. * @return void
  7926. */
  7927. function ob_flush () {}
  7928. /**
  7929. * Clean (erase) the output buffer
  7930. * @link http://www.php.net/manual/en/function.ob-clean.php
  7931. * @return void
  7932. */
  7933. function ob_clean () {}
  7934. /**
  7935. * Flush (send) the output buffer and turn off output buffering
  7936. * @link http://www.php.net/manual/en/function.ob-end-flush.php
  7937. * @return bool Returns true on success or false on failure. Reasons for failure are first that you called the
  7938. * function without an active buffer or that for some reason a buffer could
  7939. * not be deleted (possible for special buffer).
  7940. */
  7941. function ob_end_flush () {}
  7942. /**
  7943. * Clean (erase) the output buffer and turn off output buffering
  7944. * @link http://www.php.net/manual/en/function.ob-end-clean.php
  7945. * @return bool Returns true on success or false on failure. Reasons for failure are first that you called the
  7946. * function without an active buffer or that for some reason a buffer could
  7947. * not be deleted (possible for special buffer).
  7948. */
  7949. function ob_end_clean () {}
  7950. /**
  7951. * Flush the output buffer, return it as a string and turn off output buffering
  7952. * @link http://www.php.net/manual/en/function.ob-get-flush.php
  7953. * @return string the output buffer or false if no buffering is active.
  7954. */
  7955. function ob_get_flush () {}
  7956. /**
  7957. * Get current buffer contents and delete current output buffer
  7958. * @link http://www.php.net/manual/en/function.ob-get-clean.php
  7959. * @return string the contents of the output buffer and end output buffering.
  7960. * If output buffering isn't active then false is returned.
  7961. */
  7962. function ob_get_clean () {}
  7963. /**
  7964. * Return the length of the output buffer
  7965. * @link http://www.php.net/manual/en/function.ob-get-length.php
  7966. * @return int the length of the output buffer contents or false if no
  7967. * buffering is active.
  7968. */
  7969. function ob_get_length () {}
  7970. /**
  7971. * Return the nesting level of the output buffering mechanism
  7972. * @link http://www.php.net/manual/en/function.ob-get-level.php
  7973. * @return int the level of nested output buffering handlers or zero if output
  7974. * buffering is not active.
  7975. */
  7976. function ob_get_level () {}
  7977. /**
  7978. * Get status of output buffers
  7979. * @link http://www.php.net/manual/en/function.ob-get-status.php
  7980. * @param full_status bool[optional] <p>
  7981. * true to return all active output buffer levels. If false or not
  7982. * set, only the top level output buffer is returned.
  7983. * </p>
  7984. * @return array If called without the full_status parameter
  7985. * or with full_status = false a simple array
  7986. * with the following elements is returned:
  7987. * 2
  7988. * [type] => 0
  7989. * [status] => 0
  7990. * [name] => URL-Rewriter
  7991. * [del] => 1
  7992. * )
  7993. * ]]>
  7994. * Simple ob_get_status results
  7995. * KeyValue
  7996. * levelOutput nesting level
  7997. * typePHP_OUTPUT_HANDLER_INTERNAL (0) or PHP_OUTPUT_HANDLER_USER (1)
  7998. * statusOne of PHP_OUTPUT_HANDLER_START (0), PHP_OUTPUT_HANDLER_CONT (1) or PHP_OUTPUT_HANDLER_END (2)
  7999. * nameName of active output handler or ' default output handler' if none is set
  8000. * delErase-flag as set by ob_start
  8001. * </p>
  8002. * <p>
  8003. * If called with full_status = true an array
  8004. * with one element for each active output buffer level is returned.
  8005. * The output level is used as key of the top level array and each array
  8006. * element itself is another array holding status information
  8007. * on one active output level.
  8008. * Array
  8009. * (
  8010. * [chunk_size] => 0
  8011. * [size] => 40960
  8012. * [block_size] => 10240
  8013. * [type] => 1
  8014. * [status] => 0
  8015. * [name] => default output handler
  8016. * [del] => 1
  8017. * )
  8018. * [1] => Array
  8019. * (
  8020. * [chunk_size] => 0
  8021. * [size] => 40960
  8022. * [block_size] => 10240
  8023. * [type] => 0
  8024. * [buffer_size] => 0
  8025. * [status] => 0
  8026. * [name] => URL-Rewriter
  8027. * [del] => 1
  8028. * )
  8029. * )
  8030. * ]]>
  8031. * </p>
  8032. * <p>
  8033. * The full output contains these additional elements:
  8034. * Full ob_get_status results
  8035. * KeyValue
  8036. * chunk_sizeChunk size as set by ob_start
  8037. * size...
  8038. * blocksize...
  8039. */
  8040. function ob_get_status ($full_status = null) {}
  8041. /**
  8042. * Return the contents of the output buffer
  8043. * @link http://www.php.net/manual/en/function.ob-get-contents.php
  8044. * @return string This will return the contents of the output buffer or false, if output
  8045. * buffering isn't active.
  8046. */
  8047. function ob_get_contents () {}
  8048. /**
  8049. * Turn implicit flush on/off
  8050. * @link http://www.php.net/manual/en/function.ob-implicit-flush.php
  8051. * @param flag int[optional] <p>
  8052. * true to turn implicit flushing on, false otherwise.
  8053. * </p>
  8054. * @return void
  8055. */
  8056. function ob_implicit_flush ($flag = null) {}
  8057. /**
  8058. * List all output handlers in use
  8059. * @link http://www.php.net/manual/en/function.ob-list-handlers.php
  8060. * @return array This will return an array with the output handlers in use (if any). If
  8061. * output_buffering is enabled or
  8062. * an anonymous function was used with ob_start,
  8063. * ob_list_handlers will return "default output
  8064. * handler".
  8065. */
  8066. function ob_list_handlers () {}
  8067. /**
  8068. * Sort an array by key
  8069. * @link http://www.php.net/manual/en/function.ksort.php
  8070. * @param array array <p>
  8071. * The input array.
  8072. * </p>
  8073. * @param sort_flags int[optional] <p>
  8074. * You may modify the behavior of the sort using the optional
  8075. * parameter sort_flags, for details
  8076. * see sort.
  8077. * </p>
  8078. * @return bool Returns true on success or false on failure.
  8079. */
  8080. function ksort (array &$array, $sort_flags = null) {}
  8081. /**
  8082. * Sort an array by key in reverse order
  8083. * @link http://www.php.net/manual/en/function.krsort.php
  8084. * @param array array <p>
  8085. * The input array.
  8086. * </p>
  8087. * @param sort_flags int[optional] <p>
  8088. * You may modify the behavior of the sort using the optional parameter
  8089. * sort_flags, for details see
  8090. * sort.
  8091. * </p>
  8092. * @return bool Returns true on success or false on failure.
  8093. */
  8094. function krsort (array &$array, $sort_flags = null) {}
  8095. /**
  8096. * Sort an array using a "natural order" algorithm
  8097. * @link http://www.php.net/manual/en/function.natsort.php
  8098. * @param array array <p>
  8099. * The input array.
  8100. * </p>
  8101. * @return bool Returns true on success or false on failure.
  8102. */
  8103. function natsort (array &$array) {}
  8104. /**
  8105. * Sort an array using a case insensitive "natural order" algorithm
  8106. * @link http://www.php.net/manual/en/function.natcasesort.php
  8107. * @param array array <p>
  8108. * The input array.
  8109. * </p>
  8110. * @return bool Returns true on success or false on failure.
  8111. */
  8112. function natcasesort (array &$array) {}
  8113. /**
  8114. * Sort an array and maintain index association
  8115. * @link http://www.php.net/manual/en/function.asort.php
  8116. * @param array array <p>
  8117. * The input array.
  8118. * </p>
  8119. * @param sort_flags int[optional] <p>
  8120. * You may modify the behavior of the sort using the optional
  8121. * parameter sort_flags, for details
  8122. * see sort.
  8123. * </p>
  8124. * @return bool Returns true on success or false on failure.
  8125. */
  8126. function asort (array &$array, $sort_flags = null) {}
  8127. /**
  8128. * Sort an array in reverse order and maintain index association
  8129. * @link http://www.php.net/manual/en/function.arsort.php
  8130. * @param array array <p>
  8131. * The input array.
  8132. * </p>
  8133. * @param sort_flags int[optional] <p>
  8134. * You may modify the behavior of the sort using the optional parameter
  8135. * sort_flags, for details see
  8136. * sort.
  8137. * </p>
  8138. * @return bool Returns true on success or false on failure.
  8139. */
  8140. function arsort (array &$array, $sort_flags = null) {}
  8141. /**
  8142. * Sort an array
  8143. * @link http://www.php.net/manual/en/function.sort.php
  8144. * @param array array <p>
  8145. * The input array.
  8146. * </p>
  8147. * @param sort_flags int[optional] <p>
  8148. * The optional second parameter sort_flags
  8149. * may be used to modify the sorting behavior using these values:
  8150. * </p>
  8151. * <p>
  8152. * Sorting type flags:
  8153. * SORT_REGULAR - compare items normally
  8154. * (don't change types)
  8155. * @return bool Returns true on success or false on failure.
  8156. */
  8157. function sort (array &$array, $sort_flags = null) {}
  8158. /**
  8159. * Sort an array in reverse order
  8160. * @link http://www.php.net/manual/en/function.rsort.php
  8161. * @param array array <p>
  8162. * The input array.
  8163. * </p>
  8164. * @param sort_flags int[optional] <p>
  8165. * You may modify the behavior of the sort using the optional
  8166. * parameter sort_flags, for details see
  8167. * sort.
  8168. * </p>
  8169. * @return bool Returns true on success or false on failure.
  8170. */
  8171. function rsort (array &$array, $sort_flags = null) {}
  8172. /**
  8173. * Sort an array by values using a user-defined comparison function
  8174. * @link http://www.php.net/manual/en/function.usort.php
  8175. * @param array array <p>
  8176. * The input array.
  8177. * </p>
  8178. * @param cmp_function callback <p>
  8179. * The comparison function must return an integer less than, equal to, or
  8180. * greater than zero if the first argument is considered to be
  8181. * respectively less than, equal to, or greater than the second.
  8182. * </p>
  8183. * @return bool Returns true on success or false on failure.
  8184. */
  8185. function usort (array &$array, $cmp_function) {}
  8186. /**
  8187. * Sort an array with a user-defined comparison function and maintain index association
  8188. * @link http://www.php.net/manual/en/function.uasort.php
  8189. * @param array array <p>
  8190. * The input array.
  8191. * </p>
  8192. * @param cmp_function callback <p>
  8193. * See usort and uksort for
  8194. * examples of user-defined comparison functions.
  8195. * </p>
  8196. * @return bool Returns true on success or false on failure.
  8197. */
  8198. function uasort (array &$array, $cmp_function) {}
  8199. /**
  8200. * Sort an array by keys using a user-defined comparison function
  8201. * @link http://www.php.net/manual/en/function.uksort.php
  8202. * @param array array <p>
  8203. * The input array.
  8204. * </p>
  8205. * @param cmp_function callback <p>
  8206. * The callback comparison function.
  8207. * </p>
  8208. * <p>
  8209. * Function cmp_function should accept two
  8210. * parameters which will be filled by pairs of array keys.
  8211. * The comparison function must return an integer less than, equal
  8212. * to, or greater than zero if the first argument is considered to
  8213. * be respectively less than, equal to, or greater than the
  8214. * second.
  8215. * </p>
  8216. * @return bool Returns true on success or false on failure.
  8217. */
  8218. function uksort (array &$array, $cmp_function) {}
  8219. /**
  8220. * Shuffle an array
  8221. * @link http://www.php.net/manual/en/function.shuffle.php
  8222. * @param array array <p>
  8223. * The array.
  8224. * </p>
  8225. * @return bool Returns true on success or false on failure.
  8226. */
  8227. function shuffle (array &$array) {}
  8228. /**
  8229. * Apply a user function to every member of an array
  8230. * @link http://www.php.net/manual/en/function.array-walk.php
  8231. * @param array array <p>
  8232. * The input array.
  8233. * </p>
  8234. * @param funcname callback <p>
  8235. * Typically, funcname takes on two parameters.
  8236. * The array parameter's value being the first, and
  8237. * the key/index second.
  8238. * </p>
  8239. * <p>
  8240. * If funcname needs to be working with the
  8241. * actual values of the array, specify the first parameter of
  8242. * funcname as a
  8243. * reference. Then,
  8244. * any changes made to those elements will be made in the
  8245. * original array itself.
  8246. * </p>
  8247. * <p>
  8248. * Users may not change the array itself from the
  8249. * callback function. e.g. Add/delete elements, unset elements, etc. If
  8250. * the array that array_walk is applied to is
  8251. * changed, the behavior of this function is undefined, and unpredictable.
  8252. * </p>
  8253. * @param userdata mixed[optional] <p>
  8254. * If the optional userdata parameter is supplied,
  8255. * it will be passed as the third parameter to the callback
  8256. * funcname.
  8257. * </p>
  8258. * @return bool Returns true on success or false on failure.
  8259. */
  8260. function array_walk (array &$array, $funcname, $userdata = null) {}
  8261. /**
  8262. * Apply a user function recursively to every member of an array
  8263. * @link http://www.php.net/manual/en/function.array-walk-recursive.php
  8264. * @param input array <p>
  8265. * The input array.
  8266. * </p>
  8267. * @param funcname callback <p>
  8268. * Typically, funcname takes on two parameters.
  8269. * The input parameter's value being the first, and
  8270. * the key/index second.
  8271. * </p>
  8272. * <p>
  8273. * If funcname needs to be working with the
  8274. * actual values of the array, specify the first parameter of
  8275. * funcname as a
  8276. * reference. Then,
  8277. * any changes made to those elements will be made in the
  8278. * original array itself.
  8279. * </p>
  8280. * @param userdata mixed[optional] <p>
  8281. * If the optional userdata parameter is supplied,
  8282. * it will be passed as the third parameter to the callback
  8283. * funcname.
  8284. * </p>
  8285. * @return bool Returns true on success or false on failure.
  8286. */
  8287. function array_walk_recursive (array &$input, $funcname, $userdata = null) {}
  8288. /**
  8289. * Count all elements in an array, or properties in an object
  8290. * @link http://www.php.net/manual/en/function.count.php
  8291. * @param var mixed <p>
  8292. * The array.
  8293. * </p>
  8294. * @param mode int[optional] <p>
  8295. * If the optional mode parameter is set to
  8296. * COUNT_RECURSIVE (or 1), count
  8297. * will recursively count the array. This is particularly useful for
  8298. * counting all the elements of a multidimensional array.
  8299. * count does not detect infinite recursion.
  8300. * </p>
  8301. * @return int the number of elements in var, which is
  8302. * typically an array, since anything else will have one
  8303. * element.
  8304. * </p>
  8305. * <p>
  8306. * If var is not an array or an object with
  8307. * implemented Countable interface,
  8308. * 1 will be returned.
  8309. * There is one exception, if var is &null;,
  8310. * 0 will be returned.
  8311. * </p>
  8312. * <p>
  8313. * count may return 0 for a variable that isn't set,
  8314. * but it may also return 0 for a variable that has been initialized with an
  8315. * empty array. Use isset to test if a variable is set.
  8316. */
  8317. function count ($var, $mode = null) {}
  8318. /**
  8319. * Set the internal pointer of an array to its last element
  8320. * @link http://www.php.net/manual/en/function.end.php
  8321. * @param array array <p>
  8322. * The array. This array is passed by reference because it is modified by
  8323. * the function. This means you must pass it a real variable and not
  8324. * a function returning an array because only actual variables may be
  8325. * passed by reference.
  8326. * </p>
  8327. * @return mixed the value of the last element or false for empty array.
  8328. */
  8329. function end (array &$array) {}
  8330. /**
  8331. * Rewind the internal array pointer
  8332. * @link http://www.php.net/manual/en/function.prev.php
  8333. * @param array array <p>
  8334. * The input array.
  8335. * </p>
  8336. * @return mixed the array value in the previous place that's pointed to by
  8337. * the internal array pointer, or false if there are no more
  8338. * elements.
  8339. */
  8340. function prev (array &$array) {}
  8341. /**
  8342. * Advance the internal array pointer of an array
  8343. * @link http://www.php.net/manual/en/function.next.php
  8344. * @param array array <p>
  8345. * The array being affected.
  8346. * </p>
  8347. * @return mixed the array value in the next place that's pointed to by the
  8348. * internal array pointer, or false if there are no more elements.
  8349. */
  8350. function next (array &$array) {}
  8351. /**
  8352. * Set the internal pointer of an array to its first element
  8353. * @link http://www.php.net/manual/en/function.reset.php
  8354. * @param array array <p>
  8355. * The input array.
  8356. * </p>
  8357. * @return mixed the value of the first array element, or false if the array is
  8358. * empty.
  8359. */
  8360. function reset (array &$array) {}
  8361. /**
  8362. * Return the current element in an array
  8363. * @link http://www.php.net/manual/en/function.current.php
  8364. * @param array array <p>
  8365. * The array.
  8366. * </p>
  8367. * @return mixed The current function simply returns the
  8368. * value of the array element that's currently being pointed to by the
  8369. * internal pointer. It does not move the pointer in any way. If the
  8370. * internal pointer points beyond the end of the elements list or the array is
  8371. * empty, current returns false.
  8372. */
  8373. function current (array &$array) {}
  8374. /**
  8375. * Fetch a key from an array
  8376. * @link http://www.php.net/manual/en/function.key.php
  8377. * @param array array <p>
  8378. * The array.
  8379. * </p>
  8380. * @return mixed The key function simply returns the
  8381. * key of the array element that's currently being pointed to by the
  8382. * internal pointer. It does not move the pointer in any way. If the
  8383. * internal pointer points beyond the end of the elements list or the array is
  8384. * empty, key returns &null;.
  8385. */
  8386. function key (array &$array) {}
  8387. /**
  8388. * Find lowest value
  8389. * @link http://www.php.net/manual/en/function.min.php
  8390. * @param values array <p>
  8391. * An array containing the values.
  8392. * </p>
  8393. * @return mixed min returns the numerically lowest of the
  8394. * parameter values.
  8395. */
  8396. function min (array $values) {}
  8397. /**
  8398. * Find highest value
  8399. * @link http://www.php.net/manual/en/function.max.php
  8400. * @param values array <p>
  8401. * An array containing the values.
  8402. * </p>
  8403. * @return mixed max returns the numerically highest of the
  8404. * parameter values. If multiple values can be considered of the same size,
  8405. * the one that is listed first will be returned.
  8406. * </p>
  8407. * <p>
  8408. * When max is given multiple arrays, the
  8409. * longest array is returned. If all the arrays have the same length,
  8410. * max will use lexicographic ordering to find the return
  8411. * value.
  8412. * </p>
  8413. * <p>
  8414. * When given a string it will be cast as an integer
  8415. * when comparing.
  8416. */
  8417. function max (array $values) {}
  8418. /**
  8419. * Checks if a value exists in an array
  8420. * @link http://www.php.net/manual/en/function.in-array.php
  8421. * @param needle mixed <p>
  8422. * The searched value.
  8423. * </p>
  8424. * <p>
  8425. * If needle is a string, the comparison is done
  8426. * in a case-sensitive manner.
  8427. * </p>
  8428. * @param haystack array <p>
  8429. * The array.
  8430. * </p>
  8431. * @param strict bool[optional] <p>
  8432. * If the third parameter strict is set to true
  8433. * then the in_array function will also check the
  8434. * types of the
  8435. * needle in the haystack.
  8436. * </p>
  8437. * @return bool true if needle is found in the array,
  8438. * false otherwise.
  8439. */
  8440. function in_array ($needle, array $haystack, $strict = null) {}
  8441. /**
  8442. * Searches the array for a given value and returns the corresponding key if successful
  8443. * @link http://www.php.net/manual/en/function.array-search.php
  8444. * @param needle mixed <p>
  8445. * The searched value.
  8446. * </p>
  8447. * <p>
  8448. * If needle is a string, the comparison is done
  8449. * in a case-sensitive manner.
  8450. * </p>
  8451. * @param haystack array <p>
  8452. * The array.
  8453. * </p>
  8454. * @param strict bool[optional] <p>
  8455. * If the third parameter strict is set to true
  8456. * then the array_search function will search for
  8457. * identical elements in the
  8458. * haystack. This means it will also check the
  8459. * types of the
  8460. * needle in the haystack,
  8461. * and objects must be the same instance.
  8462. * </p>
  8463. * @return mixed the key for needle if it is found in the
  8464. * array, false otherwise.
  8465. * </p>
  8466. * <p>
  8467. * If needle is found in haystack
  8468. * more than once, the first matching key is returned. To return the keys for
  8469. * all matching values, use array_keys with the optional
  8470. * search_value parameter instead.
  8471. */
  8472. function array_search ($needle, array $haystack, $strict = null) {}
  8473. /**
  8474. * Import variables into the current symbol table from an array
  8475. * @link http://www.php.net/manual/en/function.extract.php
  8476. * @param var_array array <p>
  8477. * Note that prefix is only required if
  8478. * extract_type is EXTR_PREFIX_SAME,
  8479. * EXTR_PREFIX_ALL, EXTR_PREFIX_INVALID
  8480. * or EXTR_PREFIX_IF_EXISTS. If
  8481. * the prefixed result is not a valid variable name, it is not
  8482. * imported into the symbol table. Prefixes are automatically separated from
  8483. * the array key by an underscore character.
  8484. * </p>
  8485. * @param extract_type int[optional] <p>
  8486. * The way invalid/numeric keys and collisions are treated is determined
  8487. * by the extract_type. It can be one of the
  8488. * following values:
  8489. * EXTR_OVERWRITE
  8490. * If there is a collision, overwrite the existing variable.
  8491. * @param prefix string[optional] Only overwrite the variable if it already exists in the
  8492. * current symbol table, otherwise do nothing. This is useful
  8493. * for defining a list of valid variables and then extracting
  8494. * only those variables you have defined out of
  8495. * $_REQUEST, for example.
  8496. * @return int the number of variables successfully imported into the symbol
  8497. * table.
  8498. */
  8499. function extract (array $var_array, $extract_type = null, $prefix = null) {}
  8500. /**
  8501. * Create array containing variables and their values
  8502. * @link http://www.php.net/manual/en/function.compact.php
  8503. * @param varname mixed <p>
  8504. * compact takes a variable number of parameters.
  8505. * Each parameter can be either a string containing the name of the
  8506. * variable, or an array of variable names. The array can contain other
  8507. * arrays of variable names inside it; compact
  8508. * handles it recursively.
  8509. * </p>
  8510. * @param _ mixed[optional]
  8511. * @return array the output array with all the variables added to it.
  8512. */
  8513. function compact ($varname, $_ = null) {}
  8514. /**
  8515. * Fill an array with values
  8516. * @link http://www.php.net/manual/en/function.array-fill.php
  8517. * @param start_index int <p>
  8518. * The first index of the returned array.
  8519. * Supports non-negative indexes only.
  8520. * </p>
  8521. * @param num int <p>
  8522. * Number of elements to insert
  8523. * </p>
  8524. * @param value mixed <p>
  8525. * Value to use for filling
  8526. * </p>
  8527. * @return array the filled array
  8528. */
  8529. function array_fill ($start_index, $num, $value) {}
  8530. /**
  8531. * Fill an array with values, specifying keys
  8532. * @link http://www.php.net/manual/en/function.array-fill-keys.php
  8533. * @param keys array <p>
  8534. * Array of values that will be used as keys. Illegal values
  8535. * for key will be converted to string.
  8536. * </p>
  8537. * @param value mixed <p>
  8538. * Value to use for filling
  8539. * </p>
  8540. * @return array the filled array
  8541. */
  8542. function array_fill_keys (array $keys, $value) {}
  8543. /**
  8544. * Create an array containing a range of elements
  8545. * @link http://www.php.net/manual/en/function.range.php
  8546. * @param low mixed <p>
  8547. * Low value.
  8548. * </p>
  8549. * @param high mixed <p>
  8550. * High value.
  8551. * </p>
  8552. * @param step number[optional] <p>
  8553. * If a step value is given, it will be used as the
  8554. * increment between elements in the sequence. step
  8555. * should be given as a positive number. If not specified,
  8556. * step will default to 1.
  8557. * </p>
  8558. * @return array an array of elements from low to
  8559. * high, inclusive. If low > high, the sequence will
  8560. * be from high to low.
  8561. */
  8562. function range ($low, $high, $step = null) {}
  8563. /**
  8564. * Sort multiple or multi-dimensional arrays
  8565. * @link http://www.php.net/manual/en/function.array-multisort.php
  8566. * @param arr array <p>
  8567. * An array being sorted.
  8568. * </p>
  8569. * @param arg mixed[optional] <p>
  8570. * Optionally another array, or sort options for the
  8571. * previous array argument:
  8572. * SORT_ASC,
  8573. * SORT_DESC,
  8574. * SORT_REGULAR,
  8575. * SORT_NUMERIC,
  8576. * SORT_STRING.
  8577. * </p>
  8578. * @param arg mixed[optional]
  8579. * @param _ mixed[optional]
  8580. * @return bool Returns true on success or false on failure.
  8581. */
  8582. function array_multisort (array &$arr, $arg = null, $arg = null, $_ = null) {}
  8583. /**
  8584. * Push one or more elements onto the end of array
  8585. * @link http://www.php.net/manual/en/function.array-push.php
  8586. * @param array array <p>
  8587. * The input array.
  8588. * </p>
  8589. * @param var mixed <p>
  8590. * The pushed value.
  8591. * </p>
  8592. * @param _ mixed[optional]
  8593. * @return int the new number of elements in the array.
  8594. */
  8595. function array_push (array &$array, $var, $_ = null) {}
  8596. /**
  8597. * Pop the element off the end of array
  8598. * @link http://www.php.net/manual/en/function.array-pop.php
  8599. * @param array array <p>
  8600. * The array to get the value from.
  8601. * </p>
  8602. * @return mixed the last value of array.
  8603. * If array is empty (or is not an array),
  8604. * &null; will be returned.
  8605. */
  8606. function array_pop (array &$array) {}
  8607. /**
  8608. * Shift an element off the beginning of array
  8609. * @link http://www.php.net/manual/en/function.array-shift.php
  8610. * @param array array <p>
  8611. * The input array.
  8612. * </p>
  8613. * @return mixed the shifted value, or &null; if array is
  8614. * empty or is not an array.
  8615. */
  8616. function array_shift (array &$array) {}
  8617. /**
  8618. * Prepend one or more elements to the beginning of an array
  8619. * @link http://www.php.net/manual/en/function.array-unshift.php
  8620. * @param array array <p>
  8621. * The input array.
  8622. * </p>
  8623. * @param var mixed <p>
  8624. * The prepended variable.
  8625. * </p>
  8626. * @param _ mixed[optional]
  8627. * @return int the new number of elements in the array.
  8628. */
  8629. function array_unshift (array &$array, $var, $_ = null) {}
  8630. /**
  8631. * Remove a portion of the array and replace it with something else
  8632. * @link http://www.php.net/manual/en/function.array-splice.php
  8633. * @param input array <p>
  8634. * The input array.
  8635. * </p>
  8636. * @param offset int <p>
  8637. * If offset is positive then the start of removed
  8638. * portion is at that offset from the beginning of the
  8639. * input array. If offset
  8640. * is negative then it starts that far from the end of the
  8641. * input array.
  8642. * </p>
  8643. * @param length int[optional] <p>
  8644. * If length is omitted, removes everything
  8645. * from offset to the end of the array. If
  8646. * length is specified and is positive, then
  8647. * that many elements will be removed. If
  8648. * length is specified and is negative then
  8649. * the end of the removed portion will be that many elements from
  8650. * the end of the array. Tip: to remove everything from
  8651. * offset to the end of the array when
  8652. * replacement is also specified, use
  8653. * count($input) for
  8654. * length.
  8655. * </p>
  8656. * @param replacement mixed[optional] <p>
  8657. * If replacement array is specified, then the
  8658. * removed elements are replaced with elements from this array.
  8659. * </p>
  8660. * <p>
  8661. * If offset and length
  8662. * are such that nothing is removed, then the elements from the
  8663. * replacement array are inserted in the place
  8664. * specified by the offset. Note that keys in
  8665. * replacement array are not preserved.
  8666. * </p>
  8667. * <p>
  8668. * If replacement is just one element it is
  8669. * not necessary to put array()
  8670. * around it, unless the element is an array itself, an object or &null;.
  8671. * </p>
  8672. * @return array the array consisting of the extracted elements.
  8673. */
  8674. function array_splice (array &$input, $offset, $length = null, $replacement = null) {}
  8675. /**
  8676. * Extract a slice of the array
  8677. * @link http://www.php.net/manual/en/function.array-slice.php
  8678. * @param array array <p>
  8679. * The input array.
  8680. * </p>
  8681. * @param offset int <p>
  8682. * If offset is non-negative, the sequence will
  8683. * start at that offset in the array. If
  8684. * offset is negative, the sequence will
  8685. * start that far from the end of the array.
  8686. * </p>
  8687. * @param length int[optional] <p>
  8688. * If length is given and is positive, then
  8689. * the sequence will have that many elements in it. If
  8690. * length is given and is negative then the
  8691. * sequence will stop that many elements from the end of the
  8692. * array. If it is omitted, then the sequence will have everything
  8693. * from offset up until the end of the
  8694. * array.
  8695. * </p>
  8696. * @param preserve_keys bool[optional] <p>
  8697. * Note that array_slice will reorder and reset the
  8698. * array indices by default. You can change this behaviour by setting
  8699. * preserve_keys to true.
  8700. * </p>
  8701. * @return array the slice.
  8702. */
  8703. function array_slice (array $array, $offset, $length = null, $preserve_keys = null) {}
  8704. /**
  8705. * Merge one or more arrays
  8706. * @link http://www.php.net/manual/en/function.array-merge.php
  8707. * @param array1 array <p>
  8708. * Initial array to merge.
  8709. * </p>
  8710. * @param array2 array[optional]
  8711. * @param _ array[optional]
  8712. * @return array the resulting array.
  8713. */
  8714. function array_merge (array $array1, array $array2 = null, array $_ = null) {}
  8715. /**
  8716. * Merge two or more arrays recursively
  8717. * @link http://www.php.net/manual/en/function.array-merge-recursive.php
  8718. * @param array1 array <p>
  8719. * Initial array to merge.
  8720. * </p>
  8721. * @param _ array[optional]
  8722. * @return array An array of values resulted from merging the arguments together.
  8723. */
  8724. function array_merge_recursive (array $array1, array $_ = null) {}
  8725. /**
  8726. * Return all the keys of an array
  8727. * @link http://www.php.net/manual/en/function.array-keys.php
  8728. * @param input array <p>
  8729. * An array containing keys to return.
  8730. * </p>
  8731. * @param search_value mixed[optional] <p>
  8732. * If specified, then only keys containing these values are returned.
  8733. * </p>
  8734. * @param strict bool[optional] <p>
  8735. * Determines if strict comparison (===) should be used during the search.
  8736. * </p>
  8737. * @return array an array of all the keys in input.
  8738. */
  8739. function array_keys (array $input, $search_value = null, $strict = null) {}
  8740. /**
  8741. * Return all the values of an array
  8742. * @link http://www.php.net/manual/en/function.array-values.php
  8743. * @param input array <p>
  8744. * The array.
  8745. * </p>
  8746. * @return array an indexed array of values.
  8747. */
  8748. function array_values (array $input) {}
  8749. /**
  8750. * Counts all the values of an array
  8751. * @link http://www.php.net/manual/en/function.array-count-values.php
  8752. * @param input array <p>
  8753. * The array of values to count
  8754. * </p>
  8755. * @return array an associative array of values from input as
  8756. * keys and their count as value.
  8757. */
  8758. function array_count_values (array $input) {}
  8759. /**
  8760. * Return an array with elements in reverse order
  8761. * @link http://www.php.net/manual/en/function.array-reverse.php
  8762. * @param array array <p>
  8763. * The input array.
  8764. * </p>
  8765. * @param preserve_keys bool[optional] <p>
  8766. * If set to true keys are preserved.
  8767. * </p>
  8768. * @return array the reversed array.
  8769. */
  8770. function array_reverse (array $array, $preserve_keys = null) {}
  8771. /**
  8772. * Iteratively reduce the array to a single value using a callback function
  8773. * @link http://www.php.net/manual/en/function.array-reduce.php
  8774. * @param input array <p>
  8775. * The input array.
  8776. * </p>
  8777. * @param function callback <p>
  8778. * The callback function.
  8779. * </p>
  8780. * @param initial mixed[optional] <p>
  8781. * If the optional initial is available, it will
  8782. * be used at the beginning of the process, or as a final result in case
  8783. * the array is empty.
  8784. * </p>
  8785. * @return mixed the resulting value.
  8786. * </p>
  8787. * <p>
  8788. * If the array is empty and initial is not passed,
  8789. * array_reduce returns &null;.
  8790. */
  8791. function array_reduce (array $input, $function, $initial = null) {}
  8792. /**
  8793. * Pad array to the specified length with a value
  8794. * @link http://www.php.net/manual/en/function.array-pad.php
  8795. * @param input array <p>
  8796. * Initial array of values to pad.
  8797. * </p>
  8798. * @param pad_size int <p>
  8799. * New size of the array.
  8800. * </p>
  8801. * @param pad_value mixed <p>
  8802. * Value to pad if input is less than
  8803. * pad_size.
  8804. * </p>
  8805. * @return array a copy of the input padded to size specified
  8806. * by pad_size with value
  8807. * pad_value. If pad_size is
  8808. * positive then the array is padded on the right, if it's negative then
  8809. * on the left. If the absolute value of pad_size is less than or equal to
  8810. * the length of the input then no padding takes place.
  8811. */
  8812. function array_pad (array $input, $pad_size, $pad_value) {}
  8813. /**
  8814. * Exchanges all keys with their associated values in an array
  8815. * @link http://www.php.net/manual/en/function.array-flip.php
  8816. * @param trans array <p>
  8817. * An array of key/value pairs to be flipped.
  8818. * </p>
  8819. * @return array the flipped array on success and &null; on failure.
  8820. */
  8821. function array_flip (array $trans) {}
  8822. /**
  8823. * Changes all keys in an array
  8824. * @link http://www.php.net/manual/en/function.array-change-key-case.php
  8825. * @param input array <p>
  8826. * The array to work on
  8827. * </p>
  8828. * @param case int[optional] <p>
  8829. * Either CASE_UPPER or
  8830. * CASE_LOWER (default)
  8831. * </p>
  8832. * @return array an array with its keys lower or uppercased, or false if
  8833. * input is not an array.
  8834. */
  8835. function array_change_key_case (array $input, $case = null) {}
  8836. /**
  8837. * Pick one or more random entries out of an array
  8838. * @link http://www.php.net/manual/en/function.array-rand.php
  8839. * @param input array <p>
  8840. * The input array.
  8841. * </p>
  8842. * @param num_req int[optional] <p>
  8843. * Specifies how many entries you want to pick. Trying to pick more
  8844. * elements than there are in the array will result in an
  8845. * E_WARNING level error.
  8846. * </p>
  8847. * @return mixed If you are picking only one entry, array_rand
  8848. * returns the key for a random entry. Otherwise, it returns an array
  8849. * of keys for the random entries. This is done so that you can pick
  8850. * random keys as well as values out of the array.
  8851. */
  8852. function array_rand (array $input, $num_req = null) {}
  8853. /**
  8854. * Removes duplicate values from an array
  8855. * @link http://www.php.net/manual/en/function.array-unique.php
  8856. * @param array array <p>
  8857. * The input array.
  8858. * </p>
  8859. * @param sort_flags int[optional] <p>
  8860. * The optional second parameter sort_flags
  8861. * may be used to modify the sorting behavior using these values:
  8862. * </p>
  8863. * <p>
  8864. * Sorting type flags:
  8865. * SORT_REGULAR - compare items normally
  8866. * (don't change types)
  8867. * @return array the filtered array.
  8868. */
  8869. function array_unique (array $array, $sort_flags = null) {}
  8870. /**
  8871. * Computes the intersection of arrays
  8872. * @link http://www.php.net/manual/en/function.array-intersect.php
  8873. * @param array1 array <p>
  8874. * The array with master values to check.
  8875. * </p>
  8876. * @param array2 array <p>
  8877. * An array to compare values against.
  8878. * </p>
  8879. * @param _ array[optional]
  8880. * @return array an array containing all of the values in
  8881. * array1 whose values exist in all of the parameters.
  8882. */
  8883. function array_intersect (array $array1, array $array2, array $_ = null) {}
  8884. /**
  8885. * Computes the intersection of arrays using keys for comparison
  8886. * @link http://www.php.net/manual/en/function.array-intersect-key.php
  8887. * @param array1 array <p>
  8888. * The array with master keys to check.
  8889. * </p>
  8890. * @param array2 array <p>
  8891. * An array to compare keys against.
  8892. * </p>
  8893. * @param _ array[optional]
  8894. * @return array an associative array containing all the entries of
  8895. * array1 which have keys that are present in all
  8896. * arguments.
  8897. */
  8898. function array_intersect_key (array $array1, array $array2, array $_ = null) {}
  8899. /**
  8900. * Computes the intersection of arrays using a callback function on the keys for comparison
  8901. * @link http://www.php.net/manual/en/function.array-intersect-ukey.php
  8902. * @param array1 array <p>
  8903. * Initial array for comparison of the arrays.
  8904. * </p>
  8905. * @param array2 array <p>
  8906. * First array to compare keys against.
  8907. * </p>
  8908. * @param _ array[optional]
  8909. * @param key_compare_func callback <p>
  8910. * User supplied callback function to do the comparison.
  8911. * </p>
  8912. * @return array the values of array1 whose keys exist
  8913. * in all the arguments.
  8914. */
  8915. function array_intersect_ukey (array $array1, array $array2, array $_ = null, $key_compare_func) {}
  8916. /**
  8917. * Computes the intersection of arrays, compares data by a callback function
  8918. * @link http://www.php.net/manual/en/function.array-uintersect.php
  8919. * @param array1 array <p>
  8920. * The first array.
  8921. * </p>
  8922. * @param array2 array <p>
  8923. * The second array.
  8924. * </p>
  8925. * @param _ array[optional]
  8926. * @param data_compare_func callback <p>
  8927. * The callback comparison function.
  8928. * </p>
  8929. * <p>
  8930. * The user supplied callback function is used for comparison.
  8931. * It must return an integer less than, equal to, or greater than zero if
  8932. * the first argument is considered to be respectively less than, equal
  8933. * to, or greater than the second.
  8934. * </p>
  8935. * @return array an array containing all the values of array1
  8936. * that are present in all the arguments.
  8937. */
  8938. function array_uintersect (array $array1, array $array2, array $_ = null, $data_compare_func) {}
  8939. /**
  8940. * Computes the intersection of arrays with additional index check
  8941. * @link http://www.php.net/manual/en/function.array-intersect-assoc.php
  8942. * @param array1 array <p>
  8943. * The array with master values to check.
  8944. * </p>
  8945. * @param array2 array <p>
  8946. * An array to compare values against.
  8947. * </p>
  8948. * @param _ array[optional]
  8949. * @return array an associative array containing all the values in
  8950. * array1 that are present in all of the arguments.
  8951. */
  8952. function array_intersect_assoc (array $array1, array $array2, array $_ = null) {}
  8953. /**
  8954. * Computes the intersection of arrays with additional index check, compares data by a callback function
  8955. * @link http://www.php.net/manual/en/function.array-uintersect-assoc.php
  8956. * @param array1 array <p>
  8957. * The first array.
  8958. * </p>
  8959. * @param array2 array <p>
  8960. * The second array.
  8961. * </p>
  8962. * @param _ array[optional]
  8963. * @param data_compare_func callback <p>
  8964. * For comparison is used the user supplied callback function.
  8965. * It must return an integer less than, equal
  8966. * to, or greater than zero if the first argument is considered to
  8967. * be respectively less than, equal to, or greater than the
  8968. * second.
  8969. * </p>
  8970. * @return array an array containing all the values of
  8971. * array1 that are present in all the arguments.
  8972. */
  8973. function array_uintersect_assoc (array $array1, array $array2, array $_ = null, $data_compare_func) {}
  8974. /**
  8975. * Computes the intersection of arrays with additional index check, compares indexes by a callback function
  8976. * @link http://www.php.net/manual/en/function.array-intersect-uassoc.php
  8977. * @param array1 array <p>
  8978. * Initial array for comparison of the arrays.
  8979. * </p>
  8980. * @param array2 array <p>
  8981. * First array to compare keys against.
  8982. * </p>
  8983. * @param _ array[optional]
  8984. * @param key_compare_func callback <p>
  8985. * User supplied callback function to do the comparison.
  8986. * </p>
  8987. * @return array the values of array1 whose values exist
  8988. * in all of the arguments.
  8989. */
  8990. function array_intersect_uassoc (array $array1, array $array2, array $_ = null, $key_compare_func) {}
  8991. /**
  8992. * Computes the intersection of arrays with additional index check, compares data and indexes by a callback functions
  8993. * @link http://www.php.net/manual/en/function.array-uintersect-uassoc.php
  8994. * @param array1 array <p>
  8995. * The first array.
  8996. * </p>
  8997. * @param array2 array <p>
  8998. * The second array.
  8999. * </p>
  9000. * @param _ array[optional]
  9001. * @param data_compare_func callback <p>
  9002. * For comparison is used the user supplied callback function.
  9003. * It must return an integer less than, equal
  9004. * to, or greater than zero if the first argument is considered to
  9005. * be respectively less than, equal to, or greater than the
  9006. * second.
  9007. * </p>
  9008. * @param key_compare_func callback <p>
  9009. * Key comparison callback function.
  9010. * </p>
  9011. * @return array an array containing all the values of
  9012. * array1 that are present in all the arguments.
  9013. */
  9014. function array_uintersect_uassoc (array $array1, array $array2, array $_ = null, $data_compare_func, $key_compare_func) {}
  9015. /**
  9016. * Computes the difference of arrays
  9017. * @link http://www.php.net/manual/en/function.array-diff.php
  9018. * @param array1 array <p>
  9019. * The array to compare from
  9020. * </p>
  9021. * @param array2 array <p>
  9022. * An array to compare against
  9023. * </p>
  9024. * @param _ array[optional]
  9025. * @return array an array containing all the entries from
  9026. * array1 that are not present in any of the other arrays.
  9027. */
  9028. function array_diff (array $array1, array $array2, array $_ = null) {}
  9029. /**
  9030. * Computes the difference of arrays using keys for comparison
  9031. * @link http://www.php.net/manual/en/function.array-diff-key.php
  9032. * @param array1 array <p>
  9033. * The array to compare from
  9034. * </p>
  9035. * @param array2 array <p>
  9036. * An array to compare against
  9037. * </p>
  9038. * @param _ array[optional]
  9039. * @return array an array containing all the entries from
  9040. * array1 whose keys are not present in any of the
  9041. * other arrays.
  9042. */
  9043. function array_diff_key (array $array1, array $array2, array $_ = null) {}
  9044. /**
  9045. * Computes the difference of arrays using a callback function on the keys for comparison
  9046. * @link http://www.php.net/manual/en/function.array-diff-ukey.php
  9047. * @param array1 array <p>
  9048. * The array to compare from
  9049. * </p>
  9050. * @param array2 array <p>
  9051. * An array to compare against
  9052. * </p>
  9053. * @param _ array[optional]
  9054. * @param key_compare_func callback <p>
  9055. * callback function to use.
  9056. * The callback function must return an integer less than, equal
  9057. * to, or greater than zero if the first argument is considered to
  9058. * be respectively less than, equal to, or greater than the second.
  9059. * </p>
  9060. * @return array an array containing all the entries from
  9061. * array1 that are not present in any of the other arrays.
  9062. */
  9063. function array_diff_ukey (array $array1, array $array2, array $_ = null, $key_compare_func) {}
  9064. /**
  9065. * Computes the difference of arrays by using a callback function for data comparison
  9066. * @link http://www.php.net/manual/en/function.array-udiff.php
  9067. * @param array1 array <p>
  9068. * The first array.
  9069. * </p>
  9070. * @param array2 array <p>
  9071. * The second array.
  9072. * </p>
  9073. * @param _ array[optional]
  9074. * @param data_compare_func callback <p>
  9075. * The callback comparison function.
  9076. * </p>
  9077. * <p>
  9078. * The user supplied callback function is used for comparison.
  9079. * It must return an integer less than, equal to, or greater than zero if
  9080. * the first argument is considered to be respectively less than, equal
  9081. * to, or greater than the second.
  9082. * </p>
  9083. * @return array an array containing all the values of array1
  9084. * that are not present in any of the other arguments.
  9085. */
  9086. function array_udiff (array $array1, array $array2, array $_ = null, $data_compare_func) {}
  9087. /**
  9088. * Computes the difference of arrays with additional index check
  9089. * @link http://www.php.net/manual/en/function.array-diff-assoc.php
  9090. * @param array1 array <p>
  9091. * The array to compare from
  9092. * </p>
  9093. * @param array2 array <p>
  9094. * An array to compare against
  9095. * </p>
  9096. * @param _ array[optional]
  9097. * @return array an array containing all the values from
  9098. * array1 that are not present in any of the other arrays.
  9099. */
  9100. function array_diff_assoc (array $array1, array $array2, array $_ = null) {}
  9101. /**
  9102. * Computes the difference of arrays with additional index check, compares data by a callback function
  9103. * @link http://www.php.net/manual/en/function.array-udiff-assoc.php
  9104. * @param array1 array <p>
  9105. * The first array.
  9106. * </p>
  9107. * @param array2 array <p>
  9108. * The second array.
  9109. * </p>
  9110. * @param _ array[optional]
  9111. * @param data_compare_func callback <p>
  9112. * The callback comparison function.
  9113. * </p>
  9114. * <p>
  9115. * The user supplied callback function is used for comparison.
  9116. * It must return an integer less than, equal to, or greater than zero if
  9117. * the first argument is considered to be respectively less than, equal
  9118. * to, or greater than the second.
  9119. * </p>
  9120. * @return array array_udiff_assoc returns an array
  9121. * containing all the values from array1
  9122. * that are not present in any of the other arguments.
  9123. * Note that the keys are used in the comparison unlike
  9124. * array_diff and array_udiff.
  9125. * The comparison of arrays' data is performed by using an user-supplied
  9126. * callback. In this aspect the behaviour is opposite to the behaviour of
  9127. * array_diff_assoc which uses internal function for
  9128. * comparison.
  9129. */
  9130. function array_udiff_assoc (array $array1, array $array2, array $_ = null, $data_compare_func) {}
  9131. /**
  9132. * Computes the difference of arrays with additional index check which is performed by a user supplied callback function
  9133. * @link http://www.php.net/manual/en/function.array-diff-uassoc.php
  9134. * @param array1 array <p>
  9135. * The array to compare from
  9136. * </p>
  9137. * @param array2 array <p>
  9138. * An array to compare against
  9139. * </p>
  9140. * @param _ array[optional]
  9141. * @param key_compare_func callback <p>
  9142. * callback function to use.
  9143. * The callback function must return an integer less than, equal
  9144. * to, or greater than zero if the first argument is considered to
  9145. * be respectively less than, equal to, or greater than the second.
  9146. * </p>
  9147. * @return array an array containing all the entries from
  9148. * array1 that are not present in any of the other arrays.
  9149. */
  9150. function array_diff_uassoc (array $array1, array $array2, array $_ = null, $key_compare_func) {}
  9151. /**
  9152. * Computes the difference of arrays with additional index check, compares data and indexes by a callback function
  9153. * @link http://www.php.net/manual/en/function.array-udiff-uassoc.php
  9154. * @param array1 array <p>
  9155. * The first array.
  9156. * </p>
  9157. * @param array2 array <p>
  9158. * The second array.
  9159. * </p>
  9160. * @param _ array[optional]
  9161. * @param data_compare_func callback <p>
  9162. * The callback comparison function.
  9163. * </p>
  9164. * <p>
  9165. * The user supplied callback function is used for comparison.
  9166. * It must return an integer less than, equal to, or greater than zero if
  9167. * the first argument is considered to be respectively less than, equal
  9168. * to, or greater than the second.
  9169. * </p>
  9170. * <p>
  9171. * The comparison of arrays' data is performed by using an user-supplied
  9172. * callback : data_compare_func. In this aspect
  9173. * the behaviour is opposite to the behaviour of
  9174. * array_diff_assoc which uses internal function for
  9175. * comparison.
  9176. * </p>
  9177. * @param key_compare_func callback <p>
  9178. * The comparison of keys (indices) is done also by the callback function
  9179. * key_compare_func. This behaviour is unlike what
  9180. * array_udiff_assoc does, since the latter compares
  9181. * the indices by using an internal function.
  9182. * </p>
  9183. * @return array an array containing all the values from
  9184. * array1 that are not present in any of the other
  9185. * arguments.
  9186. */
  9187. function array_udiff_uassoc (array $array1, array $array2, array $_ = null, $data_compare_func, $key_compare_func) {}
  9188. /**
  9189. * Calculate the sum of values in an array
  9190. * @link http://www.php.net/manual/en/function.array-sum.php
  9191. * @param array array <p>
  9192. * The input array.
  9193. * </p>
  9194. * @return number the sum of values as an integer or float.
  9195. */
  9196. function array_sum (array $array) {}
  9197. /**
  9198. * Calculate the product of values in an array
  9199. * @link http://www.php.net/manual/en/function.array-product.php
  9200. * @param array array <p>
  9201. * The array.
  9202. * </p>
  9203. * @return number the product as an integer or float.
  9204. */
  9205. function array_product (array $array) {}
  9206. /**
  9207. * Filters elements of an array using a callback function
  9208. * @link http://www.php.net/manual/en/function.array-filter.php
  9209. * @param input array <p>
  9210. * The array to iterate over
  9211. * </p>
  9212. * @param callback callback[optional] <p>
  9213. * The callback function to use
  9214. * </p>
  9215. * <p>
  9216. * If no callback is supplied, all entries of
  9217. * input equal to false (see
  9218. * converting to
  9219. * boolean) will be removed.
  9220. * </p>
  9221. * @return array the filtered array.
  9222. */
  9223. function array_filter (array $input, $callback = null) {}
  9224. /**
  9225. * Applies the callback to the elements of the given arrays
  9226. * @link http://www.php.net/manual/en/function.array-map.php
  9227. * @param callback callback <p>
  9228. * Callback function to run for each element in each array.
  9229. * </p>
  9230. * @param arr1 array <p>
  9231. * An array to run through the callback function.
  9232. * </p>
  9233. * @param _ array[optional]
  9234. * @return array an array containing all the elements of arr1
  9235. * after applying the callback function to each one.
  9236. */
  9237. function array_map ($callback, array $arr1, array $_ = null) {}
  9238. /**
  9239. * Split an array into chunks
  9240. * @link http://www.php.net/manual/en/function.array-chunk.php
  9241. * @param input array <p>
  9242. * The array to work on
  9243. * </p>
  9244. * @param size int <p>
  9245. * The size of each chunk
  9246. * </p>
  9247. * @param preserve_keys bool[optional] <p>
  9248. * When set to true keys will be preserved.
  9249. * Default is false which will reindex the chunk numerically
  9250. * </p>
  9251. * @return array a multidimensional numerically indexed array, starting with zero,
  9252. * with each dimension containing size elements.
  9253. */
  9254. function array_chunk (array $input, $size, $preserve_keys = null) {}
  9255. /**
  9256. * Creates an array by using one array for keys and another for its values
  9257. * @link http://www.php.net/manual/en/function.array-combine.php
  9258. * @param keys array <p>
  9259. * Array of keys to be used. Illegal values for key will be
  9260. * converted to string.
  9261. * </p>
  9262. * @param values array <p>
  9263. * Array of values to be used
  9264. * </p>
  9265. * @return array the combined array, false if the number of elements
  9266. * for each array isn't equal or if the arrays are empty.
  9267. */
  9268. function array_combine (array $keys, array $values) {}
  9269. /**
  9270. * Checks if the given key or index exists in the array
  9271. * @link http://www.php.net/manual/en/function.array-key-exists.php
  9272. * @param key mixed <p>
  9273. * Value to check.
  9274. * </p>
  9275. * @param search array <p>
  9276. * An array with keys to check.
  9277. * </p>
  9278. * @return bool Returns true on success or false on failure.
  9279. */
  9280. function array_key_exists ($key, array $search) {}
  9281. /**
  9282. * &Alias; <function>current</function>
  9283. * @link http://www.php.net/manual/en/function.pos.php
  9284. * @param arg
  9285. */
  9286. function pos (&$arg) {}
  9287. /**
  9288. * &Alias; <function>count</function>
  9289. * @link http://www.php.net/manual/en/function.sizeof.php
  9290. * @param var
  9291. * @param mode[optional]
  9292. */
  9293. function sizeof ($var, $mode) {}
  9294. /**
  9295. * @param key
  9296. * @param search
  9297. */
  9298. function key_exists ($key, $search) {}
  9299. /**
  9300. * Checks if assertion is &false;
  9301. * @link http://www.php.net/manual/en/function.assert.php
  9302. * @param assertion mixed <p>
  9303. * The assertion.
  9304. * </p>
  9305. * @return bool false if the assertion is false, true otherwise.
  9306. */
  9307. function assert ($assertion) {}
  9308. /**
  9309. * Set/get the various assert flags
  9310. * @link http://www.php.net/manual/en/function.assert-options.php
  9311. * @param what int <p>
  9312. * <table>
  9313. * Assert Options
  9314. * <tr valign="top">
  9315. * <td>Option</td>
  9316. * <td>INI Setting</td>
  9317. * <td>Default value</td>
  9318. * <td>Description</td>
  9319. * </tr>
  9320. * <tr valign="top">
  9321. * <td>ASSERT_ACTIVE</td>
  9322. * <td>assert.active</td>
  9323. * <td>1</td>
  9324. * <td>enable assert evaluation</td>
  9325. * </tr>
  9326. * <tr valign="top">
  9327. * <td>ASSERT_WARNING</td>
  9328. * <td>assert.warning</td>
  9329. * <td>1</td>
  9330. * <td>issue a PHP warning for each failed assertion</td>
  9331. * </tr>
  9332. * <tr valign="top">
  9333. * <td>ASSERT_BAIL</td>
  9334. * <td>assert.bail</td>
  9335. * <td>0</td>
  9336. * <td>terminate execution on failed assertions</td>
  9337. * </tr>
  9338. * <tr valign="top">
  9339. * <td>ASSERT_QUIET_EVAL</td>
  9340. * <td>assert.quiet_eval</td>
  9341. * <td>0</td>
  9342. * <td>
  9343. * disable error_reporting during assertion expression
  9344. * evaluation
  9345. * </td>
  9346. * </tr>
  9347. * <tr valign="top">
  9348. * <td>ASSERT_CALLBACK</td>
  9349. * <td>assert.callback</td>
  9350. * <td)<&null;)</td>
  9351. * <td>Callback to call on failed assertions</td>
  9352. * </tr>
  9353. * </table>
  9354. * </p>
  9355. * @param value mixed[optional] <p>
  9356. * An optional new value for the option.
  9357. * </p>
  9358. * @return mixed the original setting of any option or false on errors.
  9359. */
  9360. function assert_options ($what, $value = null) {}
  9361. /**
  9362. * Compares two "PHP-standardized" version number strings
  9363. * @link http://www.php.net/manual/en/function.version-compare.php
  9364. * @param version1 string <p>
  9365. * First version number.
  9366. * </p>
  9367. * @param version2 string <p>
  9368. * Second version number.
  9369. * </p>
  9370. * @param operator string[optional] <p>
  9371. * If you specify the third optional operator
  9372. * argument, you can test for a particular relationship. The
  9373. * possible operators are: &lt;,
  9374. * lt, &lt;=,
  9375. * le, &gt;,
  9376. * gt, &gt;=,
  9377. * ge, ==,
  9378. * =, eq,
  9379. * !=, &lt;&gt;,
  9380. * ne respectively.
  9381. * </p>
  9382. * <p>
  9383. * This parameter is case-sensitive, so values should be lowercase.
  9384. * </p>
  9385. * @return mixed By default, version_compare returns
  9386. * -1 if the first version is lower than the second,
  9387. * 0 if they are equal, and
  9388. * 1 if the second is lower.
  9389. * </p>
  9390. * <p>
  9391. * When using the optional operator argument, the
  9392. * function will return true if the relationship is the one specified
  9393. * by the operator, false otherwise.
  9394. */
  9395. function version_compare ($version1, $version2, $operator = null) {}
  9396. /**
  9397. * Convert a pathname and a project identifier to a System V IPC key
  9398. * @link http://www.php.net/manual/en/function.ftok.php
  9399. * @param pathname string <p>
  9400. * Path to an accessible file.
  9401. * </p>
  9402. * @param proj string <p>
  9403. * Project identifier. This must be a one character string.
  9404. * </p>
  9405. * @return int On success the return value will be the created key value, otherwise
  9406. * -1 is returned.
  9407. */
  9408. function ftok ($pathname, $proj) {}
  9409. /**
  9410. * Perform the rot13 transform on a string
  9411. * @link http://www.php.net/manual/en/function.str-rot13.php
  9412. * @param str string <p>
  9413. * The input string.
  9414. * </p>
  9415. * @return string the ROT13 version of the given string.
  9416. */
  9417. function str_rot13 ($str) {}
  9418. /**
  9419. * Retrieve list of registered filters
  9420. * @link http://www.php.net/manual/en/function.stream-get-filters.php
  9421. * @return array an indexed array containing the name of all stream filters
  9422. * available.
  9423. */
  9424. function stream_get_filters () {}
  9425. /**
  9426. * Register a user defined stream filter
  9427. * @link http://www.php.net/manual/en/function.stream-filter-register.php
  9428. * @param filtername string <p>
  9429. * The filter name to be registered.
  9430. * </p>
  9431. * @param classname string <p>
  9432. * To implement a filter, you need to define a class as an extension of
  9433. * php_user_filter with a number of member functions
  9434. * as defined below. When performing read/write operations on the stream
  9435. * to which your filter is attached, PHP will pass the data through your
  9436. * filter (and any other filters attached to that stream) so that the
  9437. * data may be modified as desired. You must implement the methods
  9438. * exactly as described below - doing otherwise will lead to undefined
  9439. * behaviour.
  9440. * </p>
  9441. * intfilter
  9442. * resourcein
  9443. * resourceout
  9444. * intconsumed
  9445. * boolclosing
  9446. * <p>
  9447. * This method is called whenever data is read from or written to
  9448. * the attached stream (such as with fread or fwrite).
  9449. * in is a resource pointing to a bucket brigade
  9450. * which contains one or more bucket objects containing data to be filtered.
  9451. * out is a resource pointing to a second bucket brigade
  9452. * into which your modified buckets should be placed.
  9453. * consumed, which must always
  9454. * be declared by reference, should be incremented by the length of the data
  9455. * which your filter reads in and alters. In most cases this means you will
  9456. * increment consumed by $bucket->datalen
  9457. * for each $bucket. If the stream is in the process of closing
  9458. * (and therefore this is the last pass through the filterchain),
  9459. * the closing parameter will be set to true.
  9460. * The filter method must return one of
  9461. * three values upon completion.
  9462. * <tr valign="top">
  9463. * <td>Return Value</td>
  9464. * <td>Meaning</td>
  9465. * </tr>
  9466. * <tr valign="top">
  9467. * <td>PSFS_PASS_ON</td>
  9468. * <td>
  9469. * Filter processed successfully with data available in the
  9470. * out bucket brigade.
  9471. * </td>
  9472. * </tr>
  9473. * <tr valign="top">
  9474. * <td>PSFS_FEED_ME</td>
  9475. * <td>
  9476. * Filter processed successfully, however no data was available to
  9477. * return. More data is required from the stream or prior filter.
  9478. * </td>
  9479. * </tr>
  9480. * <tr valign="top">
  9481. * <td>PSFS_ERR_FATAL (default)</td>
  9482. * <td>
  9483. * The filter experienced an unrecoverable error and cannot continue.
  9484. * </td>
  9485. * </tr>
  9486. * </p>
  9487. * boolonCreate
  9488. * This method is called during instantiation of the filter class
  9489. * object. If your filter allocates or initializes any other resources
  9490. * (such as a buffer), this is the place to do it. Your implementation of
  9491. * this method should return false on failure, or true on success.
  9492. * When your filter is first instantiated, and
  9493. * yourfilter-&gt;onCreate() is called, a number of properties
  9494. * will be available as shown in the table below.
  9495. * <p>
  9496. * <tr valign="top">
  9497. * <td>Property</td>
  9498. * <td>Contents</td>
  9499. * </tr>
  9500. * <tr valign="top">
  9501. * <td>FilterClass-&gt;filtername</td>
  9502. * <td>
  9503. * A string containing the name the filter was instantiated with.
  9504. * Filters may be registered under multiple names or under wildcards.
  9505. * Use this property to determine which name was used.
  9506. * </td>
  9507. * </tr>
  9508. * <tr valign="top">
  9509. * <td>FilterClass-&gt;params</td>
  9510. * <td>
  9511. * The contents of the params parameter passed
  9512. * to stream_filter_append
  9513. * or stream_filter_prepend.
  9514. * </td>
  9515. * </tr>
  9516. * <tr valign="top">
  9517. * <td>FilterClass-&gt;stream</td>
  9518. * <td>
  9519. * The stream resource being filtered. Maybe available only during
  9520. * filter calls when the
  9521. * closing parameter is set to false.
  9522. * </td>
  9523. * </tr>
  9524. * </p>
  9525. * voidonClose
  9526. * <p>
  9527. * This method is called upon filter shutdown (typically, this is also
  9528. * during stream shutdown), and is executed after
  9529. * the flush method is called. If any resources
  9530. * were allocated or initialized during onCreate()
  9531. * this would be the time to destroy or dispose of them.
  9532. * </p>
  9533. * @return bool Returns true on success or false on failure.
  9534. * </p>
  9535. * <p>
  9536. * stream_filter_register will return false if the
  9537. * filtername is already defined.
  9538. */
  9539. function stream_filter_register ($filtername, $classname) {}
  9540. /**
  9541. * Return a bucket object from the brigade for operating on
  9542. * @link http://www.php.net/manual/en/function.stream-bucket-make-writeable.php
  9543. * @param brigade resource
  9544. * @return object
  9545. */
  9546. function stream_bucket_make_writeable ($brigade) {}
  9547. /**
  9548. * Prepend bucket to brigade
  9549. * @link http://www.php.net/manual/en/function.stream-bucket-prepend.php
  9550. * @param brigade resource
  9551. * @param bucket resource
  9552. * @return void
  9553. */
  9554. function stream_bucket_prepend ($brigade, $bucket) {}
  9555. /**
  9556. * Append bucket to brigade
  9557. * @link http://www.php.net/manual/en/function.stream-bucket-append.php
  9558. * @param brigade resource
  9559. * @param bucket resource
  9560. * @return void
  9561. */
  9562. function stream_bucket_append ($brigade, $bucket) {}
  9563. /**
  9564. * Create a new bucket for use on the current stream
  9565. * @link http://www.php.net/manual/en/function.stream-bucket-new.php
  9566. * @param stream resource
  9567. * @param buffer string
  9568. * @return object
  9569. */
  9570. function stream_bucket_new ($stream, $buffer) {}
  9571. /**
  9572. * Add URL rewriter values
  9573. * @link http://www.php.net/manual/en/function.output-add-rewrite-var.php
  9574. * @param name string <p>
  9575. * The variable name.
  9576. * </p>
  9577. * @param value string <p>
  9578. * The variable value.
  9579. * </p>
  9580. * @return bool Returns true on success or false on failure.
  9581. */
  9582. function output_add_rewrite_var ($name, $value) {}
  9583. /**
  9584. * Reset URL rewriter values
  9585. * @link http://www.php.net/manual/en/function.output-reset-rewrite-vars.php
  9586. * @return bool Returns true on success or false on failure.
  9587. */
  9588. function output_reset_rewrite_vars () {}
  9589. /**
  9590. * Returns directory path used for temporary files
  9591. * @link http://www.php.net/manual/en/function.sys-get-temp-dir.php
  9592. * @return string the path of the temporary directory.
  9593. */
  9594. function sys_get_temp_dir () {}
  9595. define ('CONNECTION_ABORTED', 1);
  9596. define ('CONNECTION_NORMAL', 0);
  9597. define ('CONNECTION_TIMEOUT', 2);
  9598. define ('INI_USER', 1);
  9599. define ('INI_PERDIR', 2);
  9600. define ('INI_SYSTEM', 4);
  9601. define ('INI_ALL', 7);
  9602. define ('PHP_URL_SCHEME', 0);
  9603. define ('PHP_URL_HOST', 1);
  9604. define ('PHP_URL_PORT', 2);
  9605. define ('PHP_URL_USER', 3);
  9606. define ('PHP_URL_PASS', 4);
  9607. define ('PHP_URL_PATH', 5);
  9608. define ('PHP_URL_QUERY', 6);
  9609. define ('PHP_URL_FRAGMENT', 7);
  9610. define ('M_E', 2.718281828459);
  9611. define ('M_LOG2E', 1.442695040889);
  9612. define ('M_LOG10E', 0.43429448190325);
  9613. define ('M_LN2', 0.69314718055995);
  9614. define ('M_LN10', 2.302585092994);
  9615. /**
  9616. * Round halves up
  9617. * @link http://www.php.net/manual/en/math.constants.php
  9618. */
  9619. define ('M_PI', 3.1415926535898);
  9620. define ('M_PI_2', 1.5707963267949);
  9621. define ('M_PI_4', 0.78539816339745);
  9622. define ('M_1_PI', 0.31830988618379);
  9623. define ('M_2_PI', 0.63661977236758);
  9624. define ('M_SQRTPI', 1.7724538509055);
  9625. define ('M_2_SQRTPI', 1.1283791670955);
  9626. define ('M_LNPI', 1.1447298858494);
  9627. define ('M_EULER', 0.57721566490153);
  9628. define ('M_SQRT2', 1.4142135623731);
  9629. define ('M_SQRT1_2', 0.70710678118655);
  9630. define ('M_SQRT3', 1.7320508075689);
  9631. define ('INF', INF);
  9632. define ('NAN', NAN);
  9633. define ('INFO_GENERAL', 1);
  9634. /**
  9635. * PHP Credits. See also phpcredits.
  9636. * @link http://www.php.net/manual/en/info.constants.php
  9637. */
  9638. define ('INFO_CREDITS', 2);
  9639. /**
  9640. * Current Local and Master values for PHP directives. See
  9641. * also ini_get.
  9642. * @link http://www.php.net/manual/en/info.constants.php
  9643. */
  9644. define ('INFO_CONFIGURATION', 4);
  9645. /**
  9646. * Loaded modules and their respective settings.
  9647. * @link http://www.php.net/manual/en/info.constants.php
  9648. */
  9649. define ('INFO_MODULES', 8);
  9650. /**
  9651. * Environment Variable information that's also available in
  9652. * $_ENV.
  9653. * @link http://www.php.net/manual/en/info.constants.php
  9654. */
  9655. define ('INFO_ENVIRONMENT', 16);
  9656. /**
  9657. * Shows all
  9658. * predefined variables from EGPCS (Environment, GET,
  9659. * POST, Cookie, Server).
  9660. * @link http://www.php.net/manual/en/info.constants.php
  9661. */
  9662. define ('INFO_VARIABLES', 32);
  9663. /**
  9664. * PHP License information. See also the license faq.
  9665. * @link http://www.php.net/manual/en/info.constants.php
  9666. */
  9667. define ('INFO_LICENSE', 64);
  9668. define ('INFO_ALL', -1);
  9669. /**
  9670. * A list of the core developers
  9671. * @link http://www.php.net/manual/en/info.constants.php
  9672. */
  9673. define ('CREDITS_GROUP', 1);
  9674. /**
  9675. * General credits: Language design and concept, PHP
  9676. * authors and SAPI module.
  9677. * @link http://www.php.net/manual/en/info.constants.php
  9678. */
  9679. define ('CREDITS_GENERAL', 2);
  9680. /**
  9681. * A list of the server API modules for PHP, and their authors.
  9682. * @link http://www.php.net/manual/en/info.constants.php
  9683. */
  9684. define ('CREDITS_SAPI', 4);
  9685. /**
  9686. * A list of the extension modules for PHP, and their authors.
  9687. * @link http://www.php.net/manual/en/info.constants.php
  9688. */
  9689. define ('CREDITS_MODULES', 8);
  9690. /**
  9691. * The credits for the documentation team.
  9692. * @link http://www.php.net/manual/en/info.constants.php
  9693. */
  9694. define ('CREDITS_DOCS', 16);
  9695. /**
  9696. * Usually used in combination with the other flags. Indicates
  9697. * that a complete stand-alone HTML page needs to be
  9698. * printed including the information indicated by the other
  9699. * flags.
  9700. * @link http://www.php.net/manual/en/info.constants.php
  9701. */
  9702. define ('CREDITS_FULLPAGE', 32);
  9703. /**
  9704. * The credits for the quality assurance team.
  9705. * @link http://www.php.net/manual/en/info.constants.php
  9706. */
  9707. define ('CREDITS_QA', 64);
  9708. /**
  9709. * The configuration line, &php.ini; location, build date, Web
  9710. * Server, System and more.
  9711. * @link http://www.php.net/manual/en/info.constants.php
  9712. */
  9713. define ('CREDITS_ALL', -1);
  9714. define ('HTML_SPECIALCHARS', 0);
  9715. define ('HTML_ENTITIES', 1);
  9716. define ('ENT_COMPAT', 2);
  9717. define ('ENT_QUOTES', 3);
  9718. define ('ENT_NOQUOTES', 0);
  9719. define ('STR_PAD_LEFT', 0);
  9720. define ('STR_PAD_RIGHT', 1);
  9721. define ('STR_PAD_BOTH', 2);
  9722. define ('PATHINFO_DIRNAME', 1);
  9723. define ('PATHINFO_BASENAME', 2);
  9724. define ('PATHINFO_EXTENSION', 4);
  9725. /**
  9726. * Since PHP 5.2.0.
  9727. * @link http://www.php.net/manual/en/filesystem.constants.php
  9728. */
  9729. define ('PATHINFO_FILENAME', 8);
  9730. define ('CHAR_MAX', 127);
  9731. define ('LC_CTYPE', 0);
  9732. define ('LC_NUMERIC', 1);
  9733. define ('LC_TIME', 2);
  9734. define ('LC_COLLATE', 3);
  9735. define ('LC_MONETARY', 4);
  9736. define ('LC_ALL', 6);
  9737. define ('LC_MESSAGES', 5);
  9738. define ('SEEK_SET', 0);
  9739. define ('SEEK_CUR', 1);
  9740. define ('SEEK_END', 2);
  9741. define ('LOCK_SH', 1);
  9742. define ('LOCK_EX', 2);
  9743. define ('LOCK_UN', 3);
  9744. define ('LOCK_NB', 4);
  9745. /**
  9746. * A connection with an external resource has been established.
  9747. * @link http://www.php.net/manual/en/stream.constants.php
  9748. */
  9749. define ('STREAM_NOTIFY_CONNECT', 2);
  9750. /**
  9751. * Additional authorization is required to access the specified resource.
  9752. * Typical issued with severity level of
  9753. * STREAM_NOTIFY_SEVERITY_ERR.
  9754. * @link http://www.php.net/manual/en/stream.constants.php
  9755. */
  9756. define ('STREAM_NOTIFY_AUTH_REQUIRED', 3);
  9757. /**
  9758. * Authorization has been completed (with or without success).
  9759. * @link http://www.php.net/manual/en/stream.constants.php
  9760. */
  9761. define ('STREAM_NOTIFY_AUTH_RESULT', 10);
  9762. /**
  9763. * The mime-type of resource has been identified,
  9764. * refer to message for a description of the
  9765. * discovered type.
  9766. * @link http://www.php.net/manual/en/stream.constants.php
  9767. */
  9768. define ('STREAM_NOTIFY_MIME_TYPE_IS', 4);
  9769. /**
  9770. * The size of the resource has been discovered.
  9771. * @link http://www.php.net/manual/en/stream.constants.php
  9772. */
  9773. define ('STREAM_NOTIFY_FILE_SIZE_IS', 5);
  9774. /**
  9775. * The external resource has redirected the stream to an alternate
  9776. * location. Refer to message.
  9777. * @link http://www.php.net/manual/en/stream.constants.php
  9778. */
  9779. define ('STREAM_NOTIFY_REDIRECTED', 6);
  9780. /**
  9781. * Indicates current progress of the stream transfer in
  9782. * bytes_transferred and possibly
  9783. * bytes_max as well.
  9784. * @link http://www.php.net/manual/en/stream.constants.php
  9785. */
  9786. define ('STREAM_NOTIFY_PROGRESS', 7);
  9787. /**
  9788. * A generic error occurred on the stream, consult
  9789. * message and message_code
  9790. * for details.
  9791. * @link http://www.php.net/manual/en/stream.constants.php
  9792. */
  9793. define ('STREAM_NOTIFY_FAILURE', 9);
  9794. /**
  9795. * There is no more data available on the stream.
  9796. * @link http://www.php.net/manual/en/stream.constants.php
  9797. */
  9798. define ('STREAM_NOTIFY_COMPLETED', 8);
  9799. /**
  9800. * A remote address required for this stream has been resolved, or the resolution
  9801. * failed. See severity for an indication of which happened.
  9802. * @link http://www.php.net/manual/en/stream.constants.php
  9803. */
  9804. define ('STREAM_NOTIFY_RESOLVE', 1);
  9805. /**
  9806. * Normal, non-error related, notification.
  9807. * @link http://www.php.net/manual/en/stream.constants.php
  9808. */
  9809. define ('STREAM_NOTIFY_SEVERITY_INFO', 0);
  9810. /**
  9811. * Non critical error condition. Processing may continue.
  9812. * @link http://www.php.net/manual/en/stream.constants.php
  9813. */
  9814. define ('STREAM_NOTIFY_SEVERITY_WARN', 1);
  9815. /**
  9816. * A critical error occurred. Processing cannot continue.
  9817. * @link http://www.php.net/manual/en/stream.constants.php
  9818. */
  9819. define ('STREAM_NOTIFY_SEVERITY_ERR', 2);
  9820. /**
  9821. * Used with stream_filter_append and
  9822. * stream_filter_prepend to indicate
  9823. * that the specified filter should only be applied when
  9824. * reading
  9825. * @link http://www.php.net/manual/en/stream.constants.php
  9826. */
  9827. define ('STREAM_FILTER_READ', 1);
  9828. /**
  9829. * Used with stream_filter_append and
  9830. * stream_filter_prepend to indicate
  9831. * that the specified filter should only be applied when
  9832. * writing
  9833. * @link http://www.php.net/manual/en/stream.constants.php
  9834. */
  9835. define ('STREAM_FILTER_WRITE', 2);
  9836. /**
  9837. * This constant is equivalent to
  9838. * STREAM_FILTER_READ | STREAM_FILTER_WRITE
  9839. * @link http://www.php.net/manual/en/stream.constants.php
  9840. */
  9841. define ('STREAM_FILTER_ALL', 3);
  9842. /**
  9843. * Client socket opened with stream_socket_client
  9844. * should remain persistent between page loads.
  9845. * @link http://www.php.net/manual/en/stream.constants.php
  9846. */
  9847. define ('STREAM_CLIENT_PERSISTENT', 1);
  9848. /**
  9849. * Open client socket asynchronously. This option must be used
  9850. * together with the STREAM_CLIENT_CONNECT flag.
  9851. * Used with stream_socket_client.
  9852. * @link http://www.php.net/manual/en/stream.constants.php
  9853. */
  9854. define ('STREAM_CLIENT_ASYNC_CONNECT', 2);
  9855. /**
  9856. * Open client socket connection. Client sockets should always
  9857. * include this flag. Used with stream_socket_client.
  9858. * @link http://www.php.net/manual/en/stream.constants.php
  9859. */
  9860. define ('STREAM_CLIENT_CONNECT', 4);
  9861. define ('STREAM_CRYPTO_METHOD_SSLv2_CLIENT', 0);
  9862. define ('STREAM_CRYPTO_METHOD_SSLv3_CLIENT', 1);
  9863. define ('STREAM_CRYPTO_METHOD_SSLv23_CLIENT', 2);
  9864. define ('STREAM_CRYPTO_METHOD_TLS_CLIENT', 3);
  9865. define ('STREAM_CRYPTO_METHOD_SSLv2_SERVER', 4);
  9866. define ('STREAM_CRYPTO_METHOD_SSLv3_SERVER', 5);
  9867. define ('STREAM_CRYPTO_METHOD_SSLv23_SERVER', 6);
  9868. define ('STREAM_CRYPTO_METHOD_TLS_SERVER', 7);
  9869. /**
  9870. * Used with stream_socket_shutdown to disable
  9871. * further receptions. Added in PHP 5.2.1.
  9872. * @link http://www.php.net/manual/en/stream.constants.php
  9873. */
  9874. define ('STREAM_SHUT_RD', 0);
  9875. /**
  9876. * Used with stream_socket_shutdown to disable
  9877. * further transmissions. Added in PHP 5.2.1.
  9878. * @link http://www.php.net/manual/en/stream.constants.php
  9879. */
  9880. define ('STREAM_SHUT_WR', 1);
  9881. /**
  9882. * Used with stream_socket_shutdown to disable
  9883. * further receptions and transmissions. Added in PHP 5.2.1.
  9884. * @link http://www.php.net/manual/en/stream.constants.php
  9885. */
  9886. define ('STREAM_SHUT_RDWR', 2);
  9887. /**
  9888. * Internet Protocol Version 4 (IPv4).
  9889. * @link http://www.php.net/manual/en/stream.constants.php
  9890. */
  9891. define ('STREAM_PF_INET', 2);
  9892. /**
  9893. * Internet Protocol Version 6 (IPv6).
  9894. * @link http://www.php.net/manual/en/stream.constants.php
  9895. */
  9896. define ('STREAM_PF_INET6', 10);
  9897. /**
  9898. * Unix system internal protocols.
  9899. * @link http://www.php.net/manual/en/stream.constants.php
  9900. */
  9901. define ('STREAM_PF_UNIX', 1);
  9902. /**
  9903. * Provides a IP socket.
  9904. * @link http://www.php.net/manual/en/stream.constants.php
  9905. */
  9906. define ('STREAM_IPPROTO_IP', 0);
  9907. /**
  9908. * Provides a TCP socket.
  9909. * @link http://www.php.net/manual/en/stream.constants.php
  9910. */
  9911. define ('STREAM_IPPROTO_TCP', 6);
  9912. /**
  9913. * Provides a UDP socket.
  9914. * @link http://www.php.net/manual/en/stream.constants.php
  9915. */
  9916. define ('STREAM_IPPROTO_UDP', 17);
  9917. /**
  9918. * Provides a ICMP socket.
  9919. * @link http://www.php.net/manual/en/stream.constants.php
  9920. */
  9921. define ('STREAM_IPPROTO_ICMP', 1);
  9922. /**
  9923. * Provides a RAW socket.
  9924. * @link http://www.php.net/manual/en/stream.constants.php
  9925. */
  9926. define ('STREAM_IPPROTO_RAW', 255);
  9927. /**
  9928. * Provides sequenced, two-way byte streams with a transmission mechanism
  9929. * for out-of-band data (TCP, for example).
  9930. * @link http://www.php.net/manual/en/stream.constants.php
  9931. */
  9932. define ('STREAM_SOCK_STREAM', 1);
  9933. /**
  9934. * Provides datagrams, which are connectionless messages (UDP, for
  9935. * example).
  9936. * @link http://www.php.net/manual/en/stream.constants.php
  9937. */
  9938. define ('STREAM_SOCK_DGRAM', 2);
  9939. /**
  9940. * Provides a raw socket, which provides access to internal network
  9941. * protocols and interfaces. Usually this type of socket is just available
  9942. * to the root user.
  9943. * @link http://www.php.net/manual/en/stream.constants.php
  9944. */
  9945. define ('STREAM_SOCK_RAW', 3);
  9946. /**
  9947. * Provides a sequenced packet stream socket.
  9948. * @link http://www.php.net/manual/en/stream.constants.php
  9949. */
  9950. define ('STREAM_SOCK_SEQPACKET', 5);
  9951. /**
  9952. * Provides a RDM (Reliably-delivered messages) socket.
  9953. * @link http://www.php.net/manual/en/stream.constants.php
  9954. */
  9955. define ('STREAM_SOCK_RDM', 4);
  9956. define ('STREAM_PEEK', 2);
  9957. define ('STREAM_OOB', 1);
  9958. /**
  9959. * Tells a stream created with stream_socket_server
  9960. * to bind to the specified target. Server sockets should always include this flag.
  9961. * @link http://www.php.net/manual/en/stream.constants.php
  9962. */
  9963. define ('STREAM_SERVER_BIND', 4);
  9964. /**
  9965. * Tells a stream created with stream_socket_server
  9966. * and bound using the STREAM_SERVER_BIND flag to start
  9967. * listening on the socket. Connection-orientated transports (such as TCP)
  9968. * must use this flag, otherwise the server socket will not be enabled.
  9969. * Using this flag for connect-less transports (such as UDP) is an error.
  9970. * @link http://www.php.net/manual/en/stream.constants.php
  9971. */
  9972. define ('STREAM_SERVER_LISTEN', 8);
  9973. /**
  9974. * Search for filename in
  9975. * include_path (since PHP 5).
  9976. * @link http://www.php.net/manual/en/filesystem.constants.php
  9977. */
  9978. define ('FILE_USE_INCLUDE_PATH', 1);
  9979. /**
  9980. * Strip EOL characters (since PHP 5).
  9981. * @link http://www.php.net/manual/en/filesystem.constants.php
  9982. */
  9983. define ('FILE_IGNORE_NEW_LINES', 2);
  9984. /**
  9985. * Skip empty lines (since PHP 5).
  9986. * @link http://www.php.net/manual/en/filesystem.constants.php
  9987. */
  9988. define ('FILE_SKIP_EMPTY_LINES', 4);
  9989. /**
  9990. * Append content to existing file.
  9991. * @link http://www.php.net/manual/en/filesystem.constants.php
  9992. */
  9993. define ('FILE_APPEND', 8);
  9994. define ('FILE_NO_DEFAULT_CONTEXT', 16);
  9995. /**
  9996. * <p>
  9997. * Text mode (since PHP 5.2.7).
  9998. * <p>
  9999. * This constant has no effect, and is only available for
  10000. * forward compatibility.
  10001. * </p>
  10002. * </p>
  10003. * @link http://www.php.net/manual/en/filesystem.constants.php
  10004. */
  10005. define ('FILE_TEXT', 0);
  10006. /**
  10007. * <p>
  10008. * Binary mode (since PHP 5.2.7).
  10009. * <p>
  10010. * This constant has no effect, and is only available for
  10011. * forward compatibility.
  10012. * </p>
  10013. * </p>
  10014. * @link http://www.php.net/manual/en/filesystem.constants.php
  10015. */
  10016. define ('FILE_BINARY', 0);
  10017. /**
  10018. * Disable backslash escaping.
  10019. * @link http://www.php.net/manual/en/filesystem.constants.php
  10020. */
  10021. define ('FNM_NOESCAPE', 2);
  10022. /**
  10023. * Slash in string only matches slash in the given pattern.
  10024. * @link http://www.php.net/manual/en/filesystem.constants.php
  10025. */
  10026. define ('FNM_PATHNAME', 1);
  10027. /**
  10028. * Leading period in string must be exactly matched by period in the given pattern.
  10029. * @link http://www.php.net/manual/en/filesystem.constants.php
  10030. */
  10031. define ('FNM_PERIOD', 4);
  10032. /**
  10033. * Caseless match. Part of the GNU extension.
  10034. * @link http://www.php.net/manual/en/filesystem.constants.php
  10035. */
  10036. define ('FNM_CASEFOLD', 16);
  10037. /**
  10038. * Return Code indicating that the
  10039. * userspace filter returned buckets in $out.
  10040. * @link http://www.php.net/manual/en/stream.constants.php
  10041. */
  10042. define ('PSFS_PASS_ON', 2);
  10043. /**
  10044. * Return Code indicating that the
  10045. * userspace filter did not return buckets in $out
  10046. * (i.e. No data available).
  10047. * @link http://www.php.net/manual/en/stream.constants.php
  10048. */
  10049. define ('PSFS_FEED_ME', 1);
  10050. /**
  10051. * Return Code indicating that the
  10052. * userspace filter encountered an unrecoverable error
  10053. * (i.e. Invalid data received).
  10054. * @link http://www.php.net/manual/en/stream.constants.php
  10055. */
  10056. define ('PSFS_ERR_FATAL', 0);
  10057. /**
  10058. * Regular read/write.
  10059. * @link http://www.php.net/manual/en/stream.constants.php
  10060. */
  10061. define ('PSFS_FLAG_NORMAL', 0);
  10062. /**
  10063. * An incremental flush.
  10064. * @link http://www.php.net/manual/en/stream.constants.php
  10065. */
  10066. define ('PSFS_FLAG_FLUSH_INC', 1);
  10067. /**
  10068. * Final flush prior to closing.
  10069. * @link http://www.php.net/manual/en/stream.constants.php
  10070. */
  10071. define ('PSFS_FLAG_FLUSH_CLOSE', 2);
  10072. define ('ABDAY_1', 131072);
  10073. define ('ABDAY_2', 131073);
  10074. define ('ABDAY_3', 131074);
  10075. define ('ABDAY_4', 131075);
  10076. define ('ABDAY_5', 131076);
  10077. define ('ABDAY_6', 131077);
  10078. define ('ABDAY_7', 131078);
  10079. define ('DAY_1', 131079);
  10080. define ('DAY_2', 131080);
  10081. define ('DAY_3', 131081);
  10082. define ('DAY_4', 131082);
  10083. define ('DAY_5', 131083);
  10084. define ('DAY_6', 131084);
  10085. define ('DAY_7', 131085);
  10086. define ('ABMON_1', 131086);
  10087. define ('ABMON_2', 131087);
  10088. define ('ABMON_3', 131088);
  10089. define ('ABMON_4', 131089);
  10090. define ('ABMON_5', 131090);
  10091. define ('ABMON_6', 131091);
  10092. define ('ABMON_7', 131092);
  10093. define ('ABMON_8', 131093);
  10094. define ('ABMON_9', 131094);
  10095. define ('ABMON_10', 131095);
  10096. define ('ABMON_11', 131096);
  10097. define ('ABMON_12', 131097);
  10098. define ('MON_1', 131098);
  10099. define ('MON_2', 131099);
  10100. define ('MON_3', 131100);
  10101. define ('MON_4', 131101);
  10102. define ('MON_5', 131102);
  10103. define ('MON_6', 131103);
  10104. define ('MON_7', 131104);
  10105. define ('MON_8', 131105);
  10106. define ('MON_9', 131106);
  10107. define ('MON_10', 131107);
  10108. define ('MON_11', 131108);
  10109. define ('MON_12', 131109);
  10110. define ('AM_STR', 131110);
  10111. define ('PM_STR', 131111);
  10112. define ('D_T_FMT', 131112);
  10113. define ('D_FMT', 131113);
  10114. define ('T_FMT', 131114);
  10115. define ('T_FMT_AMPM', 131115);
  10116. define ('ERA', 131116);
  10117. define ('ERA_D_T_FMT', 131120);
  10118. define ('ERA_D_FMT', 131118);
  10119. define ('ERA_T_FMT', 131121);
  10120. define ('ALT_DIGITS', 131119);
  10121. define ('CRNCYSTR', 262159);
  10122. define ('RADIXCHAR', 65536);
  10123. define ('THOUSEP', 65537);
  10124. define ('YESEXPR', 327680);
  10125. define ('NOEXPR', 327681);
  10126. define ('CODESET', 14);
  10127. define ('CRYPT_SALT_LENGTH', 12);
  10128. define ('CRYPT_STD_DES', 1);
  10129. define ('CRYPT_EXT_DES', 0);
  10130. define ('CRYPT_MD5', 1);
  10131. define ('CRYPT_BLOWFISH', 0);
  10132. define ('DIRECTORY_SEPARATOR', "/");
  10133. define ('PATH_SEPARATOR', ":");
  10134. define ('GLOB_BRACE', 1024);
  10135. define ('GLOB_MARK', 2);
  10136. define ('GLOB_NOSORT', 4);
  10137. define ('GLOB_NOCHECK', 16);
  10138. define ('GLOB_NOESCAPE', 64);
  10139. define ('GLOB_ERR', 1);
  10140. define ('GLOB_ONLYDIR', 8192);
  10141. define ('GLOB_AVAILABLE_FLAGS', 9303);
  10142. /**
  10143. * system is unusable
  10144. * @link http://www.php.net/manual/en/network.constants.php
  10145. */
  10146. define ('LOG_EMERG', 0);
  10147. /**
  10148. * action must be taken immediately
  10149. * @link http://www.php.net/manual/en/network.constants.php
  10150. */
  10151. define ('LOG_ALERT', 1);
  10152. /**
  10153. * critical conditions
  10154. * @link http://www.php.net/manual/en/network.constants.php
  10155. */
  10156. define ('LOG_CRIT', 2);
  10157. /**
  10158. * error conditions
  10159. * @link http://www.php.net/manual/en/network.constants.php
  10160. */
  10161. define ('LOG_ERR', 3);
  10162. /**
  10163. * warning conditions
  10164. * @link http://www.php.net/manual/en/network.constants.php
  10165. */
  10166. define ('LOG_WARNING', 4);
  10167. /**
  10168. * normal, but significant, condition
  10169. * @link http://www.php.net/manual/en/network.constants.php
  10170. */
  10171. define ('LOG_NOTICE', 5);
  10172. /**
  10173. * informational message
  10174. * @link http://www.php.net/manual/en/network.constants.php
  10175. */
  10176. define ('LOG_INFO', 6);
  10177. /**
  10178. * debug-level message
  10179. * @link http://www.php.net/manual/en/network.constants.php
  10180. */
  10181. define ('LOG_DEBUG', 7);
  10182. /**
  10183. * kernel messages
  10184. * @link http://www.php.net/manual/en/network.constants.php
  10185. */
  10186. define ('LOG_KERN', 0);
  10187. /**
  10188. * generic user-level messages
  10189. * @link http://www.php.net/manual/en/network.constants.php
  10190. */
  10191. define ('LOG_USER', 8);
  10192. /**
  10193. * mail subsystem
  10194. * @link http://www.php.net/manual/en/network.constants.php
  10195. */
  10196. define ('LOG_MAIL', 16);
  10197. /**
  10198. * other system daemons
  10199. * @link http://www.php.net/manual/en/network.constants.php
  10200. */
  10201. define ('LOG_DAEMON', 24);
  10202. /**
  10203. * security/authorization messages (use LOG_AUTHPRIV instead
  10204. * in systems where that constant is defined)
  10205. * @link http://www.php.net/manual/en/network.constants.php
  10206. */
  10207. define ('LOG_AUTH', 32);
  10208. /**
  10209. * messages generated internally by syslogd
  10210. * @link http://www.php.net/manual/en/network.constants.php
  10211. */
  10212. define ('LOG_SYSLOG', 40);
  10213. /**
  10214. * line printer subsystem
  10215. * @link http://www.php.net/manual/en/network.constants.php
  10216. */
  10217. define ('LOG_LPR', 48);
  10218. /**
  10219. * USENET news subsystem
  10220. * @link http://www.php.net/manual/en/network.constants.php
  10221. */
  10222. define ('LOG_NEWS', 56);
  10223. /**
  10224. * UUCP subsystem
  10225. * @link http://www.php.net/manual/en/network.constants.php
  10226. */
  10227. define ('LOG_UUCP', 64);
  10228. /**
  10229. * clock daemon (cron and at)
  10230. * @link http://www.php.net/manual/en/network.constants.php
  10231. */
  10232. define ('LOG_CRON', 72);
  10233. /**
  10234. * security/authorization messages (private)
  10235. * @link http://www.php.net/manual/en/network.constants.php
  10236. */
  10237. define ('LOG_AUTHPRIV', 80);
  10238. define ('LOG_LOCAL0', 128);
  10239. define ('LOG_LOCAL1', 136);
  10240. define ('LOG_LOCAL2', 144);
  10241. define ('LOG_LOCAL3', 152);
  10242. define ('LOG_LOCAL4', 160);
  10243. define ('LOG_LOCAL5', 168);
  10244. define ('LOG_LOCAL6', 176);
  10245. define ('LOG_LOCAL7', 184);
  10246. /**
  10247. * include PID with each message
  10248. * @link http://www.php.net/manual/en/network.constants.php
  10249. */
  10250. define ('LOG_PID', 1);
  10251. /**
  10252. * if there is an error while sending data to the system logger,
  10253. * write directly to the system console
  10254. * @link http://www.php.net/manual/en/network.constants.php
  10255. */
  10256. define ('LOG_CONS', 2);
  10257. /**
  10258. * (default) delay opening the connection until the first
  10259. * message is logged
  10260. * @link http://www.php.net/manual/en/network.constants.php
  10261. */
  10262. define ('LOG_ODELAY', 4);
  10263. /**
  10264. * open the connection to the logger immediately
  10265. * @link http://www.php.net/manual/en/network.constants.php
  10266. */
  10267. define ('LOG_NDELAY', 8);
  10268. define ('LOG_NOWAIT', 16);
  10269. /**
  10270. * print log message also to standard error
  10271. * @link http://www.php.net/manual/en/network.constants.php
  10272. */
  10273. define ('LOG_PERROR', 32);
  10274. define ('EXTR_OVERWRITE', 0);
  10275. define ('EXTR_SKIP', 1);
  10276. define ('EXTR_PREFIX_SAME', 2);
  10277. define ('EXTR_PREFIX_ALL', 3);
  10278. define ('EXTR_PREFIX_INVALID', 4);
  10279. define ('EXTR_PREFIX_IF_EXISTS', 5);
  10280. define ('EXTR_IF_EXISTS', 6);
  10281. define ('EXTR_REFS', 256);
  10282. /**
  10283. * SORT_ASC is used with
  10284. * array_multisort to sort in ascending order.
  10285. * @link http://www.php.net/manual/en/array.constants.php
  10286. */
  10287. define ('SORT_ASC', 4);
  10288. /**
  10289. * SORT_DESC is used with
  10290. * array_multisort to sort in descending order.
  10291. * @link http://www.php.net/manual/en/array.constants.php
  10292. */
  10293. define ('SORT_DESC', 3);
  10294. /**
  10295. * SORT_REGULAR is used to compare items normally.
  10296. * @link http://www.php.net/manual/en/array.constants.php
  10297. */
  10298. define ('SORT_REGULAR', 0);
  10299. /**
  10300. * SORT_NUMERIC is used to compare items numerically.
  10301. * @link http://www.php.net/manual/en/array.constants.php
  10302. */
  10303. define ('SORT_NUMERIC', 1);
  10304. /**
  10305. * SORT_STRING is used to compare items as strings.
  10306. * @link http://www.php.net/manual/en/array.constants.php
  10307. */
  10308. define ('SORT_STRING', 2);
  10309. /**
  10310. * SORT_LOCALE_STRING is used to compare items as
  10311. * strings, based on the current locale. Added in PHP 4.4.0 and 5.0.2.
  10312. * @link http://www.php.net/manual/en/array.constants.php
  10313. */
  10314. define ('SORT_LOCALE_STRING', 5);
  10315. /**
  10316. * CASE_LOWER is used with
  10317. * array_change_key_case and is used to convert array
  10318. * keys to lower case. This is also the default case for
  10319. * array_change_key_case.
  10320. * @link http://www.php.net/manual/en/array.constants.php
  10321. */
  10322. define ('CASE_LOWER', 0);
  10323. /**
  10324. * CASE_UPPER is used with
  10325. * array_change_key_case and is used to convert array
  10326. * keys to upper case.
  10327. * @link http://www.php.net/manual/en/array.constants.php
  10328. */
  10329. define ('CASE_UPPER', 1);
  10330. define ('COUNT_NORMAL', 0);
  10331. define ('COUNT_RECURSIVE', 1);
  10332. define ('ASSERT_ACTIVE', 1);
  10333. define ('ASSERT_CALLBACK', 2);
  10334. define ('ASSERT_BAIL', 3);
  10335. define ('ASSERT_WARNING', 4);
  10336. define ('ASSERT_QUIET_EVAL', 5);
  10337. /**
  10338. * Flag indicating if the stream
  10339. * used the include path.
  10340. * @link http://www.php.net/manual/en/stream.constants.php
  10341. */
  10342. define ('STREAM_USE_PATH', 1);
  10343. define ('STREAM_IGNORE_URL', 2);
  10344. define ('STREAM_ENFORCE_SAFE_MODE', 4);
  10345. /**
  10346. * Flag indicating if the wrapper
  10347. * is responsible for raising errors using trigger_error
  10348. * during opening of the stream. If this flag is not set, you
  10349. * should not raise any errors.
  10350. * @link http://www.php.net/manual/en/stream.constants.php
  10351. */
  10352. define ('STREAM_REPORT_ERRORS', 8);
  10353. /**
  10354. * This flag is useful when your extension really must be able to randomly
  10355. * seek around in a stream. Some streams may not be seekable in their
  10356. * native form, so this flag asks the streams API to check to see if the
  10357. * stream does support seeking. If it does not, it will copy the stream
  10358. * into temporary storage (which may be a temporary file or a memory
  10359. * stream) which does support seeking.
  10360. * Please note that this flag is not useful when you want to seek the
  10361. * stream and write to it, because the stream you are accessing might
  10362. * not be bound to the actual resource you requested.
  10363. * If the requested resource is network based, this flag will cause the
  10364. * opener to block until the whole contents have been downloaded.
  10365. * @link http://www.php.net/manual/en/internals2.ze1.streams.constants.php
  10366. */
  10367. define ('STREAM_MUST_SEEK', 16);
  10368. define ('STREAM_URL_STAT_LINK', 1);
  10369. define ('STREAM_URL_STAT_QUIET', 2);
  10370. define ('STREAM_MKDIR_RECURSIVE', 1);
  10371. define ('STREAM_IS_URL', 1);
  10372. /**
  10373. * Image type constant used by the
  10374. * image_type_to_mime_type and
  10375. * image_type_to_extension functions.
  10376. * @link http://www.php.net/manual/en/image.constants.php
  10377. */
  10378. define ('IMAGETYPE_GIF', 1);
  10379. /**
  10380. * Image type constant used by the
  10381. * image_type_to_mime_type and
  10382. * image_type_to_extension functions.
  10383. * @link http://www.php.net/manual/en/image.constants.php
  10384. */
  10385. define ('IMAGETYPE_JPEG', 2);
  10386. /**
  10387. * Image type constant used by the
  10388. * image_type_to_mime_type and
  10389. * image_type_to_extension functions.
  10390. * @link http://www.php.net/manual/en/image.constants.php
  10391. */
  10392. define ('IMAGETYPE_PNG', 3);
  10393. /**
  10394. * Image type constant used by the
  10395. * image_type_to_mime_type and
  10396. * image_type_to_extension functions.
  10397. * @link http://www.php.net/manual/en/image.constants.php
  10398. */
  10399. define ('IMAGETYPE_SWF', 4);
  10400. /**
  10401. * Image type constant used by the
  10402. * image_type_to_mime_type and
  10403. * image_type_to_extension functions.
  10404. * @link http://www.php.net/manual/en/image.constants.php
  10405. */
  10406. define ('IMAGETYPE_PSD', 5);
  10407. /**
  10408. * Image type constant used by the
  10409. * image_type_to_mime_type and
  10410. * image_type_to_extension functions.
  10411. * @link http://www.php.net/manual/en/image.constants.php
  10412. */
  10413. define ('IMAGETYPE_BMP', 6);
  10414. /**
  10415. * Image type constant used by the
  10416. * image_type_to_mime_type and
  10417. * image_type_to_extension functions.
  10418. * @link http://www.php.net/manual/en/image.constants.php
  10419. */
  10420. define ('IMAGETYPE_TIFF_II', 7);
  10421. /**
  10422. * Image type constant used by the
  10423. * image_type_to_mime_type and
  10424. * image_type_to_extension functions.
  10425. * @link http://www.php.net/manual/en/image.constants.php
  10426. */
  10427. define ('IMAGETYPE_TIFF_MM', 8);
  10428. /**
  10429. * Image type constant used by the
  10430. * image_type_to_mime_type and
  10431. * image_type_to_extension functions.
  10432. * @link http://www.php.net/manual/en/image.constants.php
  10433. */
  10434. define ('IMAGETYPE_JPC', 9);
  10435. /**
  10436. * Image type constant used by the
  10437. * image_type_to_mime_type and
  10438. * image_type_to_extension functions.
  10439. * @link http://www.php.net/manual/en/image.constants.php
  10440. */
  10441. define ('IMAGETYPE_JP2', 10);
  10442. /**
  10443. * Image type constant used by the
  10444. * image_type_to_mime_type and
  10445. * image_type_to_extension functions.
  10446. * @link http://www.php.net/manual/en/image.constants.php
  10447. */
  10448. define ('IMAGETYPE_JPX', 11);
  10449. /**
  10450. * Image type constant used by the
  10451. * image_type_to_mime_type and
  10452. * image_type_to_extension functions.
  10453. * @link http://www.php.net/manual/en/image.constants.php
  10454. */
  10455. define ('IMAGETYPE_JB2', 12);
  10456. /**
  10457. * Image type constant used by the
  10458. * image_type_to_mime_type and
  10459. * image_type_to_extension functions.
  10460. * @link http://www.php.net/manual/en/image.constants.php
  10461. */
  10462. define ('IMAGETYPE_SWC', 13);
  10463. /**
  10464. * Image type constant used by the
  10465. * image_type_to_mime_type and
  10466. * image_type_to_extension functions.
  10467. * @link http://www.php.net/manual/en/image.constants.php
  10468. */
  10469. define ('IMAGETYPE_IFF', 14);
  10470. /**
  10471. * Image type constant used by the
  10472. * image_type_to_mime_type and
  10473. * image_type_to_extension functions.
  10474. * @link http://www.php.net/manual/en/image.constants.php
  10475. */
  10476. define ('IMAGETYPE_WBMP', 15);
  10477. /**
  10478. * Image type constant used by the
  10479. * image_type_to_mime_type and
  10480. * image_type_to_extension functions.
  10481. * @link http://www.php.net/manual/en/image.constants.php
  10482. */
  10483. define ('IMAGETYPE_JPEG2000', 9);
  10484. /**
  10485. * Image type constant used by the
  10486. * image_type_to_mime_type and
  10487. * image_type_to_extension functions.
  10488. * @link http://www.php.net/manual/en/image.constants.php
  10489. */
  10490. define ('IMAGETYPE_XBM', 16);
  10491. /**
  10492. * IPv4 Address Resource
  10493. * @link http://www.php.net/manual/en/network.constants.php
  10494. */
  10495. define ('DNS_A', 1);
  10496. /**
  10497. * Authoritative Name Server Resource
  10498. * @link http://www.php.net/manual/en/network.constants.php
  10499. */
  10500. define ('DNS_NS', 2);
  10501. /**
  10502. * Alias (Canonical Name) Resource
  10503. * @link http://www.php.net/manual/en/network.constants.php
  10504. */
  10505. define ('DNS_CNAME', 16);
  10506. /**
  10507. * Start of Authority Resource
  10508. * @link http://www.php.net/manual/en/network.constants.php
  10509. */
  10510. define ('DNS_SOA', 32);
  10511. /**
  10512. * Pointer Resource
  10513. * @link http://www.php.net/manual/en/network.constants.php
  10514. */
  10515. define ('DNS_PTR', 2048);
  10516. /**
  10517. * Host Info Resource (See IANA's
  10518. * Operating System Names
  10519. * for the meaning of these values)
  10520. * @link http://www.php.net/manual/en/network.constants.php
  10521. */
  10522. define ('DNS_HINFO', 4096);
  10523. /**
  10524. * Mail Exchanger Resource
  10525. * @link http://www.php.net/manual/en/network.constants.php
  10526. */
  10527. define ('DNS_MX', 16384);
  10528. /**
  10529. * Text Resource
  10530. * @link http://www.php.net/manual/en/network.constants.php
  10531. */
  10532. define ('DNS_TXT', 32768);
  10533. define ('DNS_SRV', 33554432);
  10534. define ('DNS_NAPTR', 67108864);
  10535. /**
  10536. * IPv6 Address Resource
  10537. * @link http://www.php.net/manual/en/network.constants.php
  10538. */
  10539. define ('DNS_AAAA', 134217728);
  10540. define ('DNS_A6', 16777216);
  10541. /**
  10542. * Any Resource Record. On most systems
  10543. * this returns all resource records, however
  10544. * it should not be counted upon for critical
  10545. * uses. Try DNS_ALL instead.
  10546. * @link http://www.php.net/manual/en/network.constants.php
  10547. */
  10548. define ('DNS_ANY', 268435456);
  10549. /**
  10550. * Iteratively query the name server for
  10551. * each available record type.
  10552. * @link http://www.php.net/manual/en/network.constants.php
  10553. */
  10554. define ('DNS_ALL', 251713587);
  10555. // End of standard v.5.2.13
  10556. ?>