PageRenderTime 47ms CodeModel.GetById 27ms RepoModel.GetById 0ms app.codeStats 1ms

/phpstubs/phpruntime/standard.php

https://github.com/jkonieczny/netbeans-test
PHP | 11644 lines | 833 code | 653 blank | 10158 comment | 0 complexity | a3811c161293aa1c265a59a46fc91804 MD5 | raw file
  1. <?php
  2. // Start of standard v.5.3.2-0.dotdeb.1
  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. * (PHP 4 &gt;= 4.0.4, PHP 5)<br/>
  25. * Returns the value of a constant
  26. * @link http://php.net/manual/en/function.constant.php
  27. * @param string $name <p>
  28. * The constant name.
  29. * </p>
  30. * @return mixed the value of the constant, or &null; if the constant is not
  31. * defined.
  32. */
  33. function constant ($name) {}
  34. /**
  35. * (PHP 4, PHP 5)<br/>
  36. * Convert binary data into hexadecimal representation
  37. * @link http://php.net/manual/en/function.bin2hex.php
  38. * @param string $str <p>
  39. * A character.
  40. * </p>
  41. * @return string the hexadecimal representation of the given string.
  42. */
  43. function bin2hex ($str) {}
  44. /**
  45. * (PHP 4, PHP 5)<br/>
  46. * Delay execution
  47. * @link http://php.net/manual/en/function.sleep.php
  48. * @param int $seconds <p>
  49. * Halt time in seconds.
  50. * </p>
  51. * @return int zero on success, or false on errors. If the call was interrupted
  52. * by a signal, sleep returns the number of seconds left
  53. * to sleep.
  54. */
  55. function sleep ($seconds) {}
  56. /**
  57. * (PHP 4, PHP 5)<br/>
  58. * Delay execution in microseconds
  59. * @link http://php.net/manual/en/function.usleep.php
  60. * @param int $micro_seconds <p>
  61. * Halt time in micro seconds. A micro second is one millionth of a
  62. * second.
  63. * </p>
  64. * @return void
  65. */
  66. function usleep ($micro_seconds) {}
  67. /**
  68. * (PHP 5)<br/>
  69. * Delay for a number of seconds and nanoseconds
  70. * @link http://php.net/manual/en/function.time-nanosleep.php
  71. * @param int $seconds <p>
  72. * Must be a positive integer.
  73. * </p>
  74. * @param int $nanoseconds <p>
  75. * Must be a positive integer less than 1 billion.
  76. * </p>
  77. * @return mixed Returns true on success or false on failure.
  78. * </p>
  79. * <p>
  80. * If the delay was interrupted by a signal, an associative array will be
  81. * returned with the components:
  82. * seconds - number of seconds remaining in
  83. * the delay
  84. * nanoseconds - number of nanoseconds
  85. * remaining in the delay
  86. */
  87. function time_nanosleep ($seconds, $nanoseconds) {}
  88. /**
  89. * (PHP 5 &gt;= 5.1.0)<br/>
  90. * Make the script sleep until the specified time
  91. * @link http://php.net/manual/en/function.time-sleep-until.php
  92. * @param float $timestamp <p>
  93. * The timestamp when the script should wake.
  94. * </p>
  95. * @return bool Returns true on success or false on failure.
  96. */
  97. function time_sleep_until ($timestamp) {}
  98. /**
  99. * (PHP 5 &gt;= 5.1.0)<br/>
  100. * Parse a time/date generated with <function>strftime</function>
  101. * @link http://php.net/manual/en/function.strptime.php
  102. * @param string $date <p>
  103. * The string to parse (e.g. returned from strftime)
  104. * </p>
  105. * @param string $format <p>
  106. * The format used in date (e.g. the same as
  107. * used in strftime).
  108. * </p>
  109. * <p>
  110. * For more information about the format options, read the
  111. * strftime page.
  112. * </p>
  113. * @return array an array&return.falseforfailure;.
  114. * </p>
  115. * <p>
  116. * <table>
  117. * The following parameters are returned in the array
  118. * <tr valign="top">
  119. * <td>parameters</td>
  120. * <td>Description</td>
  121. * </tr>
  122. * <tr valign="top">
  123. * <td>"tm_sec"</td>
  124. * <td>Seconds after the minute (0-61)</td>
  125. * </tr>
  126. * <tr valign="top">
  127. * <td>"tm_min"</td>
  128. * <td>Minutes after the hour (0-59)</td>
  129. * </tr>
  130. * <tr valign="top">
  131. * <td>"tm_hour"</td>
  132. * <td>Hour since midnight (0-23)</td>
  133. * </tr>
  134. * <tr valign="top">
  135. * <td>"tm_mday"</td>
  136. * <td>Day of the month (1-31)</td>
  137. * </tr>
  138. * <tr valign="top">
  139. * <td>"tm_mon"</td>
  140. * <td>Months since January (0-11)</td>
  141. * </tr>
  142. * <tr valign="top">
  143. * <td>"tm_year"</td>
  144. * <td>Years since 1900</td>
  145. * </tr>
  146. * <tr valign="top">
  147. * <td>"tm_wday"</td>
  148. * <td>Days since Sunday (0-6)</td>
  149. * </tr>
  150. * <tr valign="top">
  151. * <td>"tm_yday"</td>
  152. * <td>Days since January 1 (0-365)</td>
  153. * </tr>
  154. * <tr valign="top">
  155. * <td>"unparsed"</td>
  156. * <td>the date part which was not
  157. * recognized using the specified format</td>
  158. * </tr>
  159. * </table>
  160. */
  161. function strptime ($date, $format) {}
  162. /**
  163. * (PHP 4, PHP 5)<br/>
  164. * Flush the output buffer
  165. * @link http://php.net/manual/en/function.flush.php
  166. * @return void
  167. */
  168. function flush () {}
  169. /**
  170. * (PHP 4 &gt;= 4.0.2, PHP 5)<br/>
  171. * Wraps a string to a given number of characters
  172. * @link http://php.net/manual/en/function.wordwrap.php
  173. * @param string $str <p>
  174. * The input string.
  175. * </p>
  176. * @param int $width [optional] <p>
  177. * The column width.
  178. * </p>
  179. * @param string $break [optional] <p>
  180. * The line is broken using the optional
  181. * break parameter.
  182. * </p>
  183. * @param bool $cut [optional] <p>
  184. * If the cut is set to true, the string is
  185. * always wrapped at or before the specified width. So if you have
  186. * a word that is larger than the given width, it is broken apart.
  187. * (See second example).
  188. * </p>
  189. * @return string the given string wrapped at the specified column.
  190. */
  191. function wordwrap ($str, $width = null, $break = null, $cut = null) {}
  192. /**
  193. * (PHP 4, PHP 5)<br/>
  194. * Convert special characters to HTML entities
  195. * @link http://php.net/manual/en/function.htmlspecialchars.php
  196. * @param string $string <p>
  197. * The string being converted.
  198. * </p>
  199. * @param int $quote_style [optional] <p>
  200. * The optional second argument, quote_style, tells
  201. * the function what to do with single and double quote characters.
  202. * The default mode, ENT_COMPAT, is the backwards compatible mode
  203. * which only translates the double-quote character and leaves the
  204. * single-quote untranslated. If ENT_QUOTES is set, both single and
  205. * double quotes are translated and if ENT_NOQUOTES is set neither
  206. * single nor double quotes are translated.
  207. * </p>
  208. * @param string $charset [optional] <p>
  209. * Defines character set used in conversion.
  210. * The default character set is ISO-8859-1.
  211. * </p>
  212. * <p>
  213. * For the purposes of this function, the charsets
  214. * ISO-8859-1, ISO-8859-15,
  215. * UTF-8, cp866,
  216. * cp1251, cp1252, and
  217. * KOI8-R are effectively equivalent, as the
  218. * characters affected by htmlspecialchars
  219. * occupy the same positions in all of these charsets.
  220. * </p>
  221. * &reference.strings.charsets;
  222. * @param bool $double_encode [optional] <p>
  223. * When double_encode is turned off PHP will not
  224. * encode existing html entities, the default is to convert everything.
  225. * </p>
  226. * @return string The converted string.
  227. */
  228. function htmlspecialchars ($string, $quote_style = null, $charset = null, $double_encode = null) {}
  229. /**
  230. * (PHP 4, PHP 5)<br/>
  231. * Convert all applicable characters to HTML entities
  232. * @link http://php.net/manual/en/function.htmlentities.php
  233. * @param string $string <p>
  234. * The input string.
  235. * </p>
  236. * @param int $quote_style [optional] <p>
  237. * Like htmlspecialchars, the optional second
  238. * quote_style parameter lets you define what will
  239. * be done with 'single' and "double" quotes. It takes on one of three
  240. * constants with the default being ENT_COMPAT:
  241. * <table>
  242. * Available quote_style constants
  243. * <tr valign="top">
  244. * <td>Constant Name</td>
  245. * <td>Description</td>
  246. * </tr>
  247. * <tr valign="top">
  248. * <td>ENT_COMPAT</td>
  249. * <td>Will convert double-quotes and leave single-quotes alone.</td>
  250. * </tr>
  251. * <tr valign="top">
  252. * <td>ENT_QUOTES</td>
  253. * <td>Will convert both double and single quotes.</td>
  254. * </tr>
  255. * <tr valign="top">
  256. * <td>ENT_NOQUOTES</td>
  257. * <td>Will leave both double and single quotes unconverted.</td>
  258. * </tr>
  259. * </table>
  260. * </p>
  261. * @param string $charset [optional] <p>
  262. * Like htmlspecialchars, it takes an optional
  263. * third argument charset which defines character
  264. * set used in conversion.
  265. * Presently, the ISO-8859-1 character set is used as the default.
  266. * </p>
  267. * &reference.strings.charsets;
  268. * @param bool $double_encode [optional] <p>
  269. * When double_encode is turned off PHP will not
  270. * encode existing html entities. The default is to convert everything.
  271. * </p>
  272. * @return string the encoded string.
  273. */
  274. function htmlentities ($string, $quote_style = null, $charset = null, $double_encode = null) {}
  275. /**
  276. * (PHP 4 &gt;= 4.3.0, PHP 5)<br/>
  277. * Convert all HTML entities to their applicable characters
  278. * @link http://php.net/manual/en/function.html-entity-decode.php
  279. * @param string $string <p>
  280. * The input string.
  281. * </p>
  282. * @param int $quote_style [optional] <p>
  283. * The optional second quote_style parameter lets
  284. * you define what will be done with 'single' and "double" quotes. It takes
  285. * on one of three constants with the default being
  286. * ENT_COMPAT:
  287. * <table>
  288. * Available quote_style constants
  289. * <tr valign="top">
  290. * <td>Constant Name</td>
  291. * <td>Description</td>
  292. * </tr>
  293. * <tr valign="top">
  294. * <td>ENT_COMPAT</td>
  295. * <td>Will convert double-quotes and leave single-quotes alone.</td>
  296. * </tr>
  297. * <tr valign="top">
  298. * <td>ENT_QUOTES</td>
  299. * <td>Will convert both double and single quotes.</td>
  300. * </tr>
  301. * <tr valign="top">
  302. * <td>ENT_NOQUOTES</td>
  303. * <td>Will leave both double and single quotes unconverted.</td>
  304. * </tr>
  305. * </table>
  306. * </p>
  307. * @param string $charset [optional] <p>
  308. * The ISO-8859-1 character set is used as default for the optional third
  309. * charset. This defines the character set used in
  310. * conversion.
  311. * </p>
  312. * &reference.strings.charsets;
  313. * @return string the decoded string.
  314. */
  315. function html_entity_decode ($string, $quote_style = null, $charset = null) {}
  316. /**
  317. * (PHP 5 &gt;= 5.1.0)<br/>
  318. * Convert special HTML entities back to characters
  319. * @link http://php.net/manual/en/function.htmlspecialchars-decode.php
  320. * @param string $string <p>
  321. * The string to decode
  322. * </p>
  323. * @param int $quote_style [optional] <p>
  324. * The quote style. One of the following constants:
  325. * <table>
  326. * quote_style constants
  327. * <tr valign="top">
  328. * <td>Constant Name</td>
  329. * <td>Description</td>
  330. * </tr>
  331. * <tr valign="top">
  332. * <td>ENT_COMPAT</td>
  333. * <td>Will convert double-quotes and leave single-quotes alone
  334. * (default)</td>
  335. * </tr>
  336. * <tr valign="top">
  337. * <td>ENT_QUOTES</td>
  338. * <td>Will convert both double and single quotes</td>
  339. * </tr>
  340. * <tr valign="top">
  341. * <td>ENT_NOQUOTES</td>
  342. * <td>Will leave both double and single quotes unconverted</td>
  343. * </tr>
  344. * </table>
  345. * </p>
  346. * @return string the decoded string.
  347. */
  348. function htmlspecialchars_decode ($string, $quote_style = null) {}
  349. /**
  350. * (PHP 4, PHP 5)<br/>
  351. * Returns the translation table used by <function>htmlspecialchars</function> and <function>htmlentities</function>
  352. * @link http://php.net/manual/en/function.get-html-translation-table.php
  353. * @param int $table [optional] <p>
  354. * There are two new constants (HTML_ENTITIES,
  355. * HTML_SPECIALCHARS) that allow you to specify the
  356. * table you want.
  357. * </p>
  358. * @param int $quote_style [optional] <p>
  359. * Like the htmlspecialchars and
  360. * htmlentities functions you can optionally specify
  361. * the quote_style you are working with.
  362. * See the description
  363. * of these modes in htmlspecialchars.
  364. * </p>
  365. * @return array the translation table as an array.
  366. */
  367. function get_html_translation_table ($table = null, $quote_style = null) {}
  368. /**
  369. * (PHP 4 &gt;= 4.3.0, PHP 5)<br/>
  370. * Calculate the sha1 hash of a string
  371. * @link http://php.net/manual/en/function.sha1.php
  372. * @param string $str <p>
  373. * The input string.
  374. * </p>
  375. * @param bool $raw_output [optional] <p>
  376. * If the optional raw_output is set to true,
  377. * then the sha1 digest is instead returned in raw binary format with a
  378. * length of 20, otherwise the returned value is a 40-character
  379. * hexadecimal number.
  380. * </p>
  381. * @return string the sha1 hash as a string.
  382. */
  383. function sha1 ($str, $raw_output = null) {}
  384. /**
  385. * (PHP 4 &gt;= 4.3.0, PHP 5)<br/>
  386. * Calculate the sha1 hash of a file
  387. * @link http://php.net/manual/en/function.sha1-file.php
  388. * @param string $filename <p>
  389. * The filename
  390. * </p>
  391. * @param bool $raw_output [optional] <p>
  392. * When true, returns the digest in raw binary format with a length of
  393. * 20.
  394. * </p>
  395. * @return string a string on success, false otherwise.
  396. */
  397. function sha1_file ($filename, $raw_output = null) {}
  398. /**
  399. * (PHP 4, PHP 5)<br/>
  400. * Calculate the md5 hash of a string
  401. * @link http://php.net/manual/en/function.md5.php
  402. * @param string $str <p>
  403. * The string.
  404. * </p>
  405. * @param bool $raw_output [optional] <p>
  406. * If the optional raw_output is set to true,
  407. * then the md5 digest is instead returned in raw binary format with a
  408. * length of 16.
  409. * </p>
  410. * @return string the hash as a 32-character hexadecimal number.
  411. */
  412. function md5 ($str, $raw_output = null) {}
  413. /**
  414. * (PHP 4 &gt;= 4.2.0, PHP 5)<br/>
  415. * Calculates the md5 hash of a given file
  416. * @link http://php.net/manual/en/function.md5-file.php
  417. * @param string $filename <p>
  418. * The filename
  419. * </p>
  420. * @param bool $raw_output [optional] <p>
  421. * When true, returns the digest in raw binary format with a length of
  422. * 16.
  423. * </p>
  424. * @return string a string on success, false otherwise.
  425. */
  426. function md5_file ($filename, $raw_output = null) {}
  427. /**
  428. * (PHP 4 &gt;= 4.0.1, PHP 5)<br/>
  429. * Calculates the crc32 polynomial of a string
  430. * @link http://php.net/manual/en/function.crc32.php
  431. * @param string $str <p>
  432. * The data.
  433. * </p>
  434. * @return int the crc32 checksum of str as an integer.
  435. */
  436. function crc32 ($str) {}
  437. /**
  438. * (PHP 4, PHP 5)<br/>
  439. * Parse a binary IPTC block into single tags.
  440. * @link http://php.net/manual/en/function.iptcparse.php
  441. * @param string $iptcblock <p>
  442. * A binary IPTC block.
  443. * </p>
  444. * @return array an array using the tagmarker as an index and the value as the
  445. * value. It returns false on error or if no IPTC data was found.
  446. */
  447. function iptcparse ($iptcblock) {}
  448. /**
  449. * (PHP 4, PHP 5)<br/>
  450. * Embeds binary IPTC data into a JPEG image
  451. * @link http://php.net/manual/en/function.iptcembed.php
  452. * @param string $iptcdata <p>
  453. * The data to be written.
  454. * </p>
  455. * @param string $jpeg_file_name <p>
  456. * Path to the JPEG image.
  457. * </p>
  458. * @param int $spool [optional] <p>
  459. * Spool flag. If the spool flag is over 2 then the JPEG will be
  460. * returned as a string.
  461. * </p>
  462. * @return mixed If success and spool flag is lower than 2 then the JPEG will not be
  463. * returned as a string, false on errors.
  464. */
  465. function iptcembed ($iptcdata, $jpeg_file_name, $spool = null) {}
  466. /**
  467. * (PHP 4, PHP 5)<br/>
  468. * Get the size of an image
  469. * @link http://php.net/manual/en/function.getimagesize.php
  470. * @param string $filename <p>
  471. * This parameter specifies the file you wish to retrieve information
  472. * about. It can reference a local file or (configuration permitting) a
  473. * remote file using one of the supported streams.
  474. * </p>
  475. * @param array $imageinfo [optional] <p>
  476. * This optional parameter allows you to extract some extended
  477. * information from the image file. Currently, this will return the
  478. * different JPG APP markers as an associative array.
  479. * Some programs use these APP markers to embed text information in
  480. * images. A very common one is to embed
  481. * IPTC information in the APP13 marker.
  482. * You can use the iptcparse function to parse the
  483. * binary APP13 marker into something readable.
  484. * </p>
  485. * @return array an array with 7 elements.
  486. * </p>
  487. * <p>
  488. * Index 0 and 1 contains respectively the width and the height of the image.
  489. * </p>
  490. * <p>
  491. * Some formats may contain no image or may contain multiple images. In these
  492. * cases, getimagesize might not be able to properly
  493. * determine the image size. getimagesize will return
  494. * zero for width and height in these cases.
  495. * </p>
  496. * <p>
  497. * Index 2 is one of the IMAGETYPE_XXX constants indicating
  498. * the type of the image.
  499. * </p>
  500. * <p>
  501. * Index 3 is a text string with the correct
  502. * height="yyy" width="xxx" string that can be used
  503. * directly in an IMG tag.
  504. * </p>
  505. * <p>
  506. * mime is the correspondant MIME type of the image.
  507. * This information can be used to deliver images with correct the HTTP
  508. * Content-type header:
  509. * getimagesize and MIME types
  510. * ]]>
  511. * </p>
  512. * <p>
  513. * channels will be 3 for RGB pictures and 4 for CMYK
  514. * pictures.
  515. * </p>
  516. * <p>
  517. * bits is the number of bits for each color.
  518. * </p>
  519. * <p>
  520. * For some image types, the presence of channels and
  521. * bits values can be a bit
  522. * confusing. As an example, GIF always uses 3 channels
  523. * per pixel, but the number of bits per pixel cannot be calculated for an
  524. * animated GIF with a global color table.
  525. * </p>
  526. * <p>
  527. * On failure, false is returned.
  528. */
  529. function getimagesize ($filename, &$imageinfo = nullarray ) {}
  530. /**
  531. * (PHP 4 &gt;= 4.3.0, PHP 5)<br/>
  532. * Get Mime-Type for image-type returned by getimagesize,
  533. exif_read_data, exif_thumbnail, exif_imagetype
  534. * @link http://php.net/manual/en/function.image-type-to-mime-type.php
  535. * @param int $imagetype <p>
  536. * One of the IMAGETYPE_XXX constants.
  537. * </p>
  538. * @return string The returned values are as follows
  539. * <table>
  540. * Returned values Constants
  541. * <tr valign="top">
  542. * <td>imagetype</td>
  543. * <td>Returned value</td>
  544. * </tr>
  545. * <tr valign="top">
  546. * <td>IMAGETYPE_GIF</td>
  547. * <td>image/gif</td>
  548. * </tr>
  549. * <tr valign="top">
  550. * <td>IMAGETYPE_JPEG</td>
  551. * <td>image/jpeg</td>
  552. * </tr>
  553. * <tr valign="top">
  554. * <td>IMAGETYPE_PNG</td>
  555. * <td>image/png</td>
  556. * </tr>
  557. * <tr valign="top">
  558. * <td>IMAGETYPE_SWF</td>
  559. * <td>application/x-shockwave-flash</td>
  560. * </tr>
  561. * <tr valign="top">
  562. * <td>IMAGETYPE_PSD</td>
  563. * <td>image/psd</td>
  564. * </tr>
  565. * <tr valign="top">
  566. * <td>IMAGETYPE_BMP</td>
  567. * <td>image/bmp</td>
  568. * </tr>
  569. * <tr valign="top">
  570. * <td>IMAGETYPE_TIFF_II (intel byte order)</td>
  571. * <td>image/tiff</td>
  572. * </tr>
  573. * <tr valign="top">
  574. * <td>
  575. * IMAGETYPE_TIFF_MM (motorola byte order)
  576. * </td>
  577. * <td>image/tiff</td>
  578. * </tr>
  579. * <tr valign="top">
  580. * <td>IMAGETYPE_JPC</td>
  581. * <td>application/octet-stream</td>
  582. * </tr>
  583. * <tr valign="top">
  584. * <td>IMAGETYPE_JP2</td>
  585. * <td>image/jp2</td>
  586. * </tr>
  587. * <tr valign="top">
  588. * <td>IMAGETYPE_JPX</td>
  589. * <td>application/octet-stream</td>
  590. * </tr>
  591. * <tr valign="top">
  592. * <td>IMAGETYPE_JB2</td>
  593. * <td>application/octet-stream</td>
  594. * </tr>
  595. * <tr valign="top">
  596. * <td>IMAGETYPE_SWC</td>
  597. * <td>application/x-shockwave-flash</td>
  598. * </tr>
  599. * <tr valign="top">
  600. * <td>IMAGETYPE_IFF</td>
  601. * <td>image/iff</td>
  602. * </tr>
  603. * <tr valign="top">
  604. * <td>IMAGETYPE_WBMP</td>
  605. * <td>image/vnd.wap.wbmp</td>
  606. * </tr>
  607. * <tr valign="top">
  608. * <td>IMAGETYPE_XBM</td>
  609. * <td>image/xbm</td>
  610. * </tr>
  611. * <tr valign="top">
  612. * <td>IMAGETYPE_ICO</td>
  613. * <td>image/vnd.microsoft.icon</td>
  614. * </tr>
  615. * </table>
  616. */
  617. function image_type_to_mime_type ($imagetype) {}
  618. /**
  619. * (PHP 5)<br/>
  620. * Get file extension for image type
  621. * @link http://php.net/manual/en/function.image-type-to-extension.php
  622. * @param int $imagetype <p>
  623. * One of the IMAGETYPE_XXX constant.
  624. * </p>
  625. * @param bool $include_dot [optional] <p>
  626. * Whether to prepend a dot to the extension or not. Default to true.
  627. * </p>
  628. * @return string A string with the extension corresponding to the given image type.
  629. */
  630. function image_type_to_extension ($imagetype, $include_dot = null) {}
  631. /**
  632. * (PHP 4, PHP 5)<br/>
  633. * Outputs lots of PHP information
  634. * @link http://php.net/manual/en/function.phpinfo.php
  635. * @param int $what [optional] <p>
  636. * The output may be customized by passing one or more of the
  637. * following constants bitwise values summed
  638. * together in the optional what parameter.
  639. * One can also combine the respective constants or bitwise values
  640. * together with the or operator.
  641. * </p>
  642. * <p>
  643. * <table>
  644. * phpinfo options
  645. * <tr valign="top">
  646. * <td>Name (constant)</td>
  647. * <td>Value</td>
  648. * <td>Description</td>
  649. * </tr>
  650. * <tr valign="top">
  651. * <td>INFO_GENERAL</td>
  652. * <td>1</td>
  653. * <td>
  654. * The configuration line, &php.ini; location, build date, Web
  655. * Server, System and more.
  656. * </td>
  657. * </tr>
  658. * <tr valign="top">
  659. * <td>INFO_CREDITS</td>
  660. * <td>2</td>
  661. * <td>
  662. * PHP Credits. See also phpcredits.
  663. * </td>
  664. * </tr>
  665. * <tr valign="top">
  666. * <td>INFO_CONFIGURATION</td>
  667. * <td>4</td>
  668. * <td>
  669. * Current Local and Master values for PHP directives. See
  670. * also ini_get.
  671. * </td>
  672. * </tr>
  673. * <tr valign="top">
  674. * <td>INFO_MODULES</td>
  675. * <td>8</td>
  676. * <td>
  677. * Loaded modules and their respective settings. See also
  678. * get_loaded_extensions.
  679. * </td>
  680. * </tr>
  681. * <tr valign="top">
  682. * <td>INFO_ENVIRONMENT</td>
  683. * <td>16</td>
  684. * <td>
  685. * Environment Variable information that's also available in
  686. * $_ENV.
  687. * </td>
  688. * </tr>
  689. * <tr valign="top">
  690. * <td>INFO_VARIABLES</td>
  691. * <td>32</td>
  692. * <td>
  693. * Shows all
  694. * predefined variables from EGPCS (Environment, GET,
  695. * POST, Cookie, Server).
  696. * </td>
  697. * </tr>
  698. * <tr valign="top">
  699. * <td>INFO_LICENSE</td>
  700. * <td>64</td>
  701. * <td>
  702. * PHP License information. See also the license FAQ.
  703. * </td>
  704. * </tr>
  705. * <tr valign="top">
  706. * <td>INFO_ALL</td>
  707. * <td>-1</td>
  708. * <td>
  709. * Shows all of the above.
  710. * </td>
  711. * </tr>
  712. * </table>
  713. * </p>
  714. * @return bool Returns true on success or false on failure.
  715. */
  716. function phpinfo ($what = null) {}
  717. /**
  718. * (PHP 4, PHP 5)<br/>
  719. * Gets the current PHP version
  720. * @link http://php.net/manual/en/function.phpversion.php
  721. * @param string $extension [optional] <p>
  722. * An optional extension name.
  723. * </p>
  724. * @return string If the optional extension parameter is
  725. * specified, phpversion returns the version of that
  726. * extension, or false if there is no version information associated or
  727. * the extension isn't enabled.
  728. */
  729. function phpversion ($extension = null) {}
  730. /**
  731. * (PHP 4, PHP 5)<br/>
  732. * Prints out the credits for PHP
  733. * @link http://php.net/manual/en/function.phpcredits.php
  734. * @param int $flag [optional] <p>
  735. * To generate a custom credits page, you may want to use the
  736. * flag parameter.
  737. * </p>
  738. * <p>
  739. * <table>
  740. * Pre-defined phpcredits flags
  741. * <tr valign="top">
  742. * <td>name</td>
  743. * <td>description</td>
  744. * </tr>
  745. * <tr valign="top">
  746. * <td>CREDITS_ALL</td>
  747. * <td>
  748. * All the credits, equivalent to using: CREDITS_DOCS +
  749. * CREDITS_GENERAL + CREDITS_GROUP +
  750. * CREDITS_MODULES + CREDITS_FULLPAGE.
  751. * It generates a complete stand-alone HTML page with the appropriate tags.
  752. * </td>
  753. * </tr>
  754. * <tr valign="top">
  755. * <td>CREDITS_DOCS</td>
  756. * <td>The credits for the documentation team</td>
  757. * </tr>
  758. * <tr valign="top">
  759. * <td>CREDITS_FULLPAGE</td>
  760. * <td>
  761. * Usually used in combination with the other flags. Indicates
  762. * that a complete stand-alone HTML page needs to be
  763. * printed including the information indicated by the other
  764. * flags.
  765. * </td>
  766. * </tr>
  767. * <tr valign="top">
  768. * <td>CREDITS_GENERAL</td>
  769. * <td>
  770. * General credits: Language design and concept, PHP 4.0
  771. * authors and SAPI module.
  772. * </td>
  773. * </tr>
  774. * <tr valign="top">
  775. * <td>CREDITS_GROUP</td>
  776. * <td>A list of the core developers</td>
  777. * </tr>
  778. * <tr valign="top">
  779. * <td>CREDITS_MODULES</td>
  780. * <td>
  781. * A list of the extension modules for PHP, and their authors
  782. * </td>
  783. * </tr>
  784. * <tr valign="top">
  785. * <td>CREDITS_SAPI</td>
  786. * <td>
  787. * A list of the server API modules for PHP, and their authors
  788. * </td>
  789. * </tr>
  790. * </table>
  791. * </p>
  792. * @return bool Returns true on success or false on failure.
  793. */
  794. function phpcredits ($flag = null) {}
  795. /**
  796. * (PHP 4, PHP 5)<br/>
  797. * Gets the logo guid
  798. * @link http://php.net/manual/en/function.php-logo-guid.php
  799. * @return string PHPE9568F34-D428-11d2-A769-00AA001ACF42.
  800. */
  801. function php_logo_guid () {}
  802. function php_real_logo_guid () {}
  803. function php_egg_logo_guid () {}
  804. /**
  805. * (PHP 4, PHP 5)<br/>
  806. * Gets the Zend guid
  807. * @link http://php.net/manual/en/function.zend-logo-guid.php
  808. * @return string PHPE9568F35-D428-11d2-A769-00AA001ACF42.
  809. */
  810. function zend_logo_guid () {}
  811. /**
  812. * (PHP 4 &gt;= 4.0.1, PHP 5)<br/>
  813. * Returns the type of interface between web server and PHP
  814. * @link http://php.net/manual/en/function.php-sapi-name.php
  815. * @return string the interface type, as a lowercase string.
  816. * </p>
  817. * <p>
  818. * Although not exhaustive, the possible return values include
  819. * aolserver, apache,
  820. * apache2filter, apache2handler,
  821. * caudium, cgi (until PHP 5.3),
  822. * cgi-fcgi, cli,
  823. * continuity, embed,
  824. * isapi, litespeed,
  825. * milter, nsapi,
  826. * phttpd, pi3web, roxen,
  827. * thttpd, tux, and webjames.
  828. */
  829. function php_sapi_name () {}
  830. /**
  831. * (PHP 4 &gt;= 4.0.2, PHP 5)<br/>
  832. * Returns information about the operating system PHP is running on
  833. * @link http://php.net/manual/en/function.php-uname.php
  834. * @param string $mode [optional] <p>
  835. * mode is a single character that defines what
  836. * information is returned:
  837. * 'a': This is the default. Contains all modes in
  838. * the sequence "s n r v m".
  839. * @return string the description, as a string.
  840. */
  841. function php_uname ($mode = null) {}
  842. /**
  843. * (PHP 4 &gt;= 4.3.0, PHP 5)<br/>
  844. * Return a list of .ini files parsed from the additional ini dir
  845. * @link http://php.net/manual/en/function.php-ini-scanned-files.php
  846. * @return string a comma-separated string of .ini files on success. Each comma is
  847. * followed by a newline. If the directive --with-config-file-scan-dir wasn't set,
  848. * false is returned. If it was set and the directory was empty, an
  849. * empty string is returned. If a file is unrecognizable, the file will
  850. * still make it into the returned string but a PHP error will also result.
  851. * This PHP error will be seen both at compile time and while using
  852. * php_ini_scanned_files.
  853. */
  854. function php_ini_scanned_files () {}
  855. /**
  856. * (PHP 5 &gt;= 5.2.4)<br/>
  857. * Retrieve a path to the loaded php.ini file
  858. * @link http://php.net/manual/en/function.php-ini-loaded-file.php
  859. * @return string The loaded &php.ini; path, or false if one is not loaded.
  860. */
  861. function php_ini_loaded_file () {}
  862. /**
  863. * (PHP 4, PHP 5)<br/>
  864. * String comparisons using a "natural order" algorithm
  865. * @link http://php.net/manual/en/function.strnatcmp.php
  866. * @param string $str1 <p>
  867. * The first string.
  868. * </p>
  869. * @param string $str2 <p>
  870. * The second string.
  871. * </p>
  872. * @return int Similar to other string comparison functions, this one returns &lt; 0 if
  873. * str1 is less than str2; &gt;
  874. * 0 if str1 is greater than
  875. * str2, and 0 if they are equal.
  876. */
  877. function strnatcmp ($str1, $str2) {}
  878. /**
  879. * (PHP 4, PHP 5)<br/>
  880. * Case insensitive string comparisons using a "natural order" algorithm
  881. * @link http://php.net/manual/en/function.strnatcasecmp.php
  882. * @param string $str1 <p>
  883. * The first string.
  884. * </p>
  885. * @param string $str2 <p>
  886. * The second string.
  887. * </p>
  888. * @return int Similar to other string comparison functions, this one returns &lt; 0 if
  889. * str1 is less than str2 &gt;
  890. * 0 if str1 is greater than
  891. * str2, and 0 if they are equal.
  892. */
  893. function strnatcasecmp ($str1, $str2) {}
  894. /**
  895. * (PHP 4, PHP 5)<br/>
  896. * Count the number of substring occurrences
  897. * @link http://php.net/manual/en/function.substr-count.php
  898. * @param string $haystack <p>
  899. * The string to search in
  900. * </p>
  901. * @param string $needle <p>
  902. * The substring to search for
  903. * </p>
  904. * @param int $offset [optional] <p>
  905. * The offset where to start counting
  906. * </p>
  907. * @param int $length [optional] <p>
  908. * The maximum length after the specified offset to search for the
  909. * substring. It outputs a warning if the offset plus the length is
  910. * greater than the haystack length.
  911. * </p>
  912. * @return int This functions returns an integer.
  913. */
  914. function substr_count ($haystack, $needle, $offset = null, $length = null) {}
  915. /**
  916. * (PHP 4, PHP 5)<br/>
  917. * Finds the length of the first segment of a string consisting
  918. entirely of characters contained within a given mask.
  919. * @link http://php.net/manual/en/function.strspn.php
  920. * @param string $subject <p>
  921. * The string to examine.
  922. * </p>
  923. * @param string $mask <p>
  924. * The list of allowable characters to include in counted segments.
  925. * </p>
  926. * @param int $start [optional] <p>
  927. * The position in subject to
  928. * start searching.
  929. * </p>
  930. * <p>
  931. * If start is given and is non-negative,
  932. * then strspn will begin
  933. * examining subject at
  934. * the start'th position. For instance, in
  935. * the string 'abcdef', the character at
  936. * position 0 is 'a', the
  937. * character at position 2 is
  938. * 'c', and so forth.
  939. * </p>
  940. * <p>
  941. * If start is given and is negative,
  942. * then strspn will begin
  943. * examining subject at
  944. * the start'th position from the end
  945. * of subject.
  946. * </p>
  947. * @param int $length [optional] <p>
  948. * The length of the segment from subject
  949. * to examine.
  950. * </p>
  951. * <p>
  952. * If length is given and is non-negative,
  953. * then subject will be examined
  954. * for length characters after the starting
  955. * position.
  956. * </p>
  957. * <p>
  958. * If lengthis given and is negative,
  959. * then subject will be examined from the
  960. * starting position up to length
  961. * characters from the end of subject.
  962. * </p>
  963. * @return int the length of the initial segment of str1
  964. * which consists entirely of characters in str2.
  965. */
  966. function strspn ($subject, $mask, $start = null, $length = null) {}
  967. /**
  968. * (PHP 4, PHP 5)<br/>
  969. * Find length of initial segment not matching mask
  970. * @link http://php.net/manual/en/function.strcspn.php
  971. * @param string $str1 <p>
  972. * The first string.
  973. * </p>
  974. * @param string $str2 <p>
  975. * The second string.
  976. * </p>
  977. * @param int $start [optional] <p>
  978. * The start position of the string to examine.
  979. * </p>
  980. * @param int $length [optional] <p>
  981. * The length of the string to examine.
  982. * </p>
  983. * @return int the length of the segment as an integer.
  984. */
  985. function strcspn ($str1, $str2, $start = null, $length = null) {}
  986. /**
  987. * (PHP 4, PHP 5)<br/>
  988. * Tokenize string
  989. * @link http://php.net/manual/en/function.strtok.php
  990. * @param string $str <p>
  991. * The string being split up into smaller strings (tokens).
  992. * </p>
  993. * @param string $token <p>
  994. * The delimiter used when splitting up str.
  995. * </p>
  996. * @return string A string token.
  997. */
  998. function strtok ($str, $token) {}
  999. /**
  1000. * (PHP 4, PHP 5)<br/>
  1001. * Make a string uppercase
  1002. * @link http://php.net/manual/en/function.strtoupper.php
  1003. * @param string $string <p>
  1004. * The input string.
  1005. * </p>
  1006. * @return string the uppercased string.
  1007. */
  1008. function strtoupper ($string) {}
  1009. /**
  1010. * (PHP 4, PHP 5)<br/>
  1011. * Make a string lowercase
  1012. * @link http://php.net/manual/en/function.strtolower.php
  1013. * @param string $str <p>
  1014. * The input string.
  1015. * </p>
  1016. * @return string the lowercased string.
  1017. */
  1018. function strtolower ($str) {}
  1019. /**
  1020. * (PHP 4, PHP 5)<br/>
  1021. * Find position of first occurrence of a string
  1022. * @link http://php.net/manual/en/function.strpos.php
  1023. * @param string $haystack <p>
  1024. * The string to search in
  1025. * </p>
  1026. * @param mixed $needle <p>
  1027. * If needle is not a string, it is converted
  1028. * to an integer and applied as the ordinal value of a character.
  1029. * </p>
  1030. * @param int $offset [optional] <p>
  1031. * The optional offset parameter allows you
  1032. * to specify which character in haystack to
  1033. * start searching. The position returned is still relative to the
  1034. * beginning of haystack.
  1035. * </p>
  1036. * @return int the position as an integer. If needle is
  1037. * not found, strpos will return boolean
  1038. * false.
  1039. */
  1040. function strpos ($haystack, $needle, $offset = null) {}
  1041. /**
  1042. * (PHP 5)<br/>
  1043. * Find position of first occurrence of a case-insensitive string
  1044. * @link http://php.net/manual/en/function.stripos.php
  1045. * @param string $haystack <p>
  1046. * The string to search in
  1047. * </p>
  1048. * @param string $needle <p>
  1049. * Note that the needle may be a string of one or
  1050. * more characters.
  1051. * </p>
  1052. * <p>
  1053. * If needle is not a string, it is converted to
  1054. * an integer and applied as the ordinal value of a character.
  1055. * </p>
  1056. * @param int $offset [optional] <p>
  1057. * The optional offset parameter allows you
  1058. * to specify which character in haystack to
  1059. * start searching. The position returned is still relative to the
  1060. * beginning of haystack.
  1061. * </p>
  1062. * @return int If needle is not found,
  1063. * stripos will return boolean false.
  1064. */
  1065. function stripos ($haystack, $needle, $offset = null) {}
  1066. /**
  1067. * (PHP 4, PHP 5)<br/>
  1068. * Find position of last occurrence of a char in a string
  1069. * @link http://php.net/manual/en/function.strrpos.php
  1070. * @param string $haystack <p>
  1071. * </p>
  1072. * @param string $needle <p>
  1073. * </p>
  1074. * @param int $offset [optional] <p>
  1075. * </p>
  1076. * @return int
  1077. */
  1078. function strrpos ($haystack, $needle, $offset = null) {}
  1079. /**
  1080. * (PHP 5)<br/>
  1081. * Find position of last occurrence of a case-insensitive string in a string
  1082. * @link http://php.net/manual/en/function.strripos.php
  1083. * @param string $haystack <p>
  1084. * The string to search in
  1085. * </p>
  1086. * @param string $needle <p>
  1087. * Note that the needle may be a string of one or
  1088. * more characters.
  1089. * </p>
  1090. * @param int $offset [optional] <p>
  1091. * The offset parameter may be specified to begin
  1092. * searching an arbitrary number of characters into the string.
  1093. * </p>
  1094. * <p>
  1095. * Negative offset values will start the search at
  1096. * offset characters from the
  1097. * start of the string.
  1098. * </p>
  1099. * @return int the numerical position of the last occurrence of
  1100. * needle. Also note that string positions start at 0,
  1101. * and not 1.
  1102. * </p>
  1103. * <p>
  1104. * If needle is not found, false is returned.
  1105. */
  1106. function strripos ($haystack, $needle, $offset = null) {}
  1107. /**
  1108. * (PHP 4, PHP 5)<br/>
  1109. * Reverse a string
  1110. * @link http://php.net/manual/en/function.strrev.php
  1111. * @param string $string <p>
  1112. * The string to be reversed.
  1113. * </p>
  1114. * @return string the reversed string.
  1115. */
  1116. function strrev ($string) {}
  1117. /**
  1118. * (PHP 4, PHP 5)<br/>
  1119. * Convert logical Hebrew text to visual text
  1120. * @link http://php.net/manual/en/function.hebrev.php
  1121. * @param string $hebrew_text <p>
  1122. * A Hebrew input string.
  1123. * </p>
  1124. * @param int $max_chars_per_line [optional] <p>
  1125. * This optional parameter indicates maximum number of characters per
  1126. * line that will be returned.
  1127. * </p>
  1128. * @return string the visual string.
  1129. */
  1130. function hebrev ($hebrew_text, $max_chars_per_line = null) {}
  1131. /**
  1132. * (PHP 4, PHP 5)<br/>
  1133. * Convert logical Hebrew text to visual text with newline conversion
  1134. * @link http://php.net/manual/en/function.hebrevc.php
  1135. * @param string $hebrew_text <p>
  1136. * A Hebrew input string.
  1137. * </p>
  1138. * @param int $max_chars_per_line [optional] <p>
  1139. * This optional parameter indicates maximum number of characters per
  1140. * line that will be returned.
  1141. * </p>
  1142. * @return string the visual string.
  1143. */
  1144. function hebrevc ($hebrew_text, $max_chars_per_line = null) {}
  1145. /**
  1146. * (PHP 4, PHP 5)<br/>
  1147. * Inserts HTML line breaks before all newlines in a string
  1148. * @link http://php.net/manual/en/function.nl2br.php
  1149. * @param string $string <p>
  1150. * The input string.
  1151. * </p>
  1152. * @param bool $is_xhtml [optional] <p>
  1153. * Whenever to use XHTML compatible line breaks or not.
  1154. * </p>
  1155. * @return string the altered string.
  1156. */
  1157. function nl2br ($string, $is_xhtml = null) {}
  1158. /**
  1159. * (PHP 4, PHP 5)<br/>
  1160. * Returns filename component of path
  1161. * @link http://php.net/manual/en/function.basename.php
  1162. * @param string $path <p>
  1163. * A path.
  1164. * </p>
  1165. * <p>
  1166. * On Windows, both slash (/) and backslash
  1167. * (\) are used as directory separator character. In
  1168. * other environments, it is the forward slash (/).
  1169. * </p>
  1170. * @param string $suffix [optional] <p>
  1171. * If the filename ends in suffix this will also
  1172. * be cut off.
  1173. * </p>
  1174. * @return string the base name of the given path.
  1175. */
  1176. function basename ($path, $suffix = null) {}
  1177. /**
  1178. * (PHP 4, PHP 5)<br/>
  1179. * Returns directory name component of path
  1180. * @link http://php.net/manual/en/function.dirname.php
  1181. * @param string $path <p>
  1182. * A path.
  1183. * </p>
  1184. * <p>
  1185. * On Windows, both slash (/) and backslash
  1186. * (\) are used as directory separator character. In
  1187. * other environments, it is the forward slash (/).
  1188. * </p>
  1189. * @return string the name of the directory. If there are no slashes in
  1190. * path, a dot ('.') is returned,
  1191. * indicating the current directory. Otherwise, the returned string is
  1192. * path with any trailing
  1193. * /component removed.
  1194. */
  1195. function dirname ($path) {}
  1196. /**
  1197. * (PHP 4 &gt;= 4.0.3, PHP 5)<br/>
  1198. * Returns information about a file path
  1199. * @link http://php.net/manual/en/function.pathinfo.php
  1200. * @param string $path <p>
  1201. * The path being checked.
  1202. * </p>
  1203. * @param int $options [optional] <p>
  1204. * You can specify which elements are returned with optional parameter
  1205. * options. It composes from
  1206. * PATHINFO_DIRNAME,
  1207. * PATHINFO_BASENAME,
  1208. * PATHINFO_EXTENSION and
  1209. * PATHINFO_FILENAME. It
  1210. * defaults to return all elements.
  1211. * </p>
  1212. * @return mixed The following associative array elements are returned:
  1213. * dirname, basename,
  1214. * extension (if any), and filename.
  1215. * </p>
  1216. * <p>
  1217. * If options is used, this function will return a
  1218. * string if not all elements are requested.
  1219. */
  1220. function pathinfo ($path, $options = null) {}
  1221. /**
  1222. * (PHP 4, PHP 5)<br/>
  1223. * Un-quotes a quoted string
  1224. * @link http://php.net/manual/en/function.stripslashes.php
  1225. * @param string $str <p>
  1226. * The input string.
  1227. * </p>
  1228. * @return string a string with backslashes stripped off.
  1229. * (\' becomes ' and so on.)
  1230. * Double backslashes (\\) are made into a single
  1231. * backslash (\).
  1232. */
  1233. function stripslashes ($str) {}
  1234. /**
  1235. * (PHP 4, PHP 5)<br/>
  1236. * Un-quote string quoted with <function>addcslashes</function>
  1237. * @link http://php.net/manual/en/function.stripcslashes.php
  1238. * @param string $str <p>
  1239. * The string to be unescaped.
  1240. * </p>
  1241. * @return string the unescaped string.
  1242. */
  1243. function stripcslashes ($str) {}
  1244. /**
  1245. * (PHP 4, PHP 5)<br/>
  1246. * Find first occurrence of a string
  1247. * @link http://php.net/manual/en/function.strstr.php
  1248. * @param string $haystack <p>
  1249. * The input string.
  1250. * </p>
  1251. * @param mixed $needle <p>
  1252. * If needle is not a string, it is converted to
  1253. * an integer and applied as the ordinal value of a character.
  1254. * </p>
  1255. * @param bool $before_needle [optional] <p>
  1256. * If true, strstr returns
  1257. * the part of the haystack before the first
  1258. * occurrence of the needle.
  1259. * </p>
  1260. * @return string the portion of string, or false if needle
  1261. * is not found.
  1262. */
  1263. function strstr ($haystack, $needle, $before_needle = null) {}
  1264. /**
  1265. * (PHP 4, PHP 5)<br/>
  1266. * Case-insensitive <function>strstr</function>
  1267. * @link http://php.net/manual/en/function.stristr.php
  1268. * @param string $haystack <p>
  1269. * The string to search in
  1270. * </p>
  1271. * @param mixed $needle <p>
  1272. * If needle is not a string, it is converted to
  1273. * an integer and applied as the ordinal value of a character.
  1274. * </p>
  1275. * @param bool $before_needle [optional] <p>
  1276. * If true, stristr
  1277. * returns the part of the haystack before the
  1278. * first occurrence of the needle.
  1279. * </p>
  1280. * @return string the matched substring. If needle is not
  1281. * found, returns false.
  1282. */
  1283. function stristr ($haystack, $needle, $before_needle = null) {}
  1284. /**
  1285. * (PHP 4, PHP 5)<br/>
  1286. * Find the last occurrence of a character in a string
  1287. * @link http://php.net/manual/en/function.strrchr.php
  1288. * @param string $haystack <p>
  1289. * The string to search in
  1290. * </p>
  1291. * @param mixed $needle <p>
  1292. * If needle contains more than one character,
  1293. * only the first is used. This behavior is different from that of
  1294. * strstr.
  1295. * </p>
  1296. * <p>
  1297. * If needle is not a string, it is converted to
  1298. * an integer and applied as the ordinal value of a character.
  1299. * </p>
  1300. * @return string This function returns the portion of string, or false if
  1301. * needle is not found.
  1302. */
  1303. function strrchr ($haystack, $needle) {}
  1304. /**
  1305. * (PHP 4 &gt;= 4.3.0, PHP 5)<br/>
  1306. * Randomly shuffles a string
  1307. * @link http://php.net/manual/en/function.str-shuffle.php
  1308. * @param string $str <p>
  1309. * The input string.
  1310. * </p>
  1311. * @return string the shuffled string.
  1312. */
  1313. function str_shuffle ($str) {}
  1314. /**
  1315. * (PHP 4 &gt;= 4.3.0, PHP 5)<br/>
  1316. * Return information about words used in a string
  1317. * @link http://php.net/manual/en/function.str-word-count.php
  1318. * @param string $string <p>
  1319. * The string
  1320. * </p>
  1321. * @param int $format [optional] <p>
  1322. * Specify the return value of this function. The current supported values
  1323. * are:
  1324. * 0 - returns the number of words found
  1325. * @param string $charlist [optional] <p>
  1326. * A list of additional characters which will be considered as 'word'
  1327. * </p>
  1328. * @return mixed an array or an integer, depending on the
  1329. * format chosen.
  1330. */
  1331. function str_word_count ($string, $format = null, $charlist = null) {}
  1332. /**
  1333. * (PHP 5)<br/>
  1334. * Convert a string to an array
  1335. * @link http://php.net/manual/en/function.str-split.php
  1336. * @param string $string <p>
  1337. * The input string.
  1338. * </p>
  1339. * @param int $split_length [optional] <p>
  1340. * Maximum length of the chunk.
  1341. * </p>
  1342. * @return array If the optional split_length parameter is
  1343. * specified, the returned array will be broken down into chunks with each
  1344. * being split_length in length, otherwise each chunk
  1345. * will be one character in length.
  1346. * </p>
  1347. * <p>
  1348. * false is returned if split_length is less than 1.
  1349. * If the split_length length exceeds the length of
  1350. * string, the entire string is returned as the first
  1351. * (and only) array element.
  1352. */
  1353. function str_split ($string, $split_length = null) {}
  1354. /**
  1355. * (PHP 5)<br/>
  1356. * Search a string for any of a set of characters
  1357. * @link http://php.net/manual/en/function.strpbrk.php
  1358. * @param string $haystack <p>
  1359. * The string where char_list is looked for.
  1360. * </p>
  1361. * @param string $char_list <p>
  1362. * This parameter is case sensitive.
  1363. * </p>
  1364. * @return string a string starting from the character found, or false if it is
  1365. * not found.
  1366. */
  1367. function strpbrk ($haystack, $char_list) {}
  1368. /**
  1369. * (PHP 5)<br/>
  1370. * Binary safe comparison of 2 strings from an offset, up to length characters
  1371. * @link http://php.net/manual/en/function.substr-compare.php
  1372. * @param string $main_str <p>
  1373. * The main string being compared.
  1374. * </p>
  1375. * @param string $str <p>
  1376. * The secondary string being compared.
  1377. * </p>
  1378. * @param int $offset <p>
  1379. * The start position for the comparison. If negative, it starts counting
  1380. * from the end of the string.
  1381. * </p>
  1382. * @param int $length [optional] <p>
  1383. * The length of the comparison.
  1384. * </p>
  1385. * @param bool $case_insensitivity [optional] <p>
  1386. * If case_insensitivity is true, comparison is
  1387. * case insensitive.
  1388. * </p>
  1389. * @return int &lt; 0 if main_str from position
  1390. * offset is less than str, &gt;
  1391. * 0 if it is greater than str, and 0 if they are equal.
  1392. * If offset is equal to or greater than the length of
  1393. * main_str or length is set and
  1394. * is less than 1, substr_compare prints a warning and returns
  1395. * false.
  1396. */
  1397. function substr_compare ($main_str, $str, $offset, $length = null, $case_insensitivity = null) {}
  1398. /**
  1399. * (PHP 4 &gt;= 4.0.5, PHP 5)<br/>
  1400. * Locale based string comparison
  1401. * @link http://php.net/manual/en/function.strcoll.php
  1402. * @param string $str1 <p>
  1403. * The first string.
  1404. * </p>
  1405. * @param string $str2 <p>
  1406. * The second string.
  1407. * </p>
  1408. * @return int &lt; 0 if str1 is less than
  1409. * str2; &gt; 0 if
  1410. * str1 is greater than
  1411. * str2, and 0 if they are equal.
  1412. */
  1413. function strcoll ($str1, $str2) {}
  1414. /**
  1415. * (PHP 4 &gt;= 4.3.0, PHP 5)<br/>
  1416. * Formats a number as a currency string
  1417. * @link http://php.net/manual/en/function.money-format.php
  1418. * @param string $format <p>
  1419. * The format specification consists of the following sequence:
  1420. * <p>a % character</p>
  1421. * @param float $number <p>
  1422. * The number to be formatted.
  1423. * </p>
  1424. * @return string the formatted string. Characters before and after the formatting
  1425. * string will be returned unchanged.
  1426. * Non-numeric number causes returning &null; and
  1427. * emitting E_WARNING.
  1428. */
  1429. function money_format ($format, $number) {}
  1430. /**
  1431. * (PHP 4, PHP 5)<br/>
  1432. * Return part of a string
  1433. * @link http://php.net/manual/en/function.substr.php
  1434. * @param string $string <p>
  1435. * The input string.
  1436. * </p>
  1437. * @param int $start <p>
  1438. * If start is non-negative, the returned string
  1439. * will start at the start'th position in
  1440. * string, counting from zero. For instance,
  1441. * in the string 'abcdef', the character at
  1442. * position 0 is 'a', the
  1443. * character at position 2 is
  1444. * 'c', and so forth.
  1445. * </p>
  1446. * <p>
  1447. * If start is negative, the returned string
  1448. * will start at the start'th character
  1449. * from the end of string.
  1450. * </p>
  1451. * <p>
  1452. * If string is less than or equal to
  1453. * start characters long, false will be returned.
  1454. * </p>
  1455. * <p>
  1456. * Using a negative start
  1457. * ]]>
  1458. * </p>
  1459. * @param int $length [optional] <p>
  1460. * If length is given and is positive, the string
  1461. * returned will contain at most length characters
  1462. * beginning from start (depending on the length of
  1463. * string).
  1464. * </p>
  1465. * <p>
  1466. * If length is given and is negative, then that many
  1467. * characters will be omitted from the end of string
  1468. * (after the start position has been calculated when a
  1469. * start is negative). If
  1470. * start denotes a position beyond this truncation,
  1471. * an empty string will be returned.
  1472. * </p>
  1473. * <p>
  1474. * If length is given and is 0,
  1475. * false or &null; an empty string will be returned.
  1476. * </p>
  1477. * Using a negative length
  1478. * ]]>
  1479. * @return string the extracted part of string&return.falseforfailure;.
  1480. */
  1481. function substr ($string, $start, $length = null) {}
  1482. /**
  1483. * (PHP 4, PHP 5)<br/>
  1484. * Replace text within a portion of a string
  1485. * @link http://php.net/manual/en/function.substr-replace.php
  1486. * @param mixed $string <p>
  1487. * The input string.
  1488. * </p>
  1489. * @param string $replacement <p>
  1490. * The replacement string.
  1491. * </p>
  1492. * @param int $start <p>
  1493. * If start is positive, the replacing will
  1494. * begin at the start'th offset into
  1495. * string.
  1496. * </p>
  1497. * <p>
  1498. * If start is negative, the replacing will
  1499. * begin at the start'th character from the
  1500. * end of string.
  1501. * </p>
  1502. * @param int $length [optional] <p>
  1503. * If given and is positive, it represents the length of the portion of
  1504. * string which is to be replaced. If it is
  1505. * negative, it represents the number of characters from the end of
  1506. * string at which to stop replacing. If it
  1507. * is not given, then it will default to strlen(
  1508. * string ); i.e. end the replacing at the
  1509. * end of string. Of course, if
  1510. * length is zero then this function will have the
  1511. * effect of inserting replacement into
  1512. * string at the given
  1513. * start offset.
  1514. * </p>
  1515. * @return mixed The result string is returned. If string is an
  1516. * array then array is returned.
  1517. */
  1518. function substr_replace ($string, $replacement, $start, $length = null) {}
  1519. /**
  1520. * (PHP 4, PHP 5)<br/>
  1521. * Quote meta characters
  1522. * @link http://php.net/manual/en/function.quotemeta.php
  1523. * @param string $str <p>
  1524. * The input string.
  1525. * </p>
  1526. * @return string the string with meta characters quoted.
  1527. */
  1528. function quotemeta ($str) {}
  1529. /**
  1530. * (PHP 4, PHP 5)<br/>
  1531. * Make a string's first character uppercase
  1532. * @link http://php.net/manual/en/function.ucfirst.php
  1533. * @param string $str <p>
  1534. * The input string.
  1535. * </p>
  1536. * @return string the resulting string.
  1537. */
  1538. function ucfirst ($str) {}
  1539. /**
  1540. * (PHP 5 &gt;= 5.3.0)<br/>
  1541. * Make a string's first character lowercase
  1542. * @link http://php.net/manual/en/function.lcfirst.php
  1543. * @param string $str <p>
  1544. * The input string.
  1545. * </p>
  1546. * @return string the resulting string.
  1547. */
  1548. function lcfirst ($str) {}
  1549. /**
  1550. * (PHP 4, PHP 5)<br/>
  1551. * Uppercase the first character of each word in a string
  1552. * @link http://php.net/manual/en/function.ucwords.php
  1553. * @param string $str <p>
  1554. * The input string.
  1555. * </p>
  1556. * @return string the modified string.
  1557. */
  1558. function ucwords ($str) {}
  1559. /**
  1560. * (PHP 4, PHP 5)<br/>
  1561. * Translate certain characters
  1562. * @link http://php.net/manual/en/function.strtr.php
  1563. * @param string $str <p>
  1564. * The string being translated.
  1565. * </p>
  1566. * @param string $from <p>
  1567. * The string being translated to to.
  1568. * </p>
  1569. * @param string $to <p>
  1570. * The string replacing from.
  1571. * </p>
  1572. * @return string This function returns a copy of str,
  1573. * translating all occurrences of each character in
  1574. * from to the corresponding character in
  1575. * to.
  1576. */
  1577. function strtr ($str, $from, $to) {}
  1578. /**
  1579. * (PHP 4, PHP 5)<br/>
  1580. * Quote string with slashes
  1581. * @link http://php.net/manual/en/function.addslashes.php
  1582. * @param string $str <p>
  1583. * The string to be escaped.
  1584. * </p>
  1585. * @return string the escaped string.
  1586. */
  1587. function addslashes ($str) {}
  1588. /**
  1589. * (PHP 4, PHP 5)<br/>
  1590. * Quote string with slashes in a C style
  1591. * @link http://php.net/manual/en/function.addcslashes.php
  1592. * @param string $str <p>
  1593. * The string to be escaped.
  1594. * </p>
  1595. * @param string $charlist <p>
  1596. * A list of characters to be escaped. If
  1597. * charlist contains characters
  1598. * \n, \r etc., they are
  1599. * converted in C-like style, while other non-alphanumeric characters
  1600. * with ASCII codes lower than 32 and higher than 126 converted to
  1601. * octal representation.
  1602. * </p>
  1603. * <p>
  1604. * When you define a sequence of characters in the charlist argument
  1605. * make sure that you know what characters come between the
  1606. * characters that you set as the start and end of the range.
  1607. * ]]>
  1608. * Also, if the first character in a range has a higher ASCII value
  1609. * than the second character in the range, no range will be
  1610. * constructed. Only the start, end and period characters will be
  1611. * escaped. Use the ord function to find the
  1612. * ASCII value for a character.
  1613. * ]]>
  1614. * </p>
  1615. * <p>
  1616. * Be careful if you choose to escape characters 0, a, b, f, n, r,
  1617. * t and v. They will be converted to \0, \a, \b, \f, \n, \r, \t
  1618. * and \v.
  1619. * In PHP \0 (NULL), \r (carriage return), \n (newline), \f (form feed),
  1620. * \v (vertical tab) and \t (tab) are predefined escape sequences,
  1621. * while in C all of these are predefined escape sequences.
  1622. * </p>
  1623. * @return string the escaped string.
  1624. */
  1625. function addcslashes ($str, $charlist) {}
  1626. /**
  1627. * (PHP 4, PHP 5)<br/>
  1628. * Strip whitespace (or other characters) from the end of a string
  1629. * @link http://php.net/manual/en/function.rtrim.php
  1630. * @param string $str <p>
  1631. * The input string.
  1632. * </p>
  1633. * @param string $charlist [optional] <p>
  1634. * You can also specify the characters you want to strip, by means
  1635. * of the charlist parameter.
  1636. * Simply list all characters that you want to be stripped. With
  1637. * .. you can specify a range of characters.
  1638. * </p>
  1639. * @return string the modified string.
  1640. */
  1641. function rtrim ($str, $charlist = null) {}
  1642. /**
  1643. * (PHP 4, PHP 5)<br/>
  1644. * Replace all occurrences of the search string with the replacement string
  1645. * @link http://php.net/manual/en/function.str-replace.php
  1646. * @param mixed $search <p>
  1647. * The value being searched for, otherwise known as the needle.
  1648. * An array may be used to designate multiple needles.
  1649. * </p>
  1650. * @param mixed $replace <p>
  1651. * The replacement value that replaces found search
  1652. * values. An array may be used to designate multiple replacements.
  1653. * </p>
  1654. * @param mixed $subject <p>
  1655. * The string or array being searched and replaced on,
  1656. * otherwise known as the haystack.
  1657. * </p>
  1658. * <p>
  1659. * If subject is an array, then the search and
  1660. * replace is performed with every entry of
  1661. * subject, and the return value is an array as
  1662. * well.
  1663. * </p>
  1664. * @param int $count [optional] If passed, this will hold the number of matched and replaced needles.
  1665. * @return mixed This function returns a string or an array with the replaced values.
  1666. */
  1667. function str_replace ($search, $replace, $subject, &$count = null) {}
  1668. /**
  1669. * (PHP 5)<br/>
  1670. * Case-insensitive version of <function>str_replace</function>.
  1671. * @link http://php.net/manual/en/function.str-ireplace.php
  1672. * @param mixed $search <p>
  1673. * Every replacement with search array is
  1674. * performed on the result of previous replacement.
  1675. * </p>
  1676. * @param mixed $replace <p>
  1677. * </p>
  1678. * @param mixed $subject <p>
  1679. * If subject is an array, then the search and
  1680. * replace is performed with every entry of
  1681. * subject, and the return value is an array as
  1682. * well.
  1683. * </p>
  1684. * @param int $count [optional] <p>
  1685. * The number of matched and replaced needles will
  1686. * be returned in count which is passed by
  1687. * reference.
  1688. * </p>
  1689. * @return mixed a string or an array of replacements.
  1690. */
  1691. function str_ireplace ($search, $replace, $subject, &$count = null) {}
  1692. /**
  1693. * (PHP 4, PHP 5)<br/>
  1694. * Repeat a string
  1695. * @link http://php.net/manual/en/function.str-repeat.php
  1696. * @param string $input <p>
  1697. * The string to be repeated.
  1698. * </p>
  1699. * @param int $multiplier <p>
  1700. * Number of time the input string should be
  1701. * repeated.
  1702. * </p>
  1703. * <p>
  1704. * multiplier has to be greater than or equal to 0.
  1705. * If the multiplier is set to 0, the function
  1706. * will return an empty string.
  1707. * </p>
  1708. * @return string the repeated string.
  1709. */
  1710. function str_repeat ($input, $multiplier) {}
  1711. /**
  1712. * (PHP 4, PHP 5)<br/>
  1713. * Return information about characters used in a string
  1714. * @link http://php.net/manual/en/function.count-chars.php
  1715. * @param string $string <p>
  1716. * The examined string.
  1717. * </p>
  1718. * @param int $mode [optional] <p>
  1719. * See return values.
  1720. * </p>
  1721. * @return mixed Depending on mode
  1722. * count_chars returns one of the following:
  1723. * 0 - an array with the byte-value as key and the frequency of
  1724. * every byte as value.
  1725. * 1 - same as 0 but only byte-values with a frequency greater
  1726. * than zero are listed.
  1727. * 2 - same as 0 but only byte-values with a frequency equal to
  1728. * zero are listed.
  1729. * 3 - a string containing all unique characters is returned.
  1730. * 4 - a string containing all not used characters is returned.
  1731. */
  1732. function count_chars ($string, $mode = null) {}
  1733. /**
  1734. * (PHP 4, PHP 5)<br/>
  1735. * Split a string into smaller chunks
  1736. * @link http://php.net/manual/en/function.chunk-split.php
  1737. * @param string $body <p>
  1738. * The string to be chunked.
  1739. * </p>
  1740. * @param int $chunklen [optional] <p>
  1741. * The chunk length.
  1742. * </p>
  1743. * @param string $end [optional] <p>
  1744. * The line ending sequence.
  1745. * </p>
  1746. * @return string the chunked string.
  1747. */
  1748. function chunk_split ($body, $chunklen = null, $end = null) {}
  1749. /**
  1750. * (PHP 4, PHP 5)<br/>
  1751. * Strip whitespace (or other characters) from the beginning and end of a string
  1752. * @link http://php.net/manual/en/function.trim.php
  1753. * @param string $str <p>
  1754. * The string that will be trimmed.
  1755. * </p>
  1756. * @param string $charlist [optional] <p>
  1757. * Optionally, the stripped characters can also be specified using
  1758. * the charlist parameter.
  1759. * Simply list all characters that you want to be stripped. With
  1760. * .. you can specify a range of characters.
  1761. * </p>
  1762. * @return string The trimmed string.
  1763. */
  1764. function trim ($str, $charlist = null) {}
  1765. /**
  1766. * (PHP 4, PHP 5)<br/>
  1767. * Strip whitespace (or other characters) from the beginning of a string
  1768. * @link http://php.net/manual/en/function.ltrim.php
  1769. * @param string $str <p>
  1770. * The input string.
  1771. * </p>
  1772. * @param string $charlist [optional] <p>
  1773. * You can also specify the characters you want to strip, by means of the
  1774. * charlist parameter.
  1775. * Simply list all characters that you want to be stripped. With
  1776. * .. you can specify a range of characters.
  1777. * </p>
  1778. * @return string This function returns a string with whitespace stripped from the
  1779. * beginning of str.
  1780. * Without the second parameter,
  1781. * ltrim will strip these characters:
  1782. * " " (ASCII 32
  1783. * (0x20)), an ordinary space.
  1784. * "\t" (ASCII 9
  1785. * (0x09)), a tab.
  1786. * "\n" (ASCII 10
  1787. * (0x0A)), a new line (line feed).
  1788. * "\r" (ASCII 13
  1789. * (0x0D)), a carriage return.
  1790. * "\0" (ASCII 0
  1791. * (0x00)), the NUL-byte.
  1792. * "\x0B" (ASCII 11
  1793. * (0x0B)), a vertical tab.
  1794. */
  1795. function ltrim ($str, $charlist = null) {}
  1796. /**
  1797. * (PHP 4, PHP 5)<br/>
  1798. * Strip HTML and PHP tags from a string
  1799. * @link http://php.net/manual/en/function.strip-tags.php
  1800. * @param string $str <p>
  1801. * The input string.
  1802. * </p>
  1803. * @param string $allowable_tags [optional] <p>
  1804. * You can use the optional second parameter to specify tags which should
  1805. * not be stripped.
  1806. * </p>
  1807. * <p>
  1808. * HTML comments and PHP tags are also stripped. This is hardcoded and
  1809. * can not be changed with allowable_tags.
  1810. * </p>
  1811. * @return string the stripped string.
  1812. */
  1813. function strip_tags ($str, $allowable_tags = null) {}
  1814. /**
  1815. * (PHP 4, PHP 5)<br/>
  1816. * Calculate the similarity between two strings
  1817. * @link http://php.net/manual/en/function.similar-text.php
  1818. * @param string $first <p>
  1819. * The first string.
  1820. * </p>
  1821. * @param string $second <p>
  1822. * The second string.
  1823. * </p>
  1824. * @param float $percent [optional] <p>
  1825. * By passing a reference as third argument,
  1826. * similar_text will calculate the similarity in
  1827. * percent for you.
  1828. * </p>
  1829. * @return int the number of matching chars in both strings.
  1830. */
  1831. function similar_text ($first, $second, &$percent = null) {}
  1832. /**
  1833. * (PHP 4, PHP 5)<br/>
  1834. * Split a string by string
  1835. * @link http://php.net/manual/en/function.explode.php
  1836. * @param string $delimiter <p>
  1837. * The boundary string.
  1838. * </p>
  1839. * @param string $string <p>
  1840. * The input string.
  1841. * </p>
  1842. * @param int $limit [optional] <p>
  1843. * If limit is set and positive, the returned array will contain
  1844. * a maximum of limit elements with the last
  1845. * element containing the rest of string.
  1846. * </p>
  1847. * <p>
  1848. * If the limit parameter is negative, all components
  1849. * except the last -limit are returned.
  1850. * </p>
  1851. * <p>
  1852. * If the limit parameter is zero, then this is treated as 1.
  1853. * </p>
  1854. * @return array If delimiter is an empty string (""),
  1855. * explode will return false.
  1856. * If delimiter contains a value that is not
  1857. * contained in string and a negative
  1858. * limit is used, then an empty array will be
  1859. * returned. For any other limit, an array containing
  1860. * string will be returned.
  1861. */
  1862. function explode ($delimiter, $string, $limit = null) {}
  1863. /**
  1864. * (PHP 4, PHP 5)<br/>
  1865. * Join array elements with a string
  1866. * @link http://php.net/manual/en/function.implode.php
  1867. * @param string $glue <p>
  1868. * Defaults to an empty string. This is not the preferred usage of
  1869. * implode as glue would be
  1870. * the second parameter and thus, the bad prototype would be used.
  1871. * </p>
  1872. * @param array $pieces <p>
  1873. * The array of strings to implode.
  1874. * </p>
  1875. * @return string a string containing a string representation of all the array
  1876. * elements in the same order, with the glue string between each element.
  1877. */
  1878. function implode ($glue, $piecesarray ) {}
  1879. /**
  1880. * (PHP 4, PHP 5)<br/>
  1881. * &Alias; <function>implode</function>
  1882. * @link http://php.net/manual/en/function.join.php
  1883. * @param $glue
  1884. * @param $pieces
  1885. */
  1886. function join ($glue, $pieces) {}
  1887. /**
  1888. * (PHP 4, PHP 5)<br/>
  1889. * Set locale information
  1890. * @link http://php.net/manual/en/function.setlocale.php
  1891. * @param int $category <p>
  1892. * category is a named constant specifying the
  1893. * category of the functions affected by the locale setting:
  1894. * LC_ALL for all of the below
  1895. * @param string $locale <p>
  1896. * If locale is &null; or the empty string
  1897. * "", the locale names will be set from the
  1898. * values of environment variables with the same names as the above
  1899. * categories, or from "LANG".
  1900. * </p>
  1901. * <p>
  1902. * If locale is "0",
  1903. * the locale setting is not affected, only the current setting is returned.
  1904. * </p>
  1905. * <p>
  1906. * If locale is an array or followed by additional
  1907. * parameters then each array element or parameter is tried to be set as
  1908. * new locale until success. This is useful if a locale is known under
  1909. * different names on different systems or for providing a fallback
  1910. * for a possibly not available locale.
  1911. * </p>
  1912. * @param string $_ [optional]
  1913. * @return string the new current locale, or false if the locale functionality is
  1914. * not implemented on your platform, the specified locale does not exist or
  1915. * the category name is invalid.
  1916. * </p>
  1917. * <p>
  1918. * An invalid category name also causes a warning message. Category/locale
  1919. * names can be found in RFC 1766
  1920. * and ISO 639.
  1921. * Different systems have different naming schemes for locales.
  1922. * </p>
  1923. * <p>
  1924. * The return value of setlocale depends
  1925. * on the system that PHP is running. It returns exactly
  1926. * what the system setlocale function returns.
  1927. */
  1928. function setlocale ($category, $locale, $_ = null) {}
  1929. /**
  1930. * (PHP 4 &gt;= 4.0.5, PHP 5)<br/>
  1931. * Get numeric formatting information
  1932. * @link http://php.net/manual/en/function.localeconv.php
  1933. * @return array localeconv returns data based upon the current locale
  1934. * as set by setlocale. The associative array that is
  1935. * returned contains the following fields:
  1936. * <tr valign="top">
  1937. * <td>Array element</td>
  1938. * <td>Description</td>
  1939. * </tr>
  1940. * <tr valign="top">
  1941. * <td>decimal_point</td>
  1942. * <td>Decimal point character</td>
  1943. * </tr>
  1944. * <tr valign="top">
  1945. * <td>thousands_sep</td>
  1946. * <td>Thousands separator</td>
  1947. * </tr>
  1948. * <tr valign="top">
  1949. * <td>grouping</td>
  1950. * <td>Array containing numeric groupings</td>
  1951. * </tr>
  1952. * <tr valign="top">
  1953. * <td>int_curr_symbol</td>
  1954. * <td>International currency symbol (i.e. USD)</td>
  1955. * </tr>
  1956. * <tr valign="top">
  1957. * <td>currency_symbol</td>
  1958. * <td>Local currency symbol (i.e. $)</td>
  1959. * </tr>
  1960. * <tr valign="top">
  1961. * <td>mon_decimal_point</td>
  1962. * <td>Monetary decimal point character</td>
  1963. * </tr>
  1964. * <tr valign="top">
  1965. * <td>mon_thousands_sep</td>
  1966. * <td>Monetary thousands separator</td>
  1967. * </tr>
  1968. * <tr valign="top">
  1969. * <td>mon_grouping</td>
  1970. * <td>Array containing monetary groupings</td>
  1971. * </tr>
  1972. * <tr valign="top">
  1973. * <td>positive_sign</td>
  1974. * <td>Sign for positive values</td>
  1975. * </tr>
  1976. * <tr valign="top">
  1977. * <td>negative_sign</td>
  1978. * <td>Sign for negative values</td>
  1979. * </tr>
  1980. * <tr valign="top">
  1981. * <td>int_frac_digits</td>
  1982. * <td>International fractional digits</td>
  1983. * </tr>
  1984. * <tr valign="top">
  1985. * <td>frac_digits</td>
  1986. * <td>Local fractional digits</td>
  1987. * </tr>
  1988. * <tr valign="top">
  1989. * <td>p_cs_precedes</td>
  1990. * <td>
  1991. * true if currency_symbol precedes a positive value, false
  1992. * if it succeeds one
  1993. * </td>
  1994. * </tr>
  1995. * <tr valign="top">
  1996. * <td>p_sep_by_space</td>
  1997. * <td>
  1998. * true if a space separates currency_symbol from a positive
  1999. * value, false otherwise
  2000. * </td>
  2001. * </tr>
  2002. * <tr valign="top">
  2003. * <td>n_cs_precedes</td>
  2004. * <td>
  2005. * true if currency_symbol precedes a negative value, false
  2006. * if it succeeds one
  2007. * </td>
  2008. * </tr>
  2009. * <tr valign="top">
  2010. * <td>n_sep_by_space</td>
  2011. * <td>
  2012. * true if a space separates currency_symbol from a negative
  2013. * value, false otherwise
  2014. * </td>
  2015. * </tr>
  2016. * <td>p_sign_posn</td>
  2017. * <td>
  2018. * 0 - Parentheses surround the quantity and currency_symbol
  2019. * 1 - The sign string precedes the quantity and currency_symbol
  2020. * 2 - The sign string succeeds the quantity and currency_symbol
  2021. * 3 - The sign string immediately precedes the currency_symbol
  2022. * 4 - The sign string immediately succeeds the currency_symbol
  2023. * </td>
  2024. * </tr>
  2025. * <td>n_sign_posn</td>
  2026. * <td>
  2027. * 0 - Parentheses surround the quantity and currency_symbol
  2028. * 1 - The sign string precedes the quantity and currency_symbol
  2029. * 2 - The sign string succeeds the quantity and currency_symbol
  2030. * 3 - The sign string immediately precedes the currency_symbol
  2031. * 4 - The sign string immediately succeeds the currency_symbol
  2032. * </td>
  2033. * </tr>
  2034. * </p>
  2035. * <p>
  2036. * The p_sign_posn, and n_sign_posn contain a string
  2037. * of formatting options. Each number representing one of the above listed conditions.
  2038. * </p>
  2039. * <p>
  2040. * The grouping fields contain arrays that define the way numbers should be
  2041. * grouped. For example, the monetary grouping field for the nl_NL locale (in
  2042. * UTF-8 mode with the euro sign), would contain a 2 item array with the
  2043. * values 3 and 3. The higher the index in the array, the farther left the
  2044. * grouping is. If an array element is equal to CHAR_MAX,
  2045. * no further grouping is done. If an array element is equal to 0, the previous
  2046. * element should be used.
  2047. */
  2048. function localeconv () {}
  2049. /**
  2050. * (PHP 4 &gt;= 4.1.0, PHP 5)<br/>
  2051. * Query language and locale information
  2052. * @link http://php.net/manual/en/function.nl-langinfo.php
  2053. * @param int $item <p>
  2054. * item may be an integer value of the element or the
  2055. * constant name of the element. The following is a list of constant names
  2056. * for item that may be used and their description.
  2057. * Some of these constants may not be defined or hold no value for certain
  2058. * locales.
  2059. * <table>
  2060. * nl_langinfo Constants
  2061. * <tr valign="top">
  2062. * <td>Constant</td>
  2063. * <td>Description</td>
  2064. * </tr>
  2065. * <tr valign="top">
  2066. * LC_TIME Category Constants</td>
  2067. * </tr>
  2068. * <tr valign="top">
  2069. * <td>ABDAY_(1-7)</td>
  2070. * <td>Abbreviated name of n-th day of the week.</td>
  2071. * </tr>
  2072. * <tr valign="top">
  2073. * <td>DAY_(1-7)</td>
  2074. * <td>Name of the n-th day of the week (DAY_1 = Sunday).</td>
  2075. * </tr>
  2076. * <tr valign="top">
  2077. * <td>ABMON_(1-12)</td>
  2078. * <td>Abbreviated name of the n-th month of the year.</td>
  2079. * </tr>
  2080. * <tr valign="top">
  2081. * <td>MON_(1-12)</td>
  2082. * <td>Name of the n-th month of the year.</td>
  2083. * </tr>
  2084. * <tr valign="top">
  2085. * <td>AM_STR</td>
  2086. * <td>String for Ante meridian.</td>
  2087. * </tr>
  2088. * <tr valign="top">
  2089. * <td>PM_STR</td>
  2090. * <td>String for Post meridian.</td>
  2091. * </tr>
  2092. * <tr valign="top">
  2093. * <td>D_T_FMT</td>
  2094. * <td>String that can be used as the format string for strftime to represent time and date.</td>
  2095. * </tr>
  2096. * <tr valign="top">
  2097. * <td>D_FMT</td>
  2098. * <td>String that can be used as the format string for strftime to represent date.</td>
  2099. * </tr>
  2100. * <tr valign="top">
  2101. * <td>T_FMT</td>
  2102. * <td>String that can be used as the format string for strftime to represent time.</td>
  2103. * </tr>
  2104. * <tr valign="top">
  2105. * <td>T_FMT_AMPM</td>
  2106. * <td>String that can be used as the format string for strftime to represent time in 12-hour format with ante/post meridian.</td>
  2107. * </tr>
  2108. * <tr valign="top">
  2109. * <td>ERA</td>
  2110. * <td>Alternate era.</td>
  2111. * </tr>
  2112. * <tr valign="top">
  2113. * <td>ERA_YEAR</td>
  2114. * <td>Year in alternate era format.</td>
  2115. * </tr>
  2116. * <tr valign="top">
  2117. * <td>ERA_D_T_FMT</td>
  2118. * <td>Date and time in alternate era format (string can be used in strftime).</td>
  2119. * </tr>
  2120. * <tr valign="top">
  2121. * <td>ERA_D_FMT</td>
  2122. * <td>Date in alternate era format (string can be used in strftime).</td>
  2123. * </tr>
  2124. * <tr valign="top">
  2125. * <td>ERA_T_FMT</td>
  2126. * <td>Time in alternate era format (string can be used in strftime).</td>
  2127. * </tr>
  2128. * <tr valign="top">
  2129. * LC_MONETARY Category Constants</td>
  2130. * </tr>
  2131. * <tr valign="top">
  2132. * <td>INT_CURR_SYMBOL</td>
  2133. * <td>International currency symbol.</td>
  2134. * </tr>
  2135. * <tr valign="top">
  2136. * <td>CURRENCY_SYMBOL</td>
  2137. * <td>Local currency symbol.</td>
  2138. * </tr>
  2139. * <tr valign="top">
  2140. * <td>CRNCYSTR</td>
  2141. * <td>Same value as CURRENCY_SYMBOL.</td>
  2142. * </tr>
  2143. * <tr valign="top">
  2144. * <td>MON_DECIMAL_POINT</td>
  2145. * <td>Decimal point character.</td>
  2146. * </tr>
  2147. * <tr valign="top">
  2148. * <td>MON_THOUSANDS_SEP</td>
  2149. * <td>Thousands separator (groups of three digits).</td>
  2150. * </tr>
  2151. * <tr valign="top">
  2152. * <td>MON_GROUPING</td>
  2153. * <td>Like "grouping" element.</td>
  2154. * </tr>
  2155. * <tr valign="top">
  2156. * <td>POSITIVE_SIGN</td>
  2157. * <td>Sign for positive values.</td>
  2158. * </tr>
  2159. * <tr valign="top">
  2160. * <td>NEGATIVE_SIGN</td>
  2161. * <td>Sign for negative values.</td>
  2162. * </tr>
  2163. * <tr valign="top">
  2164. * <td>INT_FRAC_DIGITS</td>
  2165. * <td>International fractional digits.</td>
  2166. * </tr>
  2167. * <tr valign="top">
  2168. * <td>FRAC_DIGITS</td>
  2169. * <td>Local fractional digits.</td>
  2170. * </tr>
  2171. * <tr valign="top">
  2172. * <td>P_CS_PRECEDES</td>
  2173. * <td>Returns 1 if CURRENCY_SYMBOL precedes a positive value.</td>
  2174. * </tr>
  2175. * <tr valign="top">
  2176. * <td>P_SEP_BY_SPACE</td>
  2177. * <td>Returns 1 if a space separates CURRENCY_SYMBOL from a positive value.</td>
  2178. * </tr>
  2179. * <tr valign="top">
  2180. * <td>N_CS_PRECEDES</td>
  2181. * <td>Returns 1 if CURRENCY_SYMBOL precedes a negative value.</td>
  2182. * </tr>
  2183. * <tr valign="top">
  2184. * <td>N_SEP_BY_SPACE</td>
  2185. * <td>Returns 1 if a space separates CURRENCY_SYMBOL from a negative value.</td>
  2186. * </tr>
  2187. * <tr valign="top">
  2188. * <td>P_SIGN_POSN</td>
  2189. * Returns 0 if parentheses surround the quantity and CURRENCY_SYMBOL.
  2190. * @return string the element as a string, or false if item
  2191. * is not valid.
  2192. */
  2193. function nl_langinfo ($item) {}
  2194. /**
  2195. * (PHP 4, PHP 5)<br/>
  2196. * Calculate the soundex key of a string
  2197. * @link http://php.net/manual/en/function.soundex.php
  2198. * @param string $str <p>
  2199. * The input string.
  2200. * </p>
  2201. * @return string the soundex key as a string.
  2202. */
  2203. function soundex ($str) {}
  2204. /**
  2205. * (PHP 4 &gt;= 4.0.1, PHP 5)<br/>
  2206. * Calculate Levenshtein distance between two strings
  2207. * @link http://php.net/manual/en/function.levenshtein.php
  2208. * @param string $str1 <p>
  2209. * One of the strings being evaluated for Levenshtein distance.
  2210. * </p>
  2211. * @param string $str2 <p>
  2212. * One of the strings being evaluated for Levenshtein distance.
  2213. * </p>
  2214. * @return int This function returns the Levenshtein-Distance between the
  2215. * two argument strings or -1, if one of the argument strings
  2216. * is longer than the limit of 255 characters.
  2217. */
  2218. function levenshtein ($str1, $str2) {}
  2219. /**
  2220. * (PHP 4, PHP 5)<br/>
  2221. * Return a specific character
  2222. * @link http://php.net/manual/en/function.chr.php
  2223. * @param int $ascii <p>
  2224. * The ascii code.
  2225. * </p>
  2226. * @return string the specified character.
  2227. */
  2228. function chr ($ascii) {}
  2229. /**
  2230. * (PHP 4, PHP 5)<br/>
  2231. * Return ASCII value of character
  2232. * @link http://php.net/manual/en/function.ord.php
  2233. * @param string $string <p>
  2234. * A character.
  2235. * </p>
  2236. * @return int the ASCII value as an integer.
  2237. */
  2238. function ord ($string) {}
  2239. /**
  2240. * (PHP 4, PHP 5)<br/>
  2241. * Parses the string into variables
  2242. * @link http://php.net/manual/en/function.parse-str.php
  2243. * @param string $str <p>
  2244. * The input string.
  2245. * </p>
  2246. * @param array $arr [optional] <p>
  2247. * If the second parameter arr is present,
  2248. * variables are stored in this variable as array elements instead.
  2249. * </p>
  2250. * @return void
  2251. */
  2252. function parse_str ($str, &$arr = nullarray ) {}
  2253. /**
  2254. * (PHP 5 &gt;= 5.3.0)<br/>
  2255. * Parse a CSV string into an array
  2256. * @link http://php.net/manual/en/function.str-getcsv.php
  2257. * @param string $input <p>
  2258. * The string to parse.
  2259. * </p>
  2260. * @param string $delimiter [optional] <p>
  2261. * Set the field delimiter (one character only).
  2262. * </p>
  2263. * @param string $enclosure [optional] <p>
  2264. * Set the field enclosure character (one character only).
  2265. * </p>
  2266. * @param string $escape [optional] <p>
  2267. * Set the escape character (one character only). Defaults as a backslash
  2268. * (\)
  2269. * </p>
  2270. * @return array an indexed array containing the fields read.
  2271. */
  2272. function str_getcsv ($input, $delimiter = null, $enclosure = null, $escape = null) {}
  2273. /**
  2274. * (PHP 4 &gt;= 4.0.1, PHP 5)<br/>
  2275. * Pad a string to a certain length with another string
  2276. * @link http://php.net/manual/en/function.str-pad.php
  2277. * @param string $input <p>
  2278. * The input string.
  2279. * </p>
  2280. * @param int $pad_length <p>
  2281. * If the value of pad_length is negative,
  2282. * less than, or equal to the length of the input string, no padding
  2283. * takes place.
  2284. * </p>
  2285. * @param string $pad_string [optional] <p>
  2286. * The pad_string may be truncated if the
  2287. * required number of padding characters can't be evenly divided by the
  2288. * pad_string's length.
  2289. * </p>
  2290. * @param int $pad_type [optional] <p>
  2291. * Optional argument pad_type can be
  2292. * STR_PAD_RIGHT, STR_PAD_LEFT,
  2293. * or STR_PAD_BOTH. If
  2294. * pad_type is not specified it is assumed to be
  2295. * STR_PAD_RIGHT.
  2296. * </p>
  2297. * @return string the padded string.
  2298. */
  2299. function str_pad ($input, $pad_length, $pad_string = null, $pad_type = null) {}
  2300. /**
  2301. * (PHP 4, PHP 5)<br/>
  2302. * &Alias; <function>rtrim</function>
  2303. * @link http://php.net/manual/en/function.chop.php
  2304. * @param $str
  2305. * @param $character_mask [optional]
  2306. */
  2307. function chop ($str, $character_mask) {}
  2308. /**
  2309. * (PHP 4, PHP 5)<br/>
  2310. * &Alias; <function>strstr</function>
  2311. * @link http://php.net/manual/en/function.strchr.php
  2312. * @param $haystack
  2313. * @param $needle
  2314. * @param $part [optional]
  2315. */
  2316. function strchr ($haystack, $needle, $part) {}
  2317. /**
  2318. * (PHP 4, PHP 5)<br/>
  2319. * Return a formatted string
  2320. * @link http://php.net/manual/en/function.sprintf.php
  2321. * @param string $format <p>
  2322. * The format string is composed of zero or more directives:
  2323. * ordinary characters (excluding %) that are
  2324. * copied directly to the result, and conversion
  2325. * specifications, each of which results in fetching its
  2326. * own parameter. This applies to both sprintf
  2327. * and printf.
  2328. * </p>
  2329. * <p>
  2330. * Each conversion specification consists of a percent sign
  2331. * (%), followed by one or more of these
  2332. * elements, in order:
  2333. * An optional sign specifier that forces a sign
  2334. * (- or +) to be used on a number. By default, only the - sign is used
  2335. * on a number if it's negative. This specifier forces positive numbers
  2336. * to have the + sign attached as well, and was added in PHP 4.3.0.
  2337. * @param mixed $args [optional] <p>
  2338. * </p>
  2339. * @param mixed $_ [optional]
  2340. * @return string a string produced according to the formatting string
  2341. * format.
  2342. */
  2343. function sprintf ($format, $args = null, $_ = null) {}
  2344. /**
  2345. * (PHP 4, PHP 5)<br/>
  2346. * Output a formatted string
  2347. * @link http://php.net/manual/en/function.printf.php
  2348. * @param string $format <p>
  2349. * See sprintf for a description of
  2350. * format.
  2351. * </p>
  2352. * @param mixed $args [optional] <p>
  2353. * </p>
  2354. * @param mixed $_ [optional]
  2355. * @return int the length of the outputted string.
  2356. */
  2357. function printf ($format, $args = null, $_ = null) {}
  2358. /**
  2359. * (PHP 4 &gt;= 4.1.0, PHP 5)<br/>
  2360. * Output a formatted string
  2361. * @link http://php.net/manual/en/function.vprintf.php
  2362. * @param string $format <p>
  2363. * See sprintf for a description of
  2364. * format.
  2365. * </p>
  2366. * @param array $args <p>
  2367. * </p>
  2368. * @return int the length of the outputted string.
  2369. */
  2370. function vprintf ($format, $argsarray ) {}
  2371. /**
  2372. * (PHP 4 &gt;= 4.1.0, PHP 5)<br/>
  2373. * Return a formatted string
  2374. * @link http://php.net/manual/en/function.vsprintf.php
  2375. * @param string $format <p>
  2376. * See sprintf for a description of
  2377. * format.
  2378. * </p>
  2379. * @param array $args <p>
  2380. * </p>
  2381. * @return string Return array values as a formatted string according to
  2382. * format (which is described in the documentation
  2383. * for sprintf).
  2384. */
  2385. function vsprintf ($format, $argsarray ) {}
  2386. /**
  2387. * (PHP 5)<br/>
  2388. * Write a formatted string to a stream
  2389. * @link http://php.net/manual/en/function.fprintf.php
  2390. * @param resource $handle &fs.file.pointer;
  2391. * @param string $format <p>
  2392. * See sprintf for a description of
  2393. * format.
  2394. * </p>
  2395. * @param mixed $args [optional] <p>
  2396. * </p>
  2397. * @param mixed $_ [optional]
  2398. * @return int the length of the string written.
  2399. */
  2400. function fprintf ($handle, $format, $args = null, $_ = null) {}
  2401. /**
  2402. * (PHP 5)<br/>
  2403. * Write a formatted string to a stream
  2404. * @link http://php.net/manual/en/function.vfprintf.php
  2405. * @param resource $handle <p>
  2406. * </p>
  2407. * @param string $format <p>
  2408. * See sprintf for a description of
  2409. * format.
  2410. * </p>
  2411. * @param array $args <p>
  2412. * </p>
  2413. * @return int the length of the outputted string.
  2414. */
  2415. function vfprintf ($handle, $format, $argsarray ) {}
  2416. /**
  2417. * (PHP 4 &gt;= 4.0.1, PHP 5)<br/>
  2418. * Parses input from a string according to a format
  2419. * @link http://php.net/manual/en/function.sscanf.php
  2420. * @param string $str <p>
  2421. * The input string being parsed.
  2422. * </p>
  2423. * @param string $format <p>
  2424. * The interpreted format for str, which is
  2425. * described in the documentation for sprintf with
  2426. * following differences:
  2427. * Function is not locale-aware.
  2428. * F, g, G and
  2429. * b are not supported.
  2430. * D stands for decimal number.
  2431. * i stands for integer with base detection.
  2432. * n stands for number of characters processed so far.
  2433. * </p>
  2434. * @param mixed $_ [optional]
  2435. * @return mixed If only
  2436. * two parameters were passed to this function, the values parsed
  2437. * will be returned as an array. Otherwise, if optional parameters are passed,
  2438. * the function will return the number of assigned values. The optional
  2439. * parameters must be passed by reference.
  2440. */
  2441. function sscanf ($str, $format, &$_ = null) {}
  2442. /**
  2443. * (PHP 4 &gt;= 4.0.1, PHP 5)<br/>
  2444. * Parses input from a file according to a format
  2445. * @link http://php.net/manual/en/function.fscanf.php
  2446. * @param resource $handle &fs.file.pointer;
  2447. * @param string $format <p>
  2448. * The specified format as described in the
  2449. * sprintf documentation.
  2450. * </p>
  2451. * @param mixed $_ [optional]
  2452. * @return mixed If only two parameters were passed to this function, the values parsed will be
  2453. * returned as an array. Otherwise, if optional parameters are passed, the
  2454. * function will return the number of assigned values. The optional
  2455. * parameters must be passed by reference.
  2456. */
  2457. function fscanf ($handle, $format, &$_ = null) {}
  2458. /**
  2459. * (PHP 4, PHP 5)<br/>
  2460. * Parse a URL and return its components
  2461. * @link http://php.net/manual/en/function.parse-url.php
  2462. * @param string $url <p>
  2463. * The URL to parse. Invalid characters are replaced by
  2464. * _.
  2465. * </p>
  2466. * @param int $component [optional] <p>
  2467. * Specify one of PHP_URL_SCHEME,
  2468. * PHP_URL_HOST, PHP_URL_PORT,
  2469. * PHP_URL_USER, PHP_URL_PASS,
  2470. * PHP_URL_PATH, PHP_URL_QUERY
  2471. * or PHP_URL_FRAGMENT to retrieve just a specific
  2472. * URL component as a string.
  2473. * </p>
  2474. * @return mixed On seriously malformed URLs, parse_url may return
  2475. * false and emit a E_WARNING. Otherwise an associative
  2476. * array is returned, whose components may be (at least one):
  2477. * scheme - e.g. http
  2478. * host
  2479. * port
  2480. * user
  2481. * pass
  2482. * path
  2483. * query - after the question mark ?
  2484. * fragment - after the hashmark #
  2485. * </p>
  2486. * <p>
  2487. * If the component parameter is specified a
  2488. * string is returned instead of an array.
  2489. */
  2490. function parse_url ($url, $component = null) {}
  2491. /**
  2492. * (PHP 4, PHP 5)<br/>
  2493. * URL-encodes string
  2494. * @link http://php.net/manual/en/function.urlencode.php
  2495. * @param string $str <p>
  2496. * The string to be encoded.
  2497. * </p>
  2498. * @return string a string in which all non-alphanumeric characters except
  2499. * -_. have been replaced with a percent
  2500. * (%) sign followed by two hex digits and spaces encoded
  2501. * as plus (+) signs. It is encoded the same way that the
  2502. * posted data from a WWW form is encoded, that is the same way as in
  2503. * application/x-www-form-urlencoded media type. This
  2504. * differs from the RFC 1738 encoding (see
  2505. * rawurlencode) in that for historical reasons, spaces
  2506. * are encoded as plus (+) signs.
  2507. */
  2508. function urlencode ($str) {}
  2509. /**
  2510. * (PHP 4, PHP 5)<br/>
  2511. * Decodes URL-encoded string
  2512. * @link http://php.net/manual/en/function.urldecode.php
  2513. * @param string $str <p>
  2514. * The string to be decoded.
  2515. * </p>
  2516. * @return string the decoded string.
  2517. */
  2518. function urldecode ($str) {}
  2519. /**
  2520. * (PHP 4, PHP 5)<br/>
  2521. * URL-encode according to RFC 1738
  2522. * @link http://php.net/manual/en/function.rawurlencode.php
  2523. * @param string $str <p>
  2524. * The URL to be encoded.
  2525. * </p>
  2526. * @return string a string in which all non-alphanumeric characters except
  2527. * -_. have been replaced with a percent
  2528. * (%) sign followed by two hex digits. This is the
  2529. * encoding described in RFC 1738 for
  2530. * protecting literal characters from being interpreted as special URL
  2531. * delimiters, and for protecting URLs from being mangled by transmission
  2532. * media with character conversions (like some email systems).
  2533. */
  2534. function rawurlencode ($str) {}
  2535. /**
  2536. * (PHP 4, PHP 5)<br/>
  2537. * Decode URL-encoded strings
  2538. * @link http://php.net/manual/en/function.rawurldecode.php
  2539. * @param string $str <p>
  2540. * The URL to be decoded.
  2541. * </p>
  2542. * @return string the decoded URL, as a string.
  2543. */
  2544. function rawurldecode ($str) {}
  2545. /**
  2546. * (PHP 5)<br/>
  2547. * Generate URL-encoded query string
  2548. * @link http://php.net/manual/en/function.http-build-query.php
  2549. * @param array $formdata <p>
  2550. * May be an array or object containing properties.
  2551. * </p>
  2552. * <p>
  2553. * The array form may be a simple one-dimensional structure, or an array
  2554. * of arrays (who in turn may contain other arrays).
  2555. * </p>
  2556. * @param string $numeric_prefix [optional] <p>
  2557. * If numeric indices are used in the base array and this parameter is
  2558. * provided, it will be prepended to the numeric index for elements in
  2559. * the base array only.
  2560. * </p>
  2561. * <p>
  2562. * This is meant to allow for legal variable names when the data is
  2563. * decoded by PHP or another CGI application later on.
  2564. * </p>
  2565. * @param string $arg_separator [optional] <p>
  2566. * arg_separator.output
  2567. * is used to separate arguments, unless this parameter is specified,
  2568. * and is then used.
  2569. * </p>
  2570. * @return string a URL-encoded string.
  2571. */
  2572. function http_build_query ($formdataarray , $numeric_prefix = null, $arg_separator = null) {}
  2573. /**
  2574. * (PHP 4, PHP 5)<br/>
  2575. * Returns the target of a symbolic link
  2576. * @link http://php.net/manual/en/function.readlink.php
  2577. * @param string $path <p>
  2578. * The symbolic link path.
  2579. * </p>
  2580. * @return string the contents of the symbolic link path or false on error.
  2581. */
  2582. function readlink ($path) {}
  2583. /**
  2584. * (PHP 4, PHP 5)<br/>
  2585. * Gets information about a link
  2586. * @link http://php.net/manual/en/function.linkinfo.php
  2587. * @param string $path <p>
  2588. * Path to the link.
  2589. * </p>
  2590. * @return int linkinfo returns the st_dev field
  2591. * of the Unix C stat structure returned by the lstat
  2592. * system call. Returns 0 or false in case of error.
  2593. */
  2594. function linkinfo ($path) {}
  2595. /**
  2596. * (PHP 4, PHP 5)<br/>
  2597. * Creates a symbolic link
  2598. * @link http://php.net/manual/en/function.symlink.php
  2599. * @param string $target <p>
  2600. * Target of the link.
  2601. * </p>
  2602. * @param string $link <p>
  2603. * The link name.
  2604. * </p>
  2605. * @return bool Returns true on success or false on failure.
  2606. */
  2607. function symlink ($target, $link) {}
  2608. /**
  2609. * (PHP 4, PHP 5)<br/>
  2610. * Create a hard link
  2611. * @link http://php.net/manual/en/function.link.php
  2612. * @param string $from_path <p>
  2613. * The link name.
  2614. * </p>
  2615. * @param string $to_path <p>
  2616. * Target of the link.
  2617. * </p>
  2618. * @return bool Returns true on success or false on failure.
  2619. */
  2620. function link ($from_path, $to_path) {}
  2621. /**
  2622. * (PHP 4, PHP 5)<br/>
  2623. * Deletes a file
  2624. * @link http://php.net/manual/en/function.unlink.php
  2625. * @param string $filename <p>
  2626. * Path to the file.
  2627. * </p>
  2628. * @param resource $context [optional] &note.context-support;
  2629. * @return bool Returns true on success or false on failure.
  2630. */
  2631. function unlink ($filename, $context = null) {}
  2632. /**
  2633. * (PHP 4, PHP 5)<br/>
  2634. * Execute an external program
  2635. * @link http://php.net/manual/en/function.exec.php
  2636. * @param string $command <p>
  2637. * The command that will be executed.
  2638. * </p>
  2639. * @param array $output [optional] <p>
  2640. * If the output argument is present, then the
  2641. * specified array will be filled with every line of output from the
  2642. * command. Trailing whitespace, such as \n, is not
  2643. * included in this array. Note that if the array already contains some
  2644. * elements, exec will append to the end of the array.
  2645. * If you do not want the function to append elements, call
  2646. * unset on the array before passing it to
  2647. * exec.
  2648. * </p>
  2649. * @param int $return_var [optional] <p>
  2650. * If the return_var argument is present
  2651. * along with the output argument, then the
  2652. * return status of the executed command will be written to this
  2653. * variable.
  2654. * </p>
  2655. * @return string The last line from the result of the command. If you need to execute a
  2656. * command and have all the data from the command passed directly back without
  2657. * any interference, use the passthru function.
  2658. * </p>
  2659. * <p>
  2660. * To get the output of the executed command, be sure to set and use the
  2661. * output parameter.
  2662. */
  2663. function exec ($command, &$output = nullarray , &$return_var = null) {}
  2664. /**
  2665. * (PHP 4, PHP 5)<br/>
  2666. * Execute an external program and display the output
  2667. * @link http://php.net/manual/en/function.system.php
  2668. * @param string $command <p>
  2669. * The command that will be executed.
  2670. * </p>
  2671. * @param int $return_var [optional] <p>
  2672. * If the return_var argument is present, then the
  2673. * return status of the executed command will be written to this
  2674. * variable.
  2675. * </p>
  2676. * @return string the last line of the command output on success, and false
  2677. * on failure.
  2678. */
  2679. function system ($command, &$return_var = null) {}
  2680. /**
  2681. * (PHP 4, PHP 5)<br/>
  2682. * Escape shell metacharacters
  2683. * @link http://php.net/manual/en/function.escapeshellcmd.php
  2684. * @param string $command <p>
  2685. * The command that will be escaped.
  2686. * </p>
  2687. * @return string The escaped string.
  2688. */
  2689. function escapeshellcmd ($command) {}
  2690. /**
  2691. * (PHP 4 &gt;= 4.0.3, PHP 5)<br/>
  2692. * Escape a string to be used as a shell argument
  2693. * @link http://php.net/manual/en/function.escapeshellarg.php
  2694. * @param string $arg <p>
  2695. * The argument that will be escaped.
  2696. * </p>
  2697. * @return string The escaped string.
  2698. */
  2699. function escapeshellarg ($arg) {}
  2700. /**
  2701. * (PHP 4, PHP 5)<br/>
  2702. * Execute an external program and display raw output
  2703. * @link http://php.net/manual/en/function.passthru.php
  2704. * @param string $command <p>
  2705. * The command that will be executed.
  2706. * </p>
  2707. * @param int $return_var [optional] <p>
  2708. * If the return_var argument is present, the
  2709. * return status of the Unix command will be placed here.
  2710. * </p>
  2711. * @return void
  2712. */
  2713. function passthru ($command, &$return_var = null) {}
  2714. /**
  2715. * (PHP 4, PHP 5)<br/>
  2716. * Execute command via shell and return the complete output as a string
  2717. * @link http://php.net/manual/en/function.shell-exec.php
  2718. * @param string $cmd <p>
  2719. * The command that will be executed.
  2720. * </p>
  2721. * @return string The output from the executed command.
  2722. */
  2723. function shell_exec ($cmd) {}
  2724. /**
  2725. * (PHP 4 &gt;= 4.3.0, PHP 5)<br/>
  2726. * Execute a command and open file pointers for input/output
  2727. * @link http://php.net/manual/en/function.proc-open.php
  2728. * @param string $cmd <p>
  2729. * The command to execute
  2730. * </p>
  2731. * @param array $descriptorspec <p>
  2732. * An indexed array where the key represents the descriptor number and the
  2733. * value represents how PHP will pass that descriptor to the child
  2734. * process. 0 is stdin, 1 is stdout, while 2 is stderr.
  2735. * </p>
  2736. * <p>
  2737. * Each element can be:
  2738. * An array describing the pipe to pass to the process. The first
  2739. * element is the descriptor type and the second element is an option for
  2740. * the given type. Valid types are pipe (the second
  2741. * element is either r to pass the read end of the pipe
  2742. * to the process, or w to pass the write end) and
  2743. * file (the second element is a filename).
  2744. * A stream resource representing a real file descriptor (e.g. opened file,
  2745. * a socket, STDIN).
  2746. * </p>
  2747. * <p>
  2748. * The file descriptor numbers are not limited to 0, 1 and 2 - you may
  2749. * specify any valid file descriptor number and it will be passed to the
  2750. * child process. This allows your script to interoperate with other
  2751. * scripts that run as "co-processes". In particular, this is useful for
  2752. * passing passphrases to programs like PGP, GPG and openssl in a more
  2753. * secure manner. It is also useful for reading status information
  2754. * provided by those programs on auxiliary file descriptors.
  2755. * </p>
  2756. * @param array $pipes <p>
  2757. * Will be set to an indexed array of file pointers that correspond to
  2758. * PHP's end of any pipes that are created.
  2759. * </p>
  2760. * @param string $cwd [optional] <p>
  2761. * The initial working dir for the command. This must be an
  2762. * absolute directory path, or &null;
  2763. * if you want to use the default value (the working dir of the current
  2764. * PHP process)
  2765. * </p>
  2766. * @param array $env [optional] <p>
  2767. * An array with the environment variables for the command that will be
  2768. * run, or &null; to use the same environment as the current PHP process
  2769. * </p>
  2770. * @param array $other_options [optional] <p>
  2771. * Allows you to specify additional options. Currently supported options
  2772. * include:
  2773. * suppress_errors (windows only): suppresses errors
  2774. * generated by this function when it's set to true
  2775. * bypass_shell (windows only): bypass
  2776. * cmd.exe shell when set to true
  2777. * context: stream context used when opening files
  2778. * (created with stream_context_create)
  2779. * binary_pipes: open pipes in binary mode, instead
  2780. * of using the usual stream_encoding
  2781. * </p>
  2782. * @return resource a resource representing the process, which should be freed using
  2783. * proc_close when you are finished with it. On failure
  2784. * returns false.
  2785. */
  2786. function proc_open ($cmd, $descriptorspecarray , &$pipesarray , $cwd = null, $env = nullarray , $other_options = nullarray ) {}
  2787. /**
  2788. * (PHP 4 &gt;= 4.3.0, PHP 5)<br/>
  2789. * Close a process opened by <function>proc_open</function> and return the exit code of that process
  2790. * @link http://php.net/manual/en/function.proc-close.php
  2791. * @param resource $process <p>
  2792. * The proc_open resource that will
  2793. * be closed.
  2794. * </p>
  2795. * @return int the termination status of the process that was run.
  2796. */
  2797. function proc_close ($process) {}
  2798. /**
  2799. * (PHP 5)<br/>
  2800. * Kills a process opened by proc_open
  2801. * @link http://php.net/manual/en/function.proc-terminate.php
  2802. * @param resource $process <p>
  2803. * The proc_open resource that will
  2804. * be closed.
  2805. * </p>
  2806. * @param int $signal [optional] <p>
  2807. * This optional parameter is only useful on POSIX
  2808. * operating systems; you may specify a signal to send to the process
  2809. * using the kill(2) system call. The default is
  2810. * SIGTERM.
  2811. * </p>
  2812. * @return bool the termination status of the process that was run.
  2813. */
  2814. function proc_terminate ($process, $signal = null) {}
  2815. /**
  2816. * (PHP 5)<br/>
  2817. * Get information about a process opened by <function>proc_open</function>
  2818. * @link http://php.net/manual/en/function.proc-get-status.php
  2819. * @param resource $process <p>
  2820. * The proc_open resource that will
  2821. * be evaluated.
  2822. * </p>
  2823. * @return array An array of collected information on success, and false
  2824. * on failure. The returned array contains the following elements:
  2825. * </p>
  2826. * <p>
  2827. * <tr valign="top"><td>element</td><td>type</td><td>description</td></tr>
  2828. * <tr valign="top">
  2829. * <td>command</td>
  2830. * <td>string</td>
  2831. * <td>
  2832. * The command string that was passed to proc_open.
  2833. * </td>
  2834. * </tr>
  2835. * <tr valign="top">
  2836. * <td>pid</td>
  2837. * <td>int</td>
  2838. * <td>process id</td>
  2839. * </tr>
  2840. * <tr valign="top">
  2841. * <td>running</td>
  2842. * <td>bool</td>
  2843. * <td>
  2844. * true if the process is still running, false if it has
  2845. * terminated.
  2846. * </td>
  2847. * </tr>
  2848. * <tr valign="top">
  2849. * <td>signaled</td>
  2850. * <td>bool</td>
  2851. * <td>
  2852. * true if the child process has been terminated by
  2853. * an uncaught signal. Always set to false on Windows.
  2854. * </td>
  2855. * </tr>
  2856. * <tr valign="top">
  2857. * <td>stopped</td>
  2858. * <td>bool</td>
  2859. * <td>
  2860. * true if the child process has been stopped by a
  2861. * signal. Always set to false on Windows.
  2862. * </td>
  2863. * </tr>
  2864. * <tr valign="top">
  2865. * <td>exitcode</td>
  2866. * <td>int</td>
  2867. * <td>
  2868. * The exit code returned by the process (which is only
  2869. * meaningful if running is false).
  2870. * Only first call of this function return real value, next calls return
  2871. * -1.
  2872. * </td>
  2873. * </tr>
  2874. * <tr valign="top">
  2875. * <td>termsig</td>
  2876. * <td>int</td>
  2877. * <td>
  2878. * The number of the signal that caused the child process to terminate
  2879. * its execution (only meaningful if signaled is true).
  2880. * </td>
  2881. * </tr>
  2882. * <tr valign="top">
  2883. * <td>stopsig</td>
  2884. * <td>int</td>
  2885. * <td>
  2886. * The number of the signal that caused the child process to stop its
  2887. * execution (only meaningful if stopped is true).
  2888. * </td>
  2889. * </tr>
  2890. */
  2891. function proc_get_status ($process) {}
  2892. /**
  2893. * (PHP 5)<br/>
  2894. * Change the priority of the current process
  2895. * @link http://php.net/manual/en/function.proc-nice.php
  2896. * @param int $increment <p>
  2897. * The increment value of the priority change.
  2898. * </p>
  2899. * @return bool Returns true on success or false on failure.
  2900. * If an error occurs, like the user lacks permission to change the priority,
  2901. * an error of level E_WARNING is also generated.
  2902. */
  2903. function proc_nice ($increment) {}
  2904. /**
  2905. * (PHP 4, PHP 5)<br/>
  2906. * Generate a random integer
  2907. * @link http://php.net/manual/en/function.rand.php
  2908. * @param $min [optional]
  2909. * @param $max [optional]
  2910. * @return int A pseudo random value between min
  2911. * (or 0) and max (or getrandmax, inclusive).
  2912. */
  2913. function rand ($min, $max) {}
  2914. /**
  2915. * (PHP 4, PHP 5)<br/>
  2916. * Seed the random number generator
  2917. * @link http://php.net/manual/en/function.srand.php
  2918. * @param int $seed [optional] <p>
  2919. * Optional seed value
  2920. * </p>
  2921. * @return void
  2922. */
  2923. function srand ($seed = null) {}
  2924. /**
  2925. * (PHP 4, PHP 5)<br/>
  2926. * Show largest possible random value
  2927. * @link http://php.net/manual/en/function.getrandmax.php
  2928. * @return int The largest possible random value returned by rand
  2929. */
  2930. function getrandmax () {}
  2931. /**
  2932. * (PHP 4, PHP 5)<br/>
  2933. * Generate a better random value
  2934. * @link http://php.net/manual/en/function.mt-rand.php
  2935. * @param $min [optional]
  2936. * @param $max [optional]
  2937. * @return int A random integer value between min (or 0)
  2938. * and max (or mt_getrandmax, inclusive)
  2939. */
  2940. function mt_rand ($min, $max) {}
  2941. /**
  2942. * (PHP 4, PHP 5)<br/>
  2943. * Seed the better random number generator
  2944. * @link http://php.net/manual/en/function.mt-srand.php
  2945. * @param int $seed [optional] <p>
  2946. * An optional seed value
  2947. * </p>
  2948. * @return void
  2949. */
  2950. function mt_srand ($seed = null) {}
  2951. /**
  2952. * (PHP 4, PHP 5)<br/>
  2953. * Show largest possible random value
  2954. * @link http://php.net/manual/en/function.mt-getrandmax.php
  2955. * @return int the maximum random value returned by mt_rand
  2956. */
  2957. function mt_getrandmax () {}
  2958. /**
  2959. * (PHP 4, PHP 5)<br/>
  2960. * Get port number associated with an Internet service and protocol
  2961. * @link http://php.net/manual/en/function.getservbyname.php
  2962. * @param string $service <p>
  2963. * The Internet service name, as a string.
  2964. * </p>
  2965. * @param string $protocol <p>
  2966. * protocol is either "tcp"
  2967. * or "udp" (in lowercase).
  2968. * </p>
  2969. * @return int the port number, or false if service or
  2970. * protocol is not found.
  2971. */
  2972. function getservbyname ($service, $protocol) {}
  2973. /**
  2974. * (PHP 4, PHP 5)<br/>
  2975. * Get Internet service which corresponds to port and protocol
  2976. * @link http://php.net/manual/en/function.getservbyport.php
  2977. * @param int $port <p>
  2978. * The port number.
  2979. * </p>
  2980. * @param string $protocol <p>
  2981. * protocol is either "tcp"
  2982. * or "udp" (in lowercase).
  2983. * </p>
  2984. * @return string the Internet service name as a string.
  2985. */
  2986. function getservbyport ($port, $protocol) {}
  2987. /**
  2988. * (PHP 4, PHP 5)<br/>
  2989. * Get protocol number associated with protocol name
  2990. * @link http://php.net/manual/en/function.getprotobyname.php
  2991. * @param string $name <p>
  2992. * The protocol name.
  2993. * </p>
  2994. * @return int the protocol number or -1 if the protocol is not found.
  2995. */
  2996. function getprotobyname ($name) {}
  2997. /**
  2998. * (PHP 4, PHP 5)<br/>
  2999. * Get protocol name associated with protocol number
  3000. * @link http://php.net/manual/en/function.getprotobynumber.php
  3001. * @param int $number <p>
  3002. * The protocol number.
  3003. * </p>
  3004. * @return string the protocol name as a string.
  3005. */
  3006. function getprotobynumber ($number) {}
  3007. /**
  3008. * (PHP 4, PHP 5)<br/>
  3009. * Gets PHP script owner's UID
  3010. * @link http://php.net/manual/en/function.getmyuid.php
  3011. * @return int the user ID of the current script, or false on error.
  3012. */
  3013. function getmyuid () {}
  3014. /**
  3015. * (PHP 4 &gt;= 4.1.0, PHP 5)<br/>
  3016. * Get PHP script owner's GID
  3017. * @link http://php.net/manual/en/function.getmygid.php
  3018. * @return int the group ID of the current script, or false on error.
  3019. */
  3020. function getmygid () {}
  3021. /**
  3022. * (PHP 4, PHP 5)<br/>
  3023. * Gets PHP's process ID
  3024. * @link http://php.net/manual/en/function.getmypid.php
  3025. * @return int the current PHP process ID, or false on error.
  3026. */
  3027. function getmypid () {}
  3028. /**
  3029. * (PHP 4, PHP 5)<br/>
  3030. * Gets the inode of the current script
  3031. * @link http://php.net/manual/en/function.getmyinode.php
  3032. * @return int the current script's inode as an integer, or false on error.
  3033. */
  3034. function getmyinode () {}
  3035. /**
  3036. * (PHP 4, PHP 5)<br/>
  3037. * Gets time of last page modification
  3038. * @link http://php.net/manual/en/function.getlastmod.php
  3039. * @return int the time of the last modification of the current
  3040. * page. The value returned is a Unix timestamp, suitable for
  3041. * feeding to date. Returns false on error.
  3042. */
  3043. function getlastmod () {}
  3044. /**
  3045. * (PHP 4, PHP 5)<br/>
  3046. * Decodes data encoded with MIME base64
  3047. * @link http://php.net/manual/en/function.base64-decode.php
  3048. * @param string $data <p>
  3049. * The encoded data.
  3050. * </p>
  3051. * @param bool $strict [optional] <p>
  3052. * Returns false if input contains character from outside the base64
  3053. * alphabet.
  3054. * </p>
  3055. * @return string the original data&return.falseforfailure;. The returned data may be
  3056. * binary.
  3057. */
  3058. function base64_decode ($data, $strict = null) {}
  3059. /**
  3060. * (PHP 4, PHP 5)<br/>
  3061. * Encodes data with MIME base64
  3062. * @link http://php.net/manual/en/function.base64-encode.php
  3063. * @param string $data <p>
  3064. * The data to encode.
  3065. * </p>
  3066. * @return string The encoded data, as a string.
  3067. */
  3068. function base64_encode ($data) {}
  3069. /**
  3070. * (PHP 5)<br/>
  3071. * Uuencode a string
  3072. * @link http://php.net/manual/en/function.convert-uuencode.php
  3073. * @param string $data <p>
  3074. * The data to be encoded.
  3075. * </p>
  3076. * @return string the uuencoded data.
  3077. */
  3078. function convert_uuencode ($data) {}
  3079. /**
  3080. * (PHP 5)<br/>
  3081. * Decode a uuencoded string
  3082. * @link http://php.net/manual/en/function.convert-uudecode.php
  3083. * @param string $data <p>
  3084. * The uuencoded data.
  3085. * </p>
  3086. * @return string the decoded data as a string.
  3087. */
  3088. function convert_uudecode ($data) {}
  3089. /**
  3090. * (PHP 4, PHP 5)<br/>
  3091. * Absolute value
  3092. * @link http://php.net/manual/en/function.abs.php
  3093. * @param mixed $number <p>
  3094. * The numeric value to process
  3095. * </p>
  3096. * @return number The absolute value of number. If the
  3097. * argument number is
  3098. * of type float, the return type is also float,
  3099. * otherwise it is integer (as float usually has a
  3100. * bigger value range than integer).
  3101. */
  3102. function abs ($number) {}
  3103. /**
  3104. * (PHP 4, PHP 5)<br/>
  3105. * Round fractions up
  3106. * @link http://php.net/manual/en/function.ceil.php
  3107. * @param float $value <p>
  3108. * The value to round
  3109. * </p>
  3110. * @return float value rounded up to the next highest
  3111. * integer.
  3112. * The return value of ceil is still of type
  3113. * float as the value range of float is
  3114. * usually bigger than that of integer.
  3115. */
  3116. function ceil ($value) {}
  3117. /**
  3118. * (PHP 4, PHP 5)<br/>
  3119. * Round fractions down
  3120. * @link http://php.net/manual/en/function.floor.php
  3121. * @param float $value <p>
  3122. * The numeric value to round
  3123. * </p>
  3124. * @return float value rounded to the next lowest integer.
  3125. * The return value of floor is still of type
  3126. * float because the value range of float is
  3127. * usually bigger than that of integer.
  3128. */
  3129. function floor ($value) {}
  3130. /**
  3131. * (PHP 4, PHP 5)<br/>
  3132. * Rounds a float
  3133. * @link http://php.net/manual/en/function.round.php
  3134. * @param float $val <p>
  3135. * The value to round
  3136. * </p>
  3137. * @param int $precision [optional] <p>
  3138. * The optional number of decimal digits to round to.
  3139. * </p>
  3140. * @param int $mode [optional] <p>
  3141. * One of PHP_ROUND_HALF_UP,
  3142. * PHP_ROUND_HALF_DOWN,
  3143. * PHP_ROUND_HALF_EVEN, or
  3144. * PHP_ROUND_HALF_ODD.
  3145. * </p>
  3146. * @return float The rounded value
  3147. */
  3148. function round ($val, $precision = null, $mode = null) {}
  3149. /**
  3150. * (PHP 4, PHP 5)<br/>
  3151. * Sine
  3152. * @link http://php.net/manual/en/function.sin.php
  3153. * @param float $arg <p>
  3154. * A value in radians
  3155. * </p>
  3156. * @return float The sine of arg
  3157. */
  3158. function sin ($arg) {}
  3159. /**
  3160. * (PHP 4, PHP 5)<br/>
  3161. * Cosine
  3162. * @link http://php.net/manual/en/function.cos.php
  3163. * @param float $arg <p>
  3164. * An angle in radians
  3165. * </p>
  3166. * @return float The cosine of arg
  3167. */
  3168. function cos ($arg) {}
  3169. /**
  3170. * (PHP 4, PHP 5)<br/>
  3171. * Tangent
  3172. * @link http://php.net/manual/en/function.tan.php
  3173. * @param float $arg <p>
  3174. * The argument to process in radians
  3175. * </p>
  3176. * @return float The tangent of arg
  3177. */
  3178. function tan ($arg) {}
  3179. /**
  3180. * (PHP 4, PHP 5)<br/>
  3181. * Arc sine
  3182. * @link http://php.net/manual/en/function.asin.php
  3183. * @param float $arg <p>
  3184. * The argument to process
  3185. * </p>
  3186. * @return float The arc sine of arg in radians
  3187. */
  3188. function asin ($arg) {}
  3189. /**
  3190. * (PHP 4, PHP 5)<br/>
  3191. * Arc cosine
  3192. * @link http://php.net/manual/en/function.acos.php
  3193. * @param float $arg <p>
  3194. * The argument to process
  3195. * </p>
  3196. * @return float The arc cosine of arg in radians.
  3197. */
  3198. function acos ($arg) {}
  3199. /**
  3200. * (PHP 4, PHP 5)<br/>
  3201. * Arc tangent
  3202. * @link http://php.net/manual/en/function.atan.php
  3203. * @param float $arg <p>
  3204. * The argument to process
  3205. * </p>
  3206. * @return float The arc tangent of arg in radians.
  3207. */
  3208. function atan ($arg) {}
  3209. /**
  3210. * (PHP 4 &gt;= 4.1.0, PHP 5)<br/>
  3211. * Inverse hyperbolic tangent
  3212. * @link http://php.net/manual/en/function.atanh.php
  3213. * @param float $arg <p>
  3214. * The argument to process
  3215. * </p>
  3216. * @return float Inverse hyperbolic tangent of arg
  3217. */
  3218. function atanh ($arg) {}
  3219. /**
  3220. * (PHP 4, PHP 5)<br/>
  3221. * Arc tangent of two variables
  3222. * @link http://php.net/manual/en/function.atan2.php
  3223. * @param float $y <p>
  3224. * Dividend parameter
  3225. * </p>
  3226. * @param float $x <p>
  3227. * Divisor parameter
  3228. * </p>
  3229. * @return float The arc tangent of y/x
  3230. * in radians.
  3231. */
  3232. function atan2 ($y, $x) {}
  3233. /**
  3234. * (PHP 4 &gt;= 4.1.0, PHP 5)<br/>
  3235. * Hyperbolic sine
  3236. * @link http://php.net/manual/en/function.sinh.php
  3237. * @param float $arg <p>
  3238. * The argument to process
  3239. * </p>
  3240. * @return float The hyperbolic sine of arg
  3241. */
  3242. function sinh ($arg) {}
  3243. /**
  3244. * (PHP 4 &gt;= 4.1.0, PHP 5)<br/>
  3245. * Hyperbolic cosine
  3246. * @link http://php.net/manual/en/function.cosh.php
  3247. * @param float $arg <p>
  3248. * The argument to process
  3249. * </p>
  3250. * @return float The hyperbolic cosine of arg
  3251. */
  3252. function cosh ($arg) {}
  3253. /**
  3254. * (PHP 4 &gt;= 4.1.0, PHP 5)<br/>
  3255. * Hyperbolic tangent
  3256. * @link http://php.net/manual/en/function.tanh.php
  3257. * @param float $arg <p>
  3258. * The argument to process
  3259. * </p>
  3260. * @return float The hyperbolic tangent of arg
  3261. */
  3262. function tanh ($arg) {}
  3263. /**
  3264. * (PHP 4 &gt;= 4.1.0, PHP 5)<br/>
  3265. * Inverse hyperbolic sine
  3266. * @link http://php.net/manual/en/function.asinh.php
  3267. * @param float $arg <p>
  3268. * The argument to process
  3269. * </p>
  3270. * @return float The inverse hyperbolic sine of arg
  3271. */
  3272. function asinh ($arg) {}
  3273. /**
  3274. * (PHP 4 &gt;= 4.1.0, PHP 5)<br/>
  3275. * Inverse hyperbolic cosine
  3276. * @link http://php.net/manual/en/function.acosh.php
  3277. * @param float $arg <p>
  3278. * The value to process
  3279. * </p>
  3280. * @return float The inverse hyperbolic cosine of arg
  3281. */
  3282. function acosh ($arg) {}
  3283. /**
  3284. * (PHP 4 &gt;= 4.1.0, PHP 5)<br/>
  3285. * Returns exp(number) - 1, computed in a way that is accurate even
  3286. when the value of number is close to zero
  3287. * @link http://php.net/manual/en/function.expm1.php
  3288. * @param float $arg <p>
  3289. * The argument to process
  3290. * </p>
  3291. * @return float 'e' to the power of arg minus one
  3292. */
  3293. function expm1 ($arg) {}
  3294. /**
  3295. * (PHP 4 &gt;= 4.1.0, PHP 5)<br/>
  3296. * Returns log(1 + number), computed in a way that is accurate even when
  3297. the value of number is close to zero
  3298. * @link http://php.net/manual/en/function.log1p.php
  3299. * @param float $number <p>
  3300. * The argument to process
  3301. * </p>
  3302. * @return float log(1 + number)
  3303. */
  3304. function log1p ($number) {}
  3305. /**
  3306. * (PHP 4, PHP 5)<br/>
  3307. * Get value of pi
  3308. * @link http://php.net/manual/en/function.pi.php
  3309. * @return float The value of pi as float.
  3310. */
  3311. function pi () {}
  3312. /**
  3313. * (PHP 4 &gt;= 4.2.0, PHP 5)<br/>
  3314. * Finds whether a value is a legal finite number
  3315. * @link http://php.net/manual/en/function.is-finite.php
  3316. * @param float $val <p>
  3317. * The value to check
  3318. * </p>
  3319. * @return bool true if val is a legal finite
  3320. * number within the allowed range for a PHP float on this platform,
  3321. * else false.
  3322. */
  3323. function is_finite ($val) {}
  3324. /**
  3325. * (PHP 4 &gt;= 4.2.0, PHP 5)<br/>
  3326. * Finds whether a value is not a number
  3327. * @link http://php.net/manual/en/function.is-nan.php
  3328. * @param float $val <p>
  3329. * The value to check
  3330. * </p>
  3331. * @return bool true if val is 'not a number',
  3332. * else false.
  3333. */
  3334. function is_nan ($val) {}
  3335. /**
  3336. * (PHP 4 &gt;= 4.2.0, PHP 5)<br/>
  3337. * Finds whether a value is infinite
  3338. * @link http://php.net/manual/en/function.is-infinite.php
  3339. * @param float $val <p>
  3340. * The value to check
  3341. * </p>
  3342. * @return bool true if val is infinite, else false.
  3343. */
  3344. function is_infinite ($val) {}
  3345. /**
  3346. * (PHP 4, PHP 5)<br/>
  3347. * Exponential expression
  3348. * @link http://php.net/manual/en/function.pow.php
  3349. * @param number $base <p>
  3350. * The base to use
  3351. * </p>
  3352. * @param number $exp <p>
  3353. * The exponent
  3354. * </p>
  3355. * @return number base raised to the power of exp.
  3356. * If the result can be represented as integer it will be returned as type
  3357. * integer, else it will be returned as type float.
  3358. * If the power cannot be computed false will be returned instead.
  3359. */
  3360. function pow ($base, $exp) {}
  3361. /**
  3362. * (PHP 4, PHP 5)<br/>
  3363. * Calculates the exponent of <constant>e</constant>
  3364. * @link http://php.net/manual/en/function.exp.php
  3365. * @param float $arg <p>
  3366. * The argument to process
  3367. * </p>
  3368. * @return float 'e' raised to the power of arg
  3369. */
  3370. function exp ($arg) {}
  3371. /**
  3372. * (PHP 4, PHP 5)<br/>
  3373. * Natural logarithm
  3374. * @link http://php.net/manual/en/function.log.php
  3375. * @param float $arg <p>
  3376. * The value to calculate the logarithm for
  3377. * </p>
  3378. * @param float $base [optional] <p>
  3379. * The optional logarithmic base to use
  3380. * (defaults to 'e' and so to the natural logarithm).
  3381. * </p>
  3382. * @return float The logarithm of arg to
  3383. * base, if given, or the
  3384. * natural logarithm.
  3385. */
  3386. function log ($arg, $base = null) {}
  3387. /**
  3388. * (PHP 4, PHP 5)<br/>
  3389. * Base-10 logarithm
  3390. * @link http://php.net/manual/en/function.log10.php
  3391. * @param float $arg <p>
  3392. * The argument to process
  3393. * </p>
  3394. * @return float The base-10 logarithm of arg
  3395. */
  3396. function log10 ($arg) {}
  3397. /**
  3398. * (PHP 4, PHP 5)<br/>
  3399. * Square root
  3400. * @link http://php.net/manual/en/function.sqrt.php
  3401. * @param float $arg <p>
  3402. * The argument to process
  3403. * </p>
  3404. * @return float The square root of arg
  3405. * or the special value NAN for negative numbers.
  3406. */
  3407. function sqrt ($arg) {}
  3408. /**
  3409. * (PHP 4 &gt;= 4.1.0, PHP 5)<br/>
  3410. * Calculate the length of the hypotenuse of a right-angle triangle
  3411. * @link http://php.net/manual/en/function.hypot.php
  3412. * @param float $x <p>
  3413. * Length of first side
  3414. * </p>
  3415. * @param float $y <p>
  3416. * Length of second side
  3417. * </p>
  3418. * @return float Calculated length of the hypotenuse
  3419. */
  3420. function hypot ($x, $y) {}
  3421. /**
  3422. * (PHP 4, PHP 5)<br/>
  3423. * Converts the number in degrees to the radian equivalent
  3424. * @link http://php.net/manual/en/function.deg2rad.php
  3425. * @param float $number <p>
  3426. * Angular value in degrees
  3427. * </p>
  3428. * @return float The radian equivalent of number
  3429. */
  3430. function deg2rad ($number) {}
  3431. /**
  3432. * (PHP 4, PHP 5)<br/>
  3433. * Converts the radian number to the equivalent number in degrees
  3434. * @link http://php.net/manual/en/function.rad2deg.php
  3435. * @param float $number <p>
  3436. * A radian value
  3437. * </p>
  3438. * @return float The equivalent of number in degrees
  3439. */
  3440. function rad2deg ($number) {}
  3441. /**
  3442. * (PHP 4, PHP 5)<br/>
  3443. * Binary to decimal
  3444. * @link http://php.net/manual/en/function.bindec.php
  3445. * @param string $binary_string <p>
  3446. * The binary string to convert
  3447. * </p>
  3448. * @return number The decimal value of binary_string
  3449. */
  3450. function bindec ($binary_string) {}
  3451. /**
  3452. * (PHP 4, PHP 5)<br/>
  3453. * Hexadecimal to decimal
  3454. * @link http://php.net/manual/en/function.hexdec.php
  3455. * @param string $hex_string <p>
  3456. * The hexadecimal string to convert
  3457. * </p>
  3458. * @return number The decimal representation of hex_string
  3459. */
  3460. function hexdec ($hex_string) {}
  3461. /**
  3462. * (PHP 4, PHP 5)<br/>
  3463. * Octal to decimal
  3464. * @link http://php.net/manual/en/function.octdec.php
  3465. * @param string $octal_string <p>
  3466. * The octal string to convert
  3467. * </p>
  3468. * @return number The decimal representation of octal_string
  3469. */
  3470. function octdec ($octal_string) {}
  3471. /**
  3472. * (PHP 4, PHP 5)<br/>
  3473. * Decimal to binary
  3474. * @link http://php.net/manual/en/function.decbin.php
  3475. * @param int $number <p>
  3476. * Decimal value to convert
  3477. * </p>
  3478. * <table>
  3479. * Range of inputs on 32-bit machines
  3480. * <tr valign="top">
  3481. * <td>positive number</td>
  3482. * <td>negative number</td>
  3483. * <td>return value</td>
  3484. * </tr>
  3485. * <tr valign="top">
  3486. * <td>0</td>
  3487. * <td></td>
  3488. * <td>0</td>
  3489. * </tr>
  3490. * <tr valign="top">
  3491. * <td>1</td>
  3492. * <td></td>
  3493. * <td>1</td>
  3494. * </tr>
  3495. * <tr valign="top">
  3496. * <td>2</td>
  3497. * <td></td>
  3498. * <td>10</td>
  3499. * </tr>
  3500. * <tr valign="top">
  3501. * ... normal progression ...</td>
  3502. * </tr>
  3503. * <tr valign="top">
  3504. * <td>2147483646</td>
  3505. * <td></td>
  3506. * <td>1111111111111111111111111111110</td>
  3507. * </tr>
  3508. * <tr valign="top">
  3509. * <td>2147483647 (largest signed integer)</td>
  3510. * <td></td>
  3511. * <td>1111111111111111111111111111111 (31 1's)</td>
  3512. * </tr>
  3513. * <tr valign="top">
  3514. * <td>2147483648</td>
  3515. * <td>-2147483648</td>
  3516. * <td>10000000000000000000000000000000</td>
  3517. * </tr>
  3518. * <tr valign="top">
  3519. * ... normal progression ...</td>
  3520. * </tr>
  3521. * <tr valign="top">
  3522. * <td>4294967294</td>
  3523. * <td>-2</td>
  3524. * <td>11111111111111111111111111111110</td>
  3525. * </tr>
  3526. * <tr valign="top">
  3527. * <td>4294967295 (largest unsigned integer)</td>
  3528. * <td>-1</td>
  3529. * <td>11111111111111111111111111111111 (32 1's)</td>
  3530. * </tr>
  3531. * </table>
  3532. * <table>
  3533. * Range of inputs on 64-bit machines
  3534. * <tr valign="top">
  3535. * <td>positive number</td>
  3536. * <td>negative number</td>
  3537. * <td>return value</td>
  3538. * </tr>
  3539. * <tr valign="top">
  3540. * <td>0</td>
  3541. * <td></td>
  3542. * <td>0</td>
  3543. * </tr>
  3544. * <tr valign="top">
  3545. * <td>1</td>
  3546. * <td></td>
  3547. * <td>1</td>
  3548. * </tr>
  3549. * <tr valign="top">
  3550. * <td>2</td>
  3551. * <td></td>
  3552. * <td>10</td>
  3553. * </tr>
  3554. * <tr valign="top">
  3555. * ... normal progression ...</td>
  3556. * </tr>
  3557. * <tr valign="top">
  3558. * <td>9223372036854775806</td>
  3559. * <td></td>
  3560. * <td>111111111111111111111111111111111111111111111111111111111111110</td>
  3561. * </tr>
  3562. * <tr valign="top">
  3563. * <td>9223372036854775807 (largest signed integer)</td>
  3564. * <td></td>
  3565. * <td>111111111111111111111111111111111111111111111111111111111111111 (31 1's)</td>
  3566. * </tr>
  3567. * <tr valign="top">
  3568. * <td></td>
  3569. * <td>-9223372036854775808</td>
  3570. * <td>1000000000000000000000000000000000000000000000000000000000000000</td>
  3571. * </tr>
  3572. * <tr valign="top">
  3573. * ... normal progression ...</td>
  3574. * </tr>
  3575. * <tr valign="top">
  3576. * <td></td>
  3577. * <td>-2</td>
  3578. * <td>1111111111111111111111111111111111111111111111111111111111111110</td>
  3579. * </tr>
  3580. * <tr valign="top">
  3581. * <td></td>
  3582. * <td>-1</td>
  3583. * <td>1111111111111111111111111111111111111111111111111111111111111111 (64 1's)</td>
  3584. * </tr>
  3585. * </table>
  3586. * @return string Binary string representation of number
  3587. */
  3588. function decbin ($number) {}
  3589. /**
  3590. * (PHP 4, PHP 5)<br/>
  3591. * Decimal to octal
  3592. * @link http://php.net/manual/en/function.decoct.php
  3593. * @param int $number <p>
  3594. * Decimal value to convert
  3595. * </p>
  3596. * @return string Octal string representation of number
  3597. */
  3598. function decoct ($number) {}
  3599. /**
  3600. * (PHP 4, PHP 5)<br/>
  3601. * Decimal to hexadecimal
  3602. * @link http://php.net/manual/en/function.dechex.php
  3603. * @param int $number <p>
  3604. * Decimal value to convert
  3605. * </p>
  3606. * @return string Hexadecimal string representation of number
  3607. */
  3608. function dechex ($number) {}
  3609. /**
  3610. * (PHP 4, PHP 5)<br/>
  3611. * Convert a number between arbitrary bases
  3612. * @link http://php.net/manual/en/function.base-convert.php
  3613. * @param string $number <p>
  3614. * The number to convert
  3615. * </p>
  3616. * @param int $frombase <p>
  3617. * The base number is in
  3618. * </p>
  3619. * @param int $tobase <p>
  3620. * The base to convert number to
  3621. * </p>
  3622. * @return string number converted to base tobase
  3623. */
  3624. function base_convert ($number, $frombase, $tobase) {}
  3625. /**
  3626. * (PHP 4, PHP 5)<br/>
  3627. * Format a number with grouped thousands
  3628. * @link http://php.net/manual/en/function.number-format.php
  3629. * @param float $number <p>
  3630. * The number being formatted.
  3631. * </p>
  3632. * @param int $decimals [optional] <p>
  3633. * Sets the number of decimal points.
  3634. * </p>
  3635. * @return string A formatted version of number.
  3636. */
  3637. function number_format ($number, $decimals = null) {}
  3638. /**
  3639. * (PHP 4 &gt;= 4.2.0, PHP 5)<br/>
  3640. * Returns the floating point remainder (modulo) of the division
  3641. of the arguments
  3642. * @link http://php.net/manual/en/function.fmod.php
  3643. * @param float $x <p>
  3644. * The dividend
  3645. * </p>
  3646. * @param float $y <p>
  3647. * The divisor
  3648. * </p>
  3649. * @return float The floating point remainder of
  3650. * x/y
  3651. */
  3652. function fmod ($x, $y) {}
  3653. /**
  3654. * (PHP 5 &gt;= 5.1.0)<br/>
  3655. * Converts a packed internet address to a human readable representation
  3656. * @link http://php.net/manual/en/function.inet-ntop.php
  3657. * @param string $in_addr <p>
  3658. * A 32bit IPv4, or 128bit IPv6 address.
  3659. * </p>
  3660. * @return string a string representation of the address&return.falseforfailure;.
  3661. */
  3662. function inet_ntop ($in_addr) {}
  3663. /**
  3664. * (PHP 5 &gt;= 5.1.0)<br/>
  3665. * Converts a human readable IP address to its packed in_addr representation
  3666. * @link http://php.net/manual/en/function.inet-pton.php
  3667. * @param string $address <p>
  3668. * A human readable IPv4 or IPv6 address.
  3669. * </p>
  3670. * @return string the in_addr representation of the given
  3671. * address
  3672. */
  3673. function inet_pton ($address) {}
  3674. /**
  3675. * (PHP 4, PHP 5)<br/>
  3676. * Converts a string containing an (IPv4) Internet Protocol dotted address into a proper address
  3677. * @link http://php.net/manual/en/function.ip2long.php
  3678. * @param string $ip_address <p>
  3679. * A standard format address.
  3680. * </p>
  3681. * @return int the IPv4 address or false if ip_address
  3682. * is invalid.
  3683. */
  3684. function ip2long ($ip_address) {}
  3685. /**
  3686. * (PHP 4, PHP 5)<br/>
  3687. * Converts an (IPv4) Internet network address into a string in Internet standard dotted format
  3688. * @link http://php.net/manual/en/function.long2ip.php
  3689. * @param string $proper_address <p>
  3690. * A proper address representation.
  3691. * </p>
  3692. * @return string the Internet IP address as a string.
  3693. */
  3694. function long2ip ($proper_address) {}
  3695. /**
  3696. * (PHP 4, PHP 5)<br/>
  3697. * Gets the value of an environment variable
  3698. * @link http://php.net/manual/en/function.getenv.php
  3699. * @param string $varname <p>
  3700. * The variable name.
  3701. * </p>
  3702. * @return string the value of the environment variable
  3703. * varname, or false on an error.
  3704. */
  3705. function getenv ($varname) {}
  3706. /**
  3707. * (PHP 4, PHP 5)<br/>
  3708. * Sets the value of an environment variable
  3709. * @link http://php.net/manual/en/function.putenv.php
  3710. * @param string $setting <p>
  3711. * The setting, like "FOO=BAR"
  3712. * </p>
  3713. * @return bool Returns true on success or false on failure.
  3714. */
  3715. function putenv ($setting) {}
  3716. /**
  3717. * (PHP 4 &gt;= 4.3.0, PHP 5)<br/>
  3718. * Gets options from the command line argument list
  3719. * @link http://php.net/manual/en/function.getopt.php
  3720. * @param string $options Each character in this string will be used as option characters and
  3721. * matched against options passed to the script starting with a single
  3722. * hyphen (-).
  3723. * For example, an option string "x" recognizes an
  3724. * option -x.
  3725. * Only a-z, A-Z and 0-9 are allowed.
  3726. * @param array $longopts [optional] An array of options. Each element in this array will be used as option
  3727. * strings and matched against options passed to the script starting with
  3728. * two hyphens (--).
  3729. * For example, an longopts element "opt" recognizes an
  3730. * option --opt.
  3731. * Prior to PHP5.3.0 this parameter was only available on few systems
  3732. * @return array This function will return an array of option / argument pairs or false on
  3733. * failure.
  3734. */
  3735. function getopt ($options, $longopts = nullarray ) {}
  3736. /**
  3737. * (PHP 5 &gt;= 5.1.3)<br/>
  3738. * Gets system load average
  3739. * @link http://php.net/manual/en/function.sys-getloadavg.php
  3740. * @return array an array with three samples (last 1, 5 and 15
  3741. * minutes).
  3742. */
  3743. function sys_getloadavg () {}
  3744. /**
  3745. * (PHP 4, PHP 5)<br/>
  3746. * Return current Unix timestamp with microseconds
  3747. * @link http://php.net/manual/en/function.microtime.php
  3748. * @param bool $get_as_float [optional] <p>
  3749. * When called without the optional argument, this function returns the string
  3750. * "msec sec" where sec is the current time measured in the number of
  3751. * seconds since the Unix Epoch (0:00:00 January 1, 1970 GMT), and
  3752. * msec is the microseconds part.
  3753. * Both portions of the string are returned in units of seconds.
  3754. * </p>
  3755. * <p>
  3756. * If the optional get_as_float is set to
  3757. * true then a float (in seconds) is returned.
  3758. * </p>
  3759. * @return mixed
  3760. */
  3761. function microtime ($get_as_float = null) {}
  3762. /**
  3763. * (PHP 4, PHP 5)<br/>
  3764. * Get current time
  3765. * @link http://php.net/manual/en/function.gettimeofday.php
  3766. * @param bool $return_float [optional] <p>
  3767. * When set to true, a float instead of an array is returned.
  3768. * </p>
  3769. * @return mixed By default an array is returned. If return_float
  3770. * is set, then a float is returned.
  3771. * </p>
  3772. * <p>
  3773. * Array keys:
  3774. * "sec" - seconds since the Unix Epoch
  3775. * "usec" - microseconds
  3776. * "minuteswest" - minutes west of Greenwich
  3777. * "dsttime" - type of dst correction
  3778. */
  3779. function gettimeofday ($return_float = null) {}
  3780. /**
  3781. * (PHP 4, PHP 5)<br/>
  3782. * Gets the current resource usages
  3783. * @link http://php.net/manual/en/function.getrusage.php
  3784. * @param int $who [optional] <p>
  3785. * If who is 1, getrusage will be called with
  3786. * RUSAGE_CHILDREN.
  3787. * </p>
  3788. * @return array an associative array containing the data returned from the system
  3789. * call. All entries are accessible by using their documented field names.
  3790. */
  3791. function getrusage ($who = null) {}
  3792. /**
  3793. * (PHP 4, PHP 5)<br/>
  3794. * Generate a unique ID
  3795. * @link http://php.net/manual/en/function.uniqid.php
  3796. * @param string $prefix [optional] <p>
  3797. * Can be useful, for instance, if you generate identifiers
  3798. * simultaneously on several hosts that might happen to generate the
  3799. * identifier at the same microsecond.
  3800. * </p>
  3801. * <p>
  3802. * With an empty prefix, the returned string will
  3803. * be 13 characters long. If more_entropy is
  3804. * true, it will be 23 characters.
  3805. * </p>
  3806. * @param bool $more_entropy [optional] <p>
  3807. * If set to true, uniqid will add additional
  3808. * entropy (using the combined linear congruential generator) at the end
  3809. * of the return value, which should make the results more unique.
  3810. * </p>
  3811. * @return string the unique identifier, as a string.
  3812. */
  3813. function uniqid ($prefix = null, $more_entropy = null) {}
  3814. /**
  3815. * (PHP 4, PHP 5)<br/>
  3816. * Convert a quoted-printable string to an 8 bit string
  3817. * @link http://php.net/manual/en/function.quoted-printable-decode.php
  3818. * @param string $str <p>
  3819. * The input string.
  3820. * </p>
  3821. * @return string the 8-bit binary string.
  3822. */
  3823. function quoted_printable_decode ($str) {}
  3824. /**
  3825. * (PHP 5 &gt;= 5.3.0)<br/>
  3826. * Convert a 8 bit string to a quoted-printable string
  3827. * @link http://php.net/manual/en/function.quoted-printable-encode.php
  3828. * @param string $str <p>
  3829. * The input string.
  3830. * </p>
  3831. * @return string the encoded string.
  3832. */
  3833. function quoted_printable_encode ($str) {}
  3834. /**
  3835. * (PHP 4, PHP 5)<br/>
  3836. * Convert from one Cyrillic character set to another
  3837. * @link http://php.net/manual/en/function.convert-cyr-string.php
  3838. * @param string $str <p>
  3839. * The string to be converted.
  3840. * </p>
  3841. * @param string $from <p>
  3842. * The source Cyrillic character set, as a single character.
  3843. * </p>
  3844. * @param string $to <p>
  3845. * The target Cyrillic character set, as a single character.
  3846. * </p>
  3847. * @return string the converted string.
  3848. */
  3849. function convert_cyr_string ($str, $from, $to) {}
  3850. /**
  3851. * (PHP 4, PHP 5)<br/>
  3852. * Gets the name of the owner of the current PHP script
  3853. * @link http://php.net/manual/en/function.get-current-user.php
  3854. * @return string the username as a string.
  3855. */
  3856. function get_current_user () {}
  3857. /**
  3858. * (PHP 4, PHP 5)<br/>
  3859. * Limits the maximum execution time
  3860. * @link http://php.net/manual/en/function.set-time-limit.php
  3861. * @param int $seconds <p>
  3862. * The maximum execution time, in seconds. If set to zero, no time limit
  3863. * is imposed.
  3864. * </p>
  3865. * @return void
  3866. */
  3867. function set_time_limit ($seconds) {}
  3868. /**
  3869. * (PHP 4, PHP 5)<br/>
  3870. * Gets the value of a PHP configuration option
  3871. * @link http://php.net/manual/en/function.get-cfg-var.php
  3872. * @param string $option <p>
  3873. * The configuration option name.
  3874. * </p>
  3875. * @return string the current value of the PHP configuration variable specified by
  3876. * option, or false if an error occurs.
  3877. */
  3878. function get_cfg_var ($option) {}
  3879. /**
  3880. * (PHP 4, PHP 5)<br/>
  3881. * &Alias; <function>set_magic_quotes_runtime</function>
  3882. * @link http://php.net/manual/en/function.magic-quotes-runtime.php
  3883. * @param $new_setting
  3884. */
  3885. function magic_quotes_runtime ($new_setting) {}
  3886. /**
  3887. * (PHP 4, PHP 5)<br/>
  3888. * Sets the current active configuration setting of magic_quotes_runtime
  3889. * @link http://php.net/manual/en/function.set-magic-quotes-runtime.php
  3890. * @param bool $new_setting <p>
  3891. * false for off, true for on.
  3892. * </p>
  3893. * @return bool Returns true on success or false on failure.
  3894. */
  3895. function set_magic_quotes_runtime ($new_setting) {}
  3896. /**
  3897. * (PHP 4, PHP 5)<br/>
  3898. * Gets the current configuration setting of magic quotes gpc
  3899. * @link http://php.net/manual/en/function.get-magic-quotes-gpc.php
  3900. * @return int 0 if magic quotes gpc are off, 1 otherwise.
  3901. */
  3902. function get_magic_quotes_gpc () {}
  3903. /**
  3904. * (PHP 4, PHP 5)<br/>
  3905. * Gets the current active configuration setting of magic_quotes_runtime
  3906. * @link http://php.net/manual/en/function.get-magic-quotes-runtime.php
  3907. * @return int 0 if magic quotes runtime is off, 1 otherwise.
  3908. */
  3909. function get_magic_quotes_runtime () {}
  3910. /**
  3911. * (PHP 4 &gt;= 4.1.0, PHP 5)<br/>
  3912. * Import GET/POST/Cookie variables into the global scope
  3913. * @link http://php.net/manual/en/function.import-request-variables.php
  3914. * @param string $types <p>
  3915. * Using the types parameter, you can specify
  3916. * which request variables to import. You can use 'G', 'P' and 'C'
  3917. * characters respectively for GET, POST and Cookie. These characters are
  3918. * not case sensitive, so you can also use any combination of 'g', 'p'
  3919. * and 'c'. POST includes the POST uploaded file information.
  3920. * </p>
  3921. * <p>
  3922. * Note that the order of the letters matters, as when using
  3923. * "GP", the
  3924. * POST variables will overwrite GET variables with the same name. Any
  3925. * other letters than GPC are discarded.
  3926. * </p>
  3927. * @param string $prefix [optional] <p>
  3928. * Variable name prefix, prepended before all variable's name imported
  3929. * into the global scope. So if you have a GET value named
  3930. * "userid", and provide a prefix
  3931. * "pref_", then you'll get a global variable named
  3932. * $pref_userid.
  3933. * </p>
  3934. * <p>
  3935. * Although the prefix parameter is optional, you
  3936. * will get an E_NOTICE level
  3937. * error if you specify no prefix, or specify an empty string as a
  3938. * prefix. This is a possible security hazard. Notice level errors are
  3939. * not displayed using the default error reporting level.
  3940. * </p>
  3941. * @return bool Returns true on success or false on failure.
  3942. */
  3943. function import_request_variables ($types, $prefix = null) {}
  3944. /**
  3945. * (PHP 4, PHP 5)<br/>
  3946. * Send an error message somewhere
  3947. * @link http://php.net/manual/en/function.error-log.php
  3948. * @param string $message <p>
  3949. * The error message that should be logged.
  3950. * </p>
  3951. * @param int $message_type [optional] <p>
  3952. * Says where the error should go. The possible message types are as
  3953. * follows:
  3954. * </p>
  3955. * <p>
  3956. * <table>
  3957. * error_log log types
  3958. * <tr valign="top">
  3959. * <td>0</td>
  3960. * <td>
  3961. * message is sent to PHP's system logger, using
  3962. * the Operating System's system logging mechanism or a file, depending
  3963. * on what the error_log
  3964. * configuration directive is set to. This is the default option.
  3965. * </td>
  3966. * </tr>
  3967. * <tr valign="top">
  3968. * <td>1</td>
  3969. * <td>
  3970. * message is sent by email to the address in
  3971. * the destination parameter. This is the only
  3972. * message type where the fourth parameter,
  3973. * extra_headers is used.
  3974. * </td>
  3975. * </tr>
  3976. * <tr valign="top">
  3977. * <td>2</td>
  3978. * <td>
  3979. * No longer an option.
  3980. * </td>
  3981. * </tr>
  3982. * <tr valign="top">
  3983. * <td>3</td>
  3984. * <td>
  3985. * message is appended to the file
  3986. * destination. A newline is not automatically
  3987. * added to the end of the message string.
  3988. * </td>
  3989. * </tr>
  3990. * <tr valign="top">
  3991. * <td>4</td>
  3992. * <td>
  3993. * message is sent directly to the SAPI logging
  3994. * handler.
  3995. * </td>
  3996. * </tr>
  3997. * </table>
  3998. * </p>
  3999. * @param string $destination [optional] <p>
  4000. * The destination. Its meaning depends on the
  4001. * message_type parameter as described above.
  4002. * </p>
  4003. * @param string $extra_headers [optional] <p>
  4004. * The extra headers. It's used when the message_type
  4005. * parameter is set to 1.
  4006. * This message type uses the same internal function as
  4007. * mail does.
  4008. * </p>
  4009. * @return bool Returns true on success or false on failure.
  4010. */
  4011. function error_log ($message, $message_type = null, $destination = null, $extra_headers = null) {}
  4012. /**
  4013. * (PHP 5 &gt;= 5.2.0)<br/>
  4014. * Get the last occurred error
  4015. * @link http://php.net/manual/en/function.error-get-last.php
  4016. * @return array an associative array describing the last error with keys "type",
  4017. * "message", "file" and "line". Returns &null; if there hasn't been an error
  4018. * yet.
  4019. */
  4020. function error_get_last () {}
  4021. /**
  4022. * (PHP 4, PHP 5)<br/>
  4023. * Call a user function given by the first parameter
  4024. * @link http://php.net/manual/en/function.call-user-func.php
  4025. * @param callback $function <p>
  4026. * The function to be called. Class methods may also be invoked
  4027. * statically using this function by passing
  4028. * array($classname, $methodname) to this parameter.
  4029. * Additionally class methods of an object instance may be called by passing
  4030. * array($objectinstance, $methodname) to this parameter.
  4031. * </p>
  4032. * @param mixed $parameter [optional] <p>
  4033. * Zero or more parameters to be passed to the function.
  4034. * </p>
  4035. * <p>
  4036. * Note that the parameters for call_user_func are
  4037. * not passed by reference.
  4038. * call_user_func example and references
  4039. * ]]>
  4040. * &example.outputs;
  4041. * </p>
  4042. * @param mixed $_ [optional]
  4043. * @return mixed the function result, or false on error.
  4044. */
  4045. function call_user_func ($function, $parameter = null, $_ = null) {}
  4046. /**
  4047. * (PHP 4 &gt;= 4.0.4, PHP 5)<br/>
  4048. * Call a user function given with an array of parameters
  4049. * @link http://php.net/manual/en/function.call-user-func-array.php
  4050. * @param callback $function <p>
  4051. * The function to be called.
  4052. * </p>
  4053. * @param array $param_arr <p>
  4054. * The parameters to be passed to the function, as an indexed array.
  4055. * </p>
  4056. * @return mixed the function result, or false on error.
  4057. */
  4058. function call_user_func_array ($function, $param_arrarray ) {}
  4059. /**
  4060. * (PHP 4, PHP 5)<br/>
  4061. * Call a user method on an specific object [deprecated]
  4062. * @link http://php.net/manual/en/function.call-user-method.php
  4063. * @param string $method_name
  4064. * @param object $obj
  4065. * @param mixed $parameter [optional]
  4066. * @param mixed $_ [optional]
  4067. * @return mixed
  4068. */
  4069. function call_user_method ($method_name, &$obj, $parameter = null, $_ = null) {}
  4070. /**
  4071. * (PHP 4 &gt;= 4.0.5, PHP 5)<br/>
  4072. * Call a user method given with an array of parameters [deprecated]
  4073. * @link http://php.net/manual/en/function.call-user-method-array.php
  4074. * @param string $method_name
  4075. * @param object $obj
  4076. * @param array $params
  4077. * @return mixed
  4078. */
  4079. function call_user_method_array ($method_name, &$obj, $paramsarray ) {}
  4080. /**
  4081. * (PHP 5 &gt;= 5.3.0)<br/>
  4082. * Call a static method
  4083. * @link http://php.net/manual/en/function.forward-static-call.php
  4084. * @param callback $function <p>
  4085. * The function or method to be called. This parameter may be an array,
  4086. * with the name of the class, and the method, or a string, with a function
  4087. * name.
  4088. * </p>
  4089. * @param mixed $parameter [optional] <p>
  4090. * Zero or more parameters to be passed to the function.
  4091. * </p>
  4092. * @param mixed $_ [optional]
  4093. * @return mixed the function result, or false on error.
  4094. */
  4095. function forward_static_call ($function, $parameter = null, $_ = null) {}
  4096. /**
  4097. * (PHP 5 &gt;= 5.3.0)<br/>
  4098. * Call a static method and pass the arguments as array
  4099. * @link http://php.net/manual/en/function.forward-static-call-array.php
  4100. * @param callback $function <p>
  4101. * The function or method to be called. This parameter may be an &array;,
  4102. * with the name of the class, and the method, or a &string;, with a function
  4103. * name.
  4104. * </p>
  4105. * @param array $parameters [optional]
  4106. * @return mixed the function result, or false on error.
  4107. */
  4108. function forward_static_call_array ($function, $parameters = nullarray ) {}
  4109. /**
  4110. * (PHP 4, PHP 5)<br/>
  4111. * Generates a storable representation of a value
  4112. * @link http://php.net/manual/en/function.serialize.php
  4113. * @param mixed $value <p>
  4114. * The value to be serialized. serialize
  4115. * handles all types, except the resource-type.
  4116. * You can even serialize arrays that contain
  4117. * references to itself. Circular references inside the array/object you
  4118. * are serializing will also be stored. Any other
  4119. * reference will be lost.
  4120. * </p>
  4121. * <p>
  4122. * When serializing objects, PHP will attempt to call the member function
  4123. * __sleep prior to serialization.
  4124. * This is to allow the object to do any last minute clean-up, etc. prior
  4125. * to being serialized. Likewise, when the object is restored using
  4126. * unserialize the __wakeup member function is called.
  4127. * </p>
  4128. * <p>
  4129. * Object's private members have the class name prepended to the member
  4130. * name; protected members have a '*' prepended to the member name.
  4131. * These prepended values have null bytes on either side.
  4132. * </p>
  4133. * @return string a string containing a byte-stream representation of
  4134. * value that can be stored anywhere.
  4135. */
  4136. function serialize ($value) {}
  4137. /**
  4138. * (PHP 4, PHP 5)<br/>
  4139. * Creates a PHP value from a stored representation
  4140. * @link http://php.net/manual/en/function.unserialize.php
  4141. * @param string $str <p>
  4142. * The serialized string.
  4143. * </p>
  4144. * <p>
  4145. * If the variable being unserialized is an object, after successfully
  4146. * reconstructing the object PHP will automatically attempt to call the
  4147. * __wakeup member function (if it exists).
  4148. * </p>
  4149. * <p>
  4150. * unserialize_callback_func directive
  4151. * <p>
  4152. * It's possible to set a callback-function which will be called,
  4153. * if an undefined class should be instantiated during unserializing.
  4154. * (to prevent getting an incomplete object "__PHP_Incomplete_Class".)
  4155. * Use your &php.ini;, ini_set or &htaccess;
  4156. * to define 'unserialize_callback_func'. Everytime an undefined class
  4157. * should be instantiated, it'll be called. To disable this feature just
  4158. * empty this setting.
  4159. * </p>
  4160. * </p>
  4161. * @return mixed The converted value is returned, and can be a boolean,
  4162. * integer, float, string,
  4163. * array or object.
  4164. * </p>
  4165. * <p>
  4166. * In case the passed string is not unserializeable, false is returned and
  4167. * E_NOTICE is issued.
  4168. */
  4169. function unserialize ($str) {}
  4170. /**
  4171. * (PHP 4, PHP 5)<br/>
  4172. * Dumps information about a variable
  4173. * @link http://php.net/manual/en/function.var-dump.php
  4174. * @param mixed $expression <p>
  4175. * The variable you want to export.
  4176. * </p>
  4177. * @param mixed $expression [optional]
  4178. * @return void
  4179. */
  4180. function var_dump ($expression, $expression = null) {}
  4181. /**
  4182. * (PHP 4 &gt;= 4.2.0, PHP 5)<br/>
  4183. * Outputs or returns a parsable string representation of a variable
  4184. * @link http://php.net/manual/en/function.var-export.php
  4185. * @param mixed $expression <p>
  4186. * The variable you want to export.
  4187. * </p>
  4188. * @param bool $return [optional] <p>
  4189. * If used and set to true, var_export will return
  4190. * the variable representation instead of outputing it.
  4191. * </p>
  4192. * &note.uses-ob;
  4193. * @return mixed the variable representation when the return
  4194. * parameter is used and evaluates to true. Otherwise, this function will
  4195. * return &null;.
  4196. */
  4197. function var_export ($expression, $return = null) {}
  4198. /**
  4199. * (PHP 4 &gt;= 4.2.0, PHP 5)<br/>
  4200. * Dumps a string representation of an internal zend value to output
  4201. * @link http://php.net/manual/en/function.debug-zval-dump.php
  4202. * @param mixed $variable <p>
  4203. * The variable being evaluated.
  4204. * </p>
  4205. * @return void
  4206. */
  4207. function debug_zval_dump ($variable) {}
  4208. /**
  4209. * (PHP 4, PHP 5)<br/>
  4210. * Prints human-readable information about a variable
  4211. * @link http://php.net/manual/en/function.print-r.php
  4212. * @param mixed $expression <p>
  4213. * The expression to be printed.
  4214. * </p>
  4215. * @param bool $return [optional] <p>
  4216. * If you would like to capture the output of print_r,
  4217. * use the return parameter. If this parameter is set
  4218. * to true, print_r will return its output, instead of
  4219. * printing it (which it does by default).
  4220. * </p>
  4221. * @return mixed If given a string, integer or float,
  4222. * the value itself will be printed. If given an array, values
  4223. * will be presented in a format that shows keys and elements. Similar
  4224. * notation is used for objects.
  4225. */
  4226. function print_r ($expression, $return = null) {}
  4227. /**
  4228. * (PHP 4 &gt;= 4.3.2, PHP 5)<br/>
  4229. * Returns the amount of memory allocated to PHP
  4230. * @link http://php.net/manual/en/function.memory-get-usage.php
  4231. * @param bool $real_usage [optional] <p>
  4232. * Set this to true to get the real size of memory allocated from
  4233. * system. If not set or false only the memory used by
  4234. * emalloc() is reported.
  4235. * </p>
  4236. * @return int the memory amount in bytes.
  4237. */
  4238. function memory_get_usage ($real_usage = null) {}
  4239. /**
  4240. * (PHP 5 &gt;= 5.2.0)<br/>
  4241. * Returns the peak of memory allocated by PHP
  4242. * @link http://php.net/manual/en/function.memory-get-peak-usage.php
  4243. * @param bool $real_usage [optional] <p>
  4244. * Set this to true to get the real size of memory allocated from
  4245. * system. If not set or false only the memory used by
  4246. * emalloc() is reported.
  4247. * </p>
  4248. * @return int the memory peak in bytes.
  4249. */
  4250. function memory_get_peak_usage ($real_usage = null) {}
  4251. /**
  4252. * (PHP 4, PHP 5)<br/>
  4253. * Register a function for execution on shutdown
  4254. * @link http://php.net/manual/en/function.register-shutdown-function.php
  4255. * @param callback $function <p>
  4256. * The shutdown function to register.
  4257. * </p>
  4258. * <p>
  4259. * The shutdown functions are called as the part of the request so that
  4260. * it's possible to send the output from them. There is currently no way
  4261. * to process the data with output buffering functions in the shutdown
  4262. * function.
  4263. * </p>
  4264. * <p>
  4265. * Shutdown functions are called after closing all opened output buffers
  4266. * thus, for example, its output will not be compressed if zlib.output_compression is
  4267. * enabled.
  4268. * </p>
  4269. * @param mixed $parameter [optional] <p>
  4270. * It is possible to pass parameters to the shutdown function by passing
  4271. * additional parameters.
  4272. * </p>
  4273. * @param mixed $_ [optional]
  4274. * @return void
  4275. */
  4276. function register_shutdown_function ($function, $parameter = null, $_ = null) {}
  4277. /**
  4278. * (PHP 4 &gt;= 4.0.3, PHP 5)<br/>
  4279. * Register a function for execution on each tick
  4280. * @link http://php.net/manual/en/function.register-tick-function.php
  4281. * @param callback $function <p>
  4282. * The function name as a string, or an array consisting of an object and
  4283. * a method.
  4284. * </p>
  4285. * @param mixed $arg [optional] <p>
  4286. * </p>
  4287. * @param mixed $_ [optional]
  4288. * @return bool Returns true on success or false on failure.
  4289. */
  4290. function register_tick_function ($function, $arg = null, $_ = null) {}
  4291. /**
  4292. * (PHP 4 &gt;= 4.0.3, PHP 5)<br/>
  4293. * De-register a function for execution on each tick
  4294. * @link http://php.net/manual/en/function.unregister-tick-function.php
  4295. * @param string $function_name <p>
  4296. * The function name, as a string.
  4297. * </p>
  4298. * @return void
  4299. */
  4300. function unregister_tick_function ($function_name) {}
  4301. /**
  4302. * (PHP 4, PHP 5)<br/>
  4303. * Syntax highlighting of a file
  4304. * @link http://php.net/manual/en/function.highlight-file.php
  4305. * @param string $filename <p>
  4306. * Path to the PHP file to be highlighted.
  4307. * </p>
  4308. * @param bool $return [optional] <p>
  4309. * Set this parameter to true to make this function return the
  4310. * highlighted code.
  4311. * </p>
  4312. * @return mixed If return is set to true, returns the highlighted
  4313. * code as a string instead of printing it out. Otherwise, it will return
  4314. * true on success, false on failure.
  4315. */
  4316. function highlight_file ($filename, $return = null) {}
  4317. /**
  4318. * (PHP 4, PHP 5)<br/>
  4319. * &Alias; <function>highlight_file</function>
  4320. * @link http://php.net/manual/en/function.show-source.php
  4321. * @param $file_name
  4322. * @param $return [optional]
  4323. */
  4324. function show_source ($file_name, $return) {}
  4325. /**
  4326. * (PHP 4, PHP 5)<br/>
  4327. * Syntax highlighting of a string
  4328. * @link http://php.net/manual/en/function.highlight-string.php
  4329. * @param string $str <p>
  4330. * The PHP code to be highlighted. This should include the opening tag.
  4331. * </p>
  4332. * @param bool $return [optional] <p>
  4333. * Set this parameter to true to make this function return the
  4334. * highlighted code.
  4335. * </p>
  4336. * @return mixed If return is set to true, returns the highlighted
  4337. * code as a string instead of printing it out. Otherwise, it will return
  4338. * true on success, false on failure.
  4339. */
  4340. function highlight_string ($str, $return = null) {}
  4341. /**
  4342. * (PHP 5)<br/>
  4343. * Return source with stripped comments and whitespace
  4344. * @link http://php.net/manual/en/function.php-strip-whitespace.php
  4345. * @param string $filename <p>
  4346. * Path to the PHP file.
  4347. * </p>
  4348. * @return string The stripped source code will be returned on success, or an empty string
  4349. * on failure.
  4350. * </p>
  4351. * <p>
  4352. * This function works as described as of PHP 5.0.1. Before this it would
  4353. * only return an empty string. For more information on this bug and its
  4354. * prior behavior, see bug report
  4355. * #29606.
  4356. */
  4357. function php_strip_whitespace ($filename) {}
  4358. /**
  4359. * (PHP 4, PHP 5)<br/>
  4360. * Gets the value of a configuration option
  4361. * @link http://php.net/manual/en/function.ini-get.php
  4362. * @param string $varname <p>
  4363. * The configuration option name.
  4364. * </p>
  4365. * @return string the value of the configuration option as a string on success, or
  4366. * an empty string on failure or for null values.
  4367. */
  4368. function ini_get ($varname) {}
  4369. /**
  4370. * (PHP 4 &gt;= 4.2.0, PHP 5)<br/>
  4371. * Gets all configuration options
  4372. * @link http://php.net/manual/en/function.ini-get-all.php
  4373. * @param string $extension [optional] <p>
  4374. * An optional extension name. If set, the function return only options
  4375. * specific for that extension.
  4376. * </p>
  4377. * @param bool $details [optional] <p>
  4378. * Retrieve details settings or only the current value for each setting.
  4379. * Default is true (retrieve details).
  4380. * </p>
  4381. * @return array an associative array with directive name as the array key.
  4382. * </p>
  4383. * <p>
  4384. * When details is true (default) the array will
  4385. * contain global_value (set in
  4386. * &php.ini;), local_value (perhaps set with
  4387. * ini_set or &htaccess;), and
  4388. * access (the access level).
  4389. * </p>
  4390. * <p>
  4391. * When details is false the value will be the
  4392. * current value of the option.
  4393. * </p>
  4394. * <p>
  4395. * See the manual section
  4396. * for information on what access levels mean.
  4397. * </p>
  4398. * <p>
  4399. * It's possible for a directive to have multiple access levels, which is
  4400. * why access shows the appropriate bitmask values.
  4401. */
  4402. function ini_get_all ($extension = null, $details = null) {}
  4403. /**
  4404. * (PHP 4, PHP 5)<br/>
  4405. * Sets the value of a configuration option
  4406. * @link http://php.net/manual/en/function.ini-set.php
  4407. * @param string $varname <p>
  4408. * </p>
  4409. * <p>
  4410. * Not all the available options can be changed using
  4411. * ini_set. There is a list of all available options
  4412. * in the appendix.
  4413. * </p>
  4414. * @param string $newvalue <p>
  4415. * The new value for the option.
  4416. * </p>
  4417. * @return string the old value on success, false on failure.
  4418. */
  4419. function ini_set ($varname, $newvalue) {}
  4420. /**
  4421. * (PHP 4, PHP 5)<br/>
  4422. * &Alias; <function>ini_set</function>
  4423. * @link http://php.net/manual/en/function.ini-alter.php
  4424. * @param $varname
  4425. * @param $newvalue
  4426. */
  4427. function ini_alter ($varname, $newvalue) {}
  4428. /**
  4429. * (PHP 4, PHP 5)<br/>
  4430. * Restores the value of a configuration option
  4431. * @link http://php.net/manual/en/function.ini-restore.php
  4432. * @param string $varname <p>
  4433. * The configuration option name.
  4434. * </p>
  4435. * @return void
  4436. */
  4437. function ini_restore ($varname) {}
  4438. /**
  4439. * (PHP 4 &gt;= 4.3.0, PHP 5)<br/>
  4440. * Gets the current include_path configuration option
  4441. * @link http://php.net/manual/en/function.get-include-path.php
  4442. * @return string the path, as a string.
  4443. */
  4444. function get_include_path () {}
  4445. /**
  4446. * (PHP 4 &gt;= 4.3.0, PHP 5)<br/>
  4447. * Sets the include_path configuration option
  4448. * @link http://php.net/manual/en/function.set-include-path.php
  4449. * @param string $new_include_path <p>
  4450. * The new value for the include_path
  4451. * </p>
  4452. * @return string the old include_path on
  4453. * success&return.falseforfailure;.
  4454. */
  4455. function set_include_path ($new_include_path) {}
  4456. /**
  4457. * (PHP 4 &gt;= 4.3.0, PHP 5)<br/>
  4458. * Restores the value of the include_path configuration option
  4459. * @link http://php.net/manual/en/function.restore-include-path.php
  4460. * @return void
  4461. */
  4462. function restore_include_path () {}
  4463. /**
  4464. * (PHP 4, PHP 5)<br/>
  4465. * Send a cookie
  4466. * @link http://php.net/manual/en/function.setcookie.php
  4467. * @param string $name <p>
  4468. * The name of the cookie.
  4469. * </p>
  4470. * @param string $value [optional] <p>
  4471. * The value of the cookie. This value is stored on the clients
  4472. * computer; do not store sensitive information.
  4473. * Assuming the name is 'cookiename', this
  4474. * value is retrieved through $_COOKIE['cookiename']
  4475. * </p>
  4476. * @param int $expire [optional] <p>
  4477. * The time the cookie expires. This is a Unix timestamp so is
  4478. * in number of seconds since the epoch. In other words, you'll
  4479. * most likely set this with the time function
  4480. * plus the number of seconds before you want it to expire. Or
  4481. * you might use mktime.
  4482. * time()+60*60*24*30 will set the cookie to
  4483. * expire in 30 days. If set to 0, or omitted, the cookie will expire at
  4484. * the end of the session (when the browser closes).
  4485. * </p>
  4486. * <p>
  4487. * <p>
  4488. * You may notice the expire parameter takes on a
  4489. * Unix timestamp, as opposed to the date format Wdy, DD-Mon-YYYY
  4490. * HH:MM:SS GMT, this is because PHP does this conversion
  4491. * internally.
  4492. * </p>
  4493. * <p>
  4494. * expire is compared to the client's time which can
  4495. * differ from server's time.
  4496. * </p>
  4497. * </p>
  4498. * @param string $path [optional] <p>
  4499. * The path on the server in which the cookie will be available on.
  4500. * If set to '/', the cookie will be available
  4501. * within the entire domain. If set to
  4502. * '/foo/', the cookie will only be available
  4503. * within the /foo/ directory and all
  4504. * sub-directories such as /foo/bar/ of
  4505. * domain. The default value is the
  4506. * current directory that the cookie is being set in.
  4507. * </p>
  4508. * @param string $domain [optional] <p>
  4509. * The domain that the cookie is available.
  4510. * To make the cookie available on all subdomains of example.com
  4511. * then you'd set it to '.example.com'. The
  4512. * . is not required but makes it compatible
  4513. * with more browsers. Setting it to www.example.com
  4514. * will make the cookie only available in the www
  4515. * subdomain. Refer to tail matching in the
  4516. * spec for details.
  4517. * </p>
  4518. * @param bool $secure [optional] <p>
  4519. * Indicates that the cookie should only be transmitted over a
  4520. * secure HTTPS connection from the client. When set to true, the
  4521. * cookie will only be set if a secure connection exists.
  4522. * On the server-side, it's on the programmer to send this
  4523. * kind of cookie only on secure connection (e.g. with respect to
  4524. * $_SERVER["HTTPS"]).
  4525. * </p>
  4526. * @param bool $httponly [optional] <p>
  4527. * When true the cookie will be made accessible only through the HTTP
  4528. * protocol. This means that the cookie won't be accessible by
  4529. * scripting languages, such as JavaScript. This setting can effectively
  4530. * help to reduce identity theft through XSS attacks (although it is
  4531. * not supported by all browsers). Added in PHP 5.2.0.
  4532. * true or false
  4533. * </p>
  4534. * @return bool If output exists prior to calling this function,
  4535. * setcookie will fail and return false. If
  4536. * setcookie successfully runs, it will return true.
  4537. * This does not indicate whether the user accepted the cookie.
  4538. */
  4539. function setcookie ($name, $value = null, $expire = null, $path = null, $domain = null, $secure = null, $httponly = null) {}
  4540. /**
  4541. * (PHP 5)<br/>
  4542. * Send a cookie without urlencoding the cookie value
  4543. * @link http://php.net/manual/en/function.setrawcookie.php
  4544. * @param string $name
  4545. * @param string $value [optional]
  4546. * @param int $expire [optional]
  4547. * @param string $path [optional]
  4548. * @param string $domain [optional]
  4549. * @param bool $secure [optional]
  4550. * @param bool $httponly [optional]
  4551. * @return bool Returns true on success or false on failure.
  4552. */
  4553. function setrawcookie ($name, $value = null, $expire = null, $path = null, $domain = null, $secure = null, $httponly = null) {}
  4554. /**
  4555. * (PHP 4, PHP 5)<br/>
  4556. * Send a raw HTTP header
  4557. * @link http://php.net/manual/en/function.header.php
  4558. * @param string $string <p>
  4559. * The header string.
  4560. * </p>
  4561. * <p>
  4562. * There are two special-case header calls. The first is a header
  4563. * that starts with the string "HTTP/" (case is not
  4564. * significant), which will be used to figure out the HTTP status
  4565. * code to send. For example, if you have configured Apache to
  4566. * use a PHP script to handle requests for missing files (using
  4567. * the ErrorDocument directive), you may want to
  4568. * make sure that your script generates the proper status code.
  4569. * </p>
  4570. * <p>
  4571. * ]]>
  4572. * </p>
  4573. * <p>
  4574. * The second special case is the "Location:" header. Not only does
  4575. * it send this header back to the browser, but it also returns a
  4576. * REDIRECT (302) status code to the browser
  4577. * unless the 201 or
  4578. * a 3xx status code has already been set.
  4579. * </p>
  4580. * <p>
  4581. * ]]>
  4582. * </p>
  4583. * @param bool $replace [optional] <p>
  4584. * The optional replace parameter indicates
  4585. * whether the header should replace a previous similar header, or
  4586. * add a second header of the same type. By default it will replace,
  4587. * but if you pass in false as the second argument you can force
  4588. * multiple headers of the same type. For example:
  4589. * </p>
  4590. * <p>
  4591. * ]]>
  4592. * </p>
  4593. * @param int $http_response_code [optional] <p>
  4594. * Forces the HTTP response code to the specified value.
  4595. * </p>
  4596. * @return void
  4597. */
  4598. function header ($string, $replace = null, $http_response_code = null) {}
  4599. /**
  4600. * (PHP 5 &gt;= 5.3.0)<br/>
  4601. * Remove previously set headers
  4602. * @link http://php.net/manual/en/function.header-remove.php
  4603. * @param string $name [optional] <p>
  4604. * The header name to be removed.
  4605. * </p>
  4606. * This parameter is case-insensitive.
  4607. * @return void
  4608. */
  4609. function header_remove ($name = null) {}
  4610. /**
  4611. * (PHP 4, PHP 5)<br/>
  4612. * Checks if or where headers have been sent
  4613. * @link http://php.net/manual/en/function.headers-sent.php
  4614. * @param string $file [optional] <p>
  4615. * If the optional file and
  4616. * line parameters are set,
  4617. * headers_sent will put the PHP source file name
  4618. * and line number where output started in the file
  4619. * and line variables.
  4620. * </p>
  4621. * @param int $line [optional] <p>
  4622. * The line number where the output started.
  4623. * </p>
  4624. * @return bool headers_sent will return false if no HTTP headers
  4625. * have already been sent or true otherwise.
  4626. */
  4627. function headers_sent (&$file = null, &$line = null) {}
  4628. /**
  4629. * (PHP 5)<br/>
  4630. * Returns a list of response headers sent (or ready to send)
  4631. * @link http://php.net/manual/en/function.headers-list.php
  4632. * @return array a numerically indexed array of headers.
  4633. */
  4634. function headers_list () {}
  4635. /**
  4636. * (PHP 4, PHP 5)<br/>
  4637. * Check whether client disconnected
  4638. * @link http://php.net/manual/en/function.connection-aborted.php
  4639. * @return int 1 if client disconnected, 0 otherwise.
  4640. */
  4641. function connection_aborted () {}
  4642. /**
  4643. * (PHP 4, PHP 5)<br/>
  4644. * Returns connection status bitfield
  4645. * @link http://php.net/manual/en/function.connection-status.php
  4646. * @return int the connection status bitfield, which can be used against the
  4647. * CONNECTION_XXX constants to determine the connection
  4648. * status.
  4649. */
  4650. function connection_status () {}
  4651. /**
  4652. * (PHP 4, PHP 5)<br/>
  4653. * Set whether a client disconnect should abort script execution
  4654. * @link http://php.net/manual/en/function.ignore-user-abort.php
  4655. * @param string $value [optional] <p>
  4656. * If set, this function will set the ignore_user_abort ini setting
  4657. * to the given value. If not, this function will
  4658. * only return the previous setting without changing it.
  4659. * </p>
  4660. * @return int the previous setting, as an integer.
  4661. */
  4662. function ignore_user_abort ($value = null) {}
  4663. /**
  4664. * (PHP 4, PHP 5)<br/>
  4665. * Parse a configuration file
  4666. * @link http://php.net/manual/en/function.parse-ini-file.php
  4667. * @param string $filename <p>
  4668. * The filename of the ini file being parsed.
  4669. * </p>
  4670. * @param bool $process_sections [optional] <p>
  4671. * By setting the process_sections
  4672. * parameter to true, you get a multidimensional array, with
  4673. * the section names and settings included. The default
  4674. * for process_sections is false
  4675. * </p>
  4676. * @param int $scanner_mode [optional] <p>
  4677. * Can either be INI_SCANNER_NORMAL (default) or
  4678. * INI_SCANNER_RAW. If INI_SCANNER_RAW
  4679. * is supplied, then option values will not be parsed.
  4680. * </p>
  4681. * @return array The settings are returned as an associative array on success,
  4682. * and false on failure.
  4683. */
  4684. function parse_ini_file ($filename, $process_sections = null, $scanner_mode = null) {}
  4685. /**
  4686. * (PHP 5 &gt;= 5.3.0)<br/>
  4687. * Parse a configuration string
  4688. * @link http://php.net/manual/en/function.parse-ini-string.php
  4689. * @param string $ini <p>
  4690. * The contents of the ini file being parsed.
  4691. * </p>
  4692. * @param bool $process_sections [optional] <p>
  4693. * By setting the process_sections
  4694. * parameter to true, you get a multidimensional array, with
  4695. * the section names and settings included. The default
  4696. * for process_sections is false
  4697. * </p>
  4698. * @param int $scanner_mode [optional] <p>
  4699. * Can either be INI_SCANNER_NORMAL (default) or
  4700. * INI_SCANNER_RAW. If INI_SCANNER_RAW
  4701. * is supplied, then option values will not be parsed.
  4702. * </p>
  4703. * @return array The settings are returned as an associative array on success,
  4704. * and false on failure.
  4705. */
  4706. function parse_ini_string ($ini, $process_sections = null, $scanner_mode = null) {}
  4707. /**
  4708. * (PHP 4 &gt;= 4.0.3, PHP 5)<br/>
  4709. * Tells whether the file was uploaded via HTTP POST
  4710. * @link http://php.net/manual/en/function.is-uploaded-file.php
  4711. * @param string $filename <p>
  4712. * The filename being checked.
  4713. * </p>
  4714. * @return bool Returns true on success or false on failure.
  4715. */
  4716. function is_uploaded_file ($filename) {}
  4717. /**
  4718. * (PHP 4 &gt;= 4.0.3, PHP 5)<br/>
  4719. * Moves an uploaded file to a new location
  4720. * @link http://php.net/manual/en/function.move-uploaded-file.php
  4721. * @param string $filename <p>
  4722. * The filename of the uploaded file.
  4723. * </p>
  4724. * @param string $destination <p>
  4725. * The destination of the moved file.
  4726. * </p>
  4727. * @return bool If filename is not a valid upload file,
  4728. * then no action will occur, and
  4729. * move_uploaded_file will return
  4730. * false.
  4731. * </p>
  4732. * <p>
  4733. * If filename is a valid upload file, but
  4734. * cannot be moved for some reason, no action will occur, and
  4735. * move_uploaded_file will return
  4736. * false. Additionally, a warning will be issued.
  4737. */
  4738. function move_uploaded_file ($filename, $destination) {}
  4739. /**
  4740. * (PHP 4, PHP 5)<br/>
  4741. * Get the Internet host name corresponding to a given IP address
  4742. * @link http://php.net/manual/en/function.gethostbyaddr.php
  4743. * @param string $ip_address <p>
  4744. * The host IP address.
  4745. * </p>
  4746. * @return string the host name or the unmodified ip_address
  4747. * on failure.
  4748. */
  4749. function gethostbyaddr ($ip_address) {}
  4750. /**
  4751. * (PHP 4, PHP 5)<br/>
  4752. * Get the IPv4 address corresponding to a given Internet host name
  4753. * @link http://php.net/manual/en/function.gethostbyname.php
  4754. * @param string $hostname <p>
  4755. * The host name.
  4756. * </p>
  4757. * @return string the IPv4 address or a string containing the unmodified
  4758. * hostname on failure.
  4759. */
  4760. function gethostbyname ($hostname) {}
  4761. /**
  4762. * (PHP 4, PHP 5)<br/>
  4763. * Get a list of IPv4 addresses corresponding to a given Internet host
  4764. name
  4765. * @link http://php.net/manual/en/function.gethostbynamel.php
  4766. * @param string $hostname <p>
  4767. * The host name.
  4768. * </p>
  4769. * @return array an array of IPv4 addresses or false if
  4770. * hostname could not be resolved.
  4771. */
  4772. function gethostbynamel ($hostname) {}
  4773. /**
  4774. * (PHP &gt;= 5.3.0)<br/>
  4775. * Gets the host name
  4776. * @link http://php.net/manual/en/function.gethostname.php
  4777. * @return string a string with the hostname on success, otherwise false is
  4778. * returned.
  4779. */
  4780. function gethostname () {}
  4781. /**
  4782. * (PHP 5)<br/>
  4783. * &Alias; <function>checkdnsrr</function>
  4784. * @link http://php.net/manual/en/function.dns-check-record.php
  4785. * @param $host
  4786. * @param $type [optional]
  4787. */
  4788. function dns_check_record ($host, $type) {}
  4789. /**
  4790. * (PHP 4, PHP 5)<br/>
  4791. * Check DNS records corresponding to a given Internet host name or IP address
  4792. * @link http://php.net/manual/en/function.checkdnsrr.php
  4793. * @param string $host <p>
  4794. * host may either be the IP address in
  4795. * dotted-quad notation or the host name.
  4796. * </p>
  4797. * @param string $type [optional] <p>
  4798. * type may be any one of: A, MX, NS, SOA,
  4799. * PTR, CNAME, AAAA, A6, SRV, NAPTR, TXT or ANY.
  4800. * </p>
  4801. * @return bool true if any records are found; returns false if no records
  4802. * were found or if an error occurred.
  4803. */
  4804. function checkdnsrr ($host, $type = null) {}
  4805. /**
  4806. * (PHP 5)<br/>
  4807. * &Alias; <function>getmxrr</function>
  4808. * @link http://php.net/manual/en/function.dns-get-mx.php
  4809. * @param $hostname
  4810. * @param $mxhosts
  4811. * @param $weight [optional]
  4812. */
  4813. function dns_get_mx ($hostname, &$mxhosts, &$weight) {}
  4814. /**
  4815. * (PHP 4, PHP 5)<br/>
  4816. * Get MX records corresponding to a given Internet host name
  4817. * @link http://php.net/manual/en/function.getmxrr.php
  4818. * @param string $hostname <p>
  4819. * The Internet host name.
  4820. * </p>
  4821. * @param array $mxhosts <p>
  4822. * A list of the MX records found is placed into the array
  4823. * mxhosts.
  4824. * </p>
  4825. * @param array $weight [optional] <p>
  4826. * If the weight array is given, it will be filled
  4827. * with the weight information gathered.
  4828. * </p>
  4829. * @return bool true if any records are found; returns false if no records
  4830. * were found or if an error occurred.
  4831. */
  4832. function getmxrr ($hostname, &$mxhostsarray , &$weight = nullarray ) {}
  4833. /**
  4834. * (PHP 5)<br/>
  4835. * Fetch DNS Resource Records associated with a hostname
  4836. * @link http://php.net/manual/en/function.dns-get-record.php
  4837. * @param string $hostname <p>
  4838. * hostname should be a valid DNS hostname such
  4839. * as "www.example.com". Reverse lookups can be generated
  4840. * using in-addr.arpa notation, but
  4841. * gethostbyaddr is more suitable for
  4842. * the majority of reverse lookups.
  4843. * </p>
  4844. * <p>
  4845. * Per DNS standards, email addresses are given in user.host format (for
  4846. * example: hostmaster.example.com as opposed to hostmaster@example.com),
  4847. * be sure to check this value and modify if necessary before using it
  4848. * with a functions such as mail.
  4849. * </p>
  4850. * @param int $type [optional] <p>
  4851. * By default, dns_get_record will search for any
  4852. * resource records associated with hostname.
  4853. * To limit the query, specify the optional type
  4854. * parameter. May be any one of the following:
  4855. * DNS_A, DNS_CNAME,
  4856. * DNS_HINFO, DNS_MX,
  4857. * DNS_NS, DNS_PTR,
  4858. * DNS_SOA, DNS_TXT,
  4859. * DNS_AAAA, DNS_SRV,
  4860. * DNS_NAPTR, DNS_A6,
  4861. * DNS_ALL or DNS_ANY.
  4862. * </p>
  4863. * <p>
  4864. * Because of eccentricities in the performance of libresolv
  4865. * between platforms, DNS_ANY will not
  4866. * always return every record, the slower DNS_ALL
  4867. * will collect all records more reliably.
  4868. * </p>
  4869. * @param array $authns [optional] <p>
  4870. * Passed by reference and, if given, will be populated with Resource
  4871. * Records for the Authoritative Name Servers.
  4872. * </p>
  4873. * @param array $addtl [optional] <p>
  4874. * Passed by reference and, if given, will be populated with any
  4875. * Additional Records.
  4876. * </p>
  4877. * @return array This function returns an array of associative arrays. Each associative array contains
  4878. * at minimum the following keys:
  4879. * <table>
  4880. * Basic DNS attributes
  4881. * <tr valign="top">
  4882. * <td>Attribute</td>
  4883. * <td>Meaning</td>
  4884. * </tr>
  4885. * <tr valign="top">
  4886. * <td>host</td>
  4887. * <td>
  4888. * The record in the DNS namespace to which the rest of the associated data refers.
  4889. * </td>
  4890. * </tr>
  4891. * <tr valign="top">
  4892. * <td>class</td>
  4893. * <td>
  4894. * dns_get_record only returns Internet class records and as
  4895. * such this parameter will always return IN.
  4896. * </td>
  4897. * </tr>
  4898. * <tr valign="top">
  4899. * <td>type</td>
  4900. * <td>
  4901. * String containing the record type. Additional attributes will also be contained
  4902. * in the resulting array dependant on the value of type. See table below.
  4903. * </td>
  4904. * </tr>
  4905. * <tr valign="top">
  4906. * <td>ttl</td>
  4907. * <td>
  4908. * "Time To Live" remaining for this record. This will not equal
  4909. * the record's original ttl, but will rather equal the original ttl minus whatever
  4910. * length of time has passed since the authoritative name server was queried.
  4911. * </td>
  4912. * </tr>
  4913. * </table>
  4914. * </p>
  4915. * <p>
  4916. * <table>
  4917. * Other keys in associative arrays dependant on 'type'
  4918. * <tr valign="top">
  4919. * <td>Type</td>
  4920. * <td>Extra Columns</td>
  4921. * </tr>
  4922. * <tr valign="top">
  4923. * <td>A</td>
  4924. * <td>
  4925. * ip: An IPv4 addresses in dotted decimal notation.
  4926. * </td>
  4927. * </tr>
  4928. * <tr valign="top">
  4929. * <td>MX</td>
  4930. * <td>
  4931. * pri: Priority of mail exchanger.
  4932. * Lower numbers indicate greater priority.
  4933. * target: FQDN of the mail exchanger.
  4934. * See also dns_get_mx.
  4935. * </td>
  4936. * </tr>
  4937. * <tr valign="top">
  4938. * <td>CNAME</td>
  4939. * <td>
  4940. * target: FQDN of location in DNS namespace to which
  4941. * the record is aliased.
  4942. * </td>
  4943. * </tr>
  4944. * <tr valign="top">
  4945. * <td>NS</td>
  4946. * <td>
  4947. * target: FQDN of the name server which is authoritative
  4948. * for this hostname.
  4949. * </td>
  4950. * </tr>
  4951. * <tr valign="top">
  4952. * <td>PTR</td>
  4953. * <td>
  4954. * target: Location within the DNS namespace to which
  4955. * this record points.
  4956. * </td>
  4957. * </tr>
  4958. * <tr valign="top">
  4959. * <td>TXT</td>
  4960. * <td>
  4961. * txt: Arbitrary string data associated with this record.
  4962. * </td>
  4963. * </tr>
  4964. * <tr valign="top">
  4965. * <td>HINFO</td>
  4966. * <td>
  4967. * cpu: IANA number designating the CPU of the machine
  4968. * referenced by this record.
  4969. * os: IANA number designating the Operating System on
  4970. * the machine referenced by this record.
  4971. * See IANA's Operating System
  4972. * Names for the meaning of these values.
  4973. * </td>
  4974. * </tr>
  4975. * <tr valign="top">
  4976. * <td>SOA</td>
  4977. * <td>
  4978. * mname: FQDN of the machine from which the resource
  4979. * records originated.
  4980. * rname: Email address of the administrative contain
  4981. * for this domain.
  4982. * serial: Serial # of this revision of the requested
  4983. * domain.
  4984. * refresh: Refresh interval (seconds) secondary name
  4985. * servers should use when updating remote copies of this domain.
  4986. * retry: Length of time (seconds) to wait after a
  4987. * failed refresh before making a second attempt.
  4988. * expire: Maximum length of time (seconds) a secondary
  4989. * DNS server should retain remote copies of the zone data without a
  4990. * successful refresh before discarding.
  4991. * minimum-ttl: Minimum length of time (seconds) a
  4992. * client can continue to use a DNS resolution before it should request
  4993. * a new resolution from the server. Can be overridden by individual
  4994. * resource records.
  4995. * </td>
  4996. * </tr>
  4997. * <tr valign="top">
  4998. * <td>AAAA</td>
  4999. * <td>
  5000. * ipv6: IPv6 address
  5001. * </td>
  5002. * </tr>
  5003. * <tr valign="top">
  5004. * <td>A6(PHP &gt;= 5.1.0)</td>
  5005. * <td>
  5006. * masklen: Length (in bits) to inherit from the target
  5007. * specified by chain.
  5008. * ipv6: Address for this specific record to merge with
  5009. * chain.
  5010. * chain: Parent record to merge with
  5011. * ipv6 data.
  5012. * </td>
  5013. * </tr>
  5014. * <tr valign="top">
  5015. * <td>SRV</td>
  5016. * <td>
  5017. * pri: (Priority) lowest priorities should be used first.
  5018. * weight: Ranking to weight which of commonly prioritized
  5019. * targets should be chosen at random.
  5020. * target and port: hostname and port
  5021. * where the requested service can be found.
  5022. * For additional information see: RFC 2782
  5023. * </td>
  5024. * </tr>
  5025. * <tr valign="top">
  5026. * <td>NAPTR</td>
  5027. * <td>
  5028. * order and pref: Equivalent to
  5029. * pri and weight above.
  5030. * flags, services, regex,
  5031. * and replacement: Parameters as defined by
  5032. * RFC 2915.
  5033. * </td>
  5034. * </tr>
  5035. * </table>
  5036. */
  5037. function dns_get_record ($hostname, $type = null, &$authns = nullarray , &$addtl = nullarray ) {}
  5038. /**
  5039. * (PHP 4, PHP 5)<br/>
  5040. * Get the integer value of a variable
  5041. * @link http://php.net/manual/en/function.intval.php
  5042. * @param mixed $var <p>
  5043. * The scalar value being converted to an integer
  5044. * </p>
  5045. * @param int $base [optional] <p>
  5046. * The base for the conversion
  5047. * </p>
  5048. * @return int The integer value of var on success, or 0 on
  5049. * failure. Empty arrays and objects return 0, non-empty arrays and
  5050. * objects return 1.
  5051. * </p>
  5052. * <p>
  5053. * The maximum value depends on the system. 32 bit systems have a
  5054. * maximum signed integer range of -2147483648 to 2147483647. So for example
  5055. * on such a system, intval('1000000000000') will return
  5056. * 2147483647. The maximum signed integer value for 64 bit systems is
  5057. * 9223372036854775807.
  5058. * </p>
  5059. * <p>
  5060. * Strings will most likely return 0 although this depends on the
  5061. * leftmost characters of the string. The common rules of
  5062. * integer casting
  5063. * apply.
  5064. */
  5065. function intval ($var, $base = null) {}
  5066. /**
  5067. * (PHP 4 &gt;= 4.2.0, PHP 5)<br/>
  5068. * Get float value of a variable
  5069. * @link http://php.net/manual/en/function.floatval.php
  5070. * @param mixed $var <p>
  5071. * May be any scalar type. You cannot use floatval
  5072. * on arrays or objects.
  5073. * </p>
  5074. * @return float The float value of the given variable.
  5075. */
  5076. function floatval ($var) {}
  5077. /**
  5078. * (PHP 4, PHP 5)<br/>
  5079. * &Alias; <function>floatval</function>
  5080. * @link http://php.net/manual/en/function.doubleval.php
  5081. * @param $var
  5082. */
  5083. function doubleval ($var) {}
  5084. /**
  5085. * (PHP 4, PHP 5)<br/>
  5086. * Get string value of a variable
  5087. * @link http://php.net/manual/en/function.strval.php
  5088. * @param mixed $var <p>
  5089. * The variable that is being converted to a string.
  5090. * </p>
  5091. * <p>
  5092. * var may be any scalar type. You cannot use
  5093. * strval on arrays or objects.
  5094. * </p>
  5095. * @return string The string value of var.
  5096. */
  5097. function strval ($var) {}
  5098. /**
  5099. * (PHP 4, PHP 5)<br/>
  5100. * Get the type of a variable
  5101. * @link http://php.net/manual/en/function.gettype.php
  5102. * @param mixed $var <p>
  5103. * The variable being type checked.
  5104. * </p>
  5105. * @return string Possibles values for the returned string are:
  5106. * "boolean"
  5107. * "integer"
  5108. * "double" (for historical reasons "double" is
  5109. * returned in case of a float, and not simply
  5110. * "float")
  5111. * "string"
  5112. * "array"
  5113. * "object"
  5114. * "resource"
  5115. * "NULL"
  5116. * "unknown type"
  5117. */
  5118. function gettype ($var) {}
  5119. /**
  5120. * (PHP 4, PHP 5)<br/>
  5121. * Set the type of a variable
  5122. * @link http://php.net/manual/en/function.settype.php
  5123. * @param mixed $var <p>
  5124. * The variable being converted.
  5125. * </p>
  5126. * @param string $type <p>
  5127. * Possibles values of type are:
  5128. * "boolean" (or, since PHP 4.2.0, "bool")
  5129. * @return bool Returns true on success or false on failure.
  5130. */
  5131. function settype (&$var, $type) {}
  5132. /**
  5133. * (PHP 4 &gt;= 4.0.4, PHP 5)<br/>
  5134. * Finds whether a variable is &null;
  5135. * @link http://php.net/manual/en/function.is-null.php
  5136. * @param mixed $var <p>
  5137. * The variable being evaluated.
  5138. * </p>
  5139. * @return bool true if var is null, false
  5140. * otherwise.
  5141. */
  5142. function is_null ($var) {}
  5143. /**
  5144. * (PHP 4, PHP 5)<br/>
  5145. * Finds whether a variable is a resource
  5146. * @link http://php.net/manual/en/function.is-resource.php
  5147. * @param mixed $var <p>
  5148. * The variable being evaluated.
  5149. * </p>
  5150. * @return bool true if var is a resource,
  5151. * false otherwise.
  5152. */
  5153. function is_resource ($var) {}
  5154. /**
  5155. * (PHP 4, PHP 5)<br/>
  5156. * Finds out whether a variable is a boolean
  5157. * @link http://php.net/manual/en/function.is-bool.php
  5158. * @param mixed $var <p>
  5159. * The variable being evaluated.
  5160. * </p>
  5161. * @return bool true if var is a boolean,
  5162. * false otherwise.
  5163. */
  5164. function is_bool ($var) {}
  5165. /**
  5166. * (PHP 4, PHP 5)<br/>
  5167. * &Alias; <function>is_int</function>
  5168. * @link http://php.net/manual/en/function.is-long.php
  5169. * @param $var
  5170. */
  5171. function is_long ($var) {}
  5172. /**
  5173. * (PHP 4, PHP 5)<br/>
  5174. * Finds whether the type of a variable is float
  5175. * @link http://php.net/manual/en/function.is-float.php
  5176. * @param mixed $var <p>
  5177. * The variable being evaluated.
  5178. * </p>
  5179. * @return bool true if var is a float,
  5180. * false otherwise.
  5181. */
  5182. function is_float ($var) {}
  5183. /**
  5184. * (PHP 4, PHP 5)<br/>
  5185. * Find whether the type of a variable is integer
  5186. * @link http://php.net/manual/en/function.is-int.php
  5187. * @param mixed $var <p>
  5188. * The variable being evaluated.
  5189. * </p>
  5190. * @return bool true if var is an integer,
  5191. * false otherwise.
  5192. */
  5193. function is_int ($var) {}
  5194. /**
  5195. * (PHP 4, PHP 5)<br/>
  5196. * &Alias; <function>is_int</function>
  5197. * @link http://php.net/manual/en/function.is-integer.php
  5198. * @param $var
  5199. */
  5200. function is_integer ($var) {}
  5201. /**
  5202. * (PHP 4, PHP 5)<br/>
  5203. * &Alias; <function>is_float</function>
  5204. * @link http://php.net/manual/en/function.is-double.php
  5205. * @param $var
  5206. */
  5207. function is_double ($var) {}
  5208. /**
  5209. * (PHP 4, PHP 5)<br/>
  5210. * &Alias; <function>is_float</function>
  5211. * @link http://php.net/manual/en/function.is-real.php
  5212. * @param $var
  5213. */
  5214. function is_real ($var) {}
  5215. /**
  5216. * (PHP 4, PHP 5)<br/>
  5217. * Finds whether a variable is a number or a numeric string
  5218. * @link http://php.net/manual/en/function.is-numeric.php
  5219. * @param mixed $var <p>
  5220. * The variable being evaluated.
  5221. * </p>
  5222. * @return bool true if var is a number or a numeric
  5223. * string, false otherwise.
  5224. */
  5225. function is_numeric ($var) {}
  5226. /**
  5227. * (PHP 4, PHP 5)<br/>
  5228. * Find whether the type of a variable is string
  5229. * @link http://php.net/manual/en/function.is-string.php
  5230. * @param mixed $var <p>
  5231. * The variable being evaluated.
  5232. * </p>
  5233. * @return bool true if var is of type string,
  5234. * false otherwise.
  5235. */
  5236. function is_string ($var) {}
  5237. /**
  5238. * (PHP 4, PHP 5)<br/>
  5239. * Finds whether a variable is an array
  5240. * @link http://php.net/manual/en/function.is-array.php
  5241. * @param mixed $var <p>
  5242. * The variable being evaluated.
  5243. * </p>
  5244. * @return bool true if var is an array,
  5245. * false otherwise.
  5246. */
  5247. function is_array ($var) {}
  5248. /**
  5249. * (PHP 4, PHP 5)<br/>
  5250. * Finds whether a variable is an object
  5251. * @link http://php.net/manual/en/function.is-object.php
  5252. * @param mixed $var <p>
  5253. * The variable being evaluated.
  5254. * </p>
  5255. * @return bool true if var is an object,
  5256. * false otherwise.
  5257. */
  5258. function is_object ($var) {}
  5259. /**
  5260. * (PHP 4 &gt;= 4.0.5, PHP 5)<br/>
  5261. * Finds whether a variable is a scalar
  5262. * @link http://php.net/manual/en/function.is-scalar.php
  5263. * @param mixed $var <p>
  5264. * The variable being evaluated.
  5265. * </p>
  5266. * @return bool true if var is a scalar false
  5267. * otherwise.
  5268. */
  5269. function is_scalar ($var) {}
  5270. /**
  5271. * (PHP 4 &gt;= 4.0.6, PHP 5)<br/>
  5272. * Verify that the contents of a variable can be called as a function
  5273. * @link http://php.net/manual/en/function.is-callable.php
  5274. * @param callback $name <p>
  5275. * Can be either the name of a function stored in a string variable, or
  5276. * an object and the name of a method within the object, like this:
  5277. * array($SomeObject, 'MethodName')
  5278. * </p>
  5279. * @param bool $syntax_only [optional] <p>
  5280. * If set to true the function only verifies that
  5281. * name might be a function or method. It will only
  5282. * reject simple variables that are not strings, or an array that does
  5283. * not have a valid structure to be used as a callback. The valid ones
  5284. * are supposed to have only 2 entries, the first of which is an object
  5285. * or a string, and the second a string.
  5286. * </p>
  5287. * @param string $callable_name [optional] <p>
  5288. * Receives the "callable name". In the example below it is
  5289. * "someClass::someMethod". Note, however, that despite the implication
  5290. * that someClass::SomeMethod() is a callable static method, this is not
  5291. * the case.
  5292. * </p>
  5293. * @return bool true if name is callable, false
  5294. * otherwise.
  5295. */
  5296. function is_callable ($name, $syntax_only = null, &$callable_name = null) {}
  5297. /**
  5298. * (PHP 4, PHP 5)<br/>
  5299. * Closes process file pointer
  5300. * @link http://php.net/manual/en/function.pclose.php
  5301. * @param resource $handle <p>
  5302. * The file pointer must be valid, and must have been returned by a
  5303. * successful call to popen.
  5304. * </p>
  5305. * @return int the termination status of the process that was run.
  5306. */
  5307. function pclose ($handle) {}
  5308. /**
  5309. * (PHP 4, PHP 5)<br/>
  5310. * Opens process file pointer
  5311. * @link http://php.net/manual/en/function.popen.php
  5312. * @param string $command <p>
  5313. * The command
  5314. * </p>
  5315. * @param string $mode <p>
  5316. * The mode
  5317. * </p>
  5318. * @return resource a file pointer identical to that returned by
  5319. * fopen, except that it is unidirectional (may
  5320. * only be used for reading or writing) and must be closed with
  5321. * pclose. This pointer may be used with
  5322. * fgets, fgetss, and
  5323. * fwrite.
  5324. * </p>
  5325. * <p>
  5326. * If an error occurs, returns false.
  5327. */
  5328. function popen ($command, $mode) {}
  5329. /**
  5330. * (PHP 4, PHP 5)<br/>
  5331. * Outputs a file
  5332. * @link http://php.net/manual/en/function.readfile.php
  5333. * @param string $filename <p>
  5334. * The filename being read.
  5335. * </p>
  5336. * @param bool $use_include_path [optional] <p>
  5337. * You can use the optional second parameter and set it to true, if
  5338. * you want to search for the file in the include_path, too.
  5339. * </p>
  5340. * @param resource $context [optional] <p>
  5341. * A context stream resource.
  5342. * </p>
  5343. * @return int the number of bytes read from the file. If an error
  5344. * occurs, false is returned and unless the function was called as
  5345. * @readfile, an error message is printed.
  5346. */
  5347. function readfile ($filename, $use_include_path = null, $context = null) {}
  5348. /**
  5349. * (PHP 4, PHP 5)<br/>
  5350. * Rewind the position of a file pointer
  5351. * @link http://php.net/manual/en/function.rewind.php
  5352. * @param resource $handle <p>
  5353. * The file pointer must be valid, and must point to a file
  5354. * successfully opened by fopen.
  5355. * </p>
  5356. * @return bool Returns true on success or false on failure.
  5357. */
  5358. function rewind ($handle) {}
  5359. /**
  5360. * (PHP 4, PHP 5)<br/>
  5361. * Removes directory
  5362. * @link http://php.net/manual/en/function.rmdir.php
  5363. * @param string $dirname <p>
  5364. * Path to the directory.
  5365. * </p>
  5366. * @param resource $context [optional] &note.context-support;
  5367. * @return bool Returns true on success or false on failure.
  5368. */
  5369. function rmdir ($dirname, $context = null) {}
  5370. /**
  5371. * (PHP 4, PHP 5)<br/>
  5372. * Changes the current umask
  5373. * @link http://php.net/manual/en/function.umask.php
  5374. * @param int $mask [optional] <p>
  5375. * The new umask.
  5376. * </p>
  5377. * @return int umask without arguments simply returns the
  5378. * current umask otherwise the old umask is returned.
  5379. */
  5380. function umask ($mask = null) {}
  5381. /**
  5382. * (PHP 4, PHP 5)<br/>
  5383. * Closes an open file pointer
  5384. * @link http://php.net/manual/en/function.fclose.php
  5385. * @param resource $handle <p>
  5386. * The file pointer must be valid, and must point to a file successfully
  5387. * opened by fopen or fsockopen.
  5388. * </p>
  5389. * @return bool Returns true on success or false on failure.
  5390. */
  5391. function fclose ($handle) {}
  5392. /**
  5393. * (PHP 4, PHP 5)<br/>
  5394. * Tests for end-of-file on a file pointer
  5395. * @link http://php.net/manual/en/function.feof.php
  5396. * @param resource $handle &fs.validfp.all;
  5397. * @return bool true if the file pointer is at EOF or an error occurs
  5398. * (including socket timeout); otherwise returns false.
  5399. */
  5400. function feof ($handle) {}
  5401. /**
  5402. * (PHP 4, PHP 5)<br/>
  5403. * Gets character from file pointer
  5404. * @link http://php.net/manual/en/function.fgetc.php
  5405. * @param resource $handle &fs.validfp.all;
  5406. * @return string a string containing a single character read from the file pointed
  5407. * to by handle. Returns false on EOF.
  5408. */
  5409. function fgetc ($handle) {}
  5410. /**
  5411. * (PHP 4, PHP 5)<br/>
  5412. * Gets line from file pointer
  5413. * @link http://php.net/manual/en/function.fgets.php
  5414. * @param resource $handle &fs.validfp.all;
  5415. * @param int $length [optional] <p>
  5416. * Reading ends when length - 1 bytes have been
  5417. * read, on a newline (which is included in the return value), or on EOF
  5418. * (whichever comes first). If no length is specified, it will keep
  5419. * reading from the stream until it reaches the end of the line.
  5420. * </p>
  5421. * <p>
  5422. * Until PHP 4.3.0, omitting it would assume 1024 as the line length.
  5423. * If the majority of the lines in the file are all larger than 8KB,
  5424. * it is more resource efficient for your script to specify the maximum
  5425. * line length.
  5426. * </p>
  5427. * @return string a string of up to length - 1 bytes read from
  5428. * the file pointed to by handle.
  5429. * </p>
  5430. * <p>
  5431. * If an error occurs, returns false.
  5432. */
  5433. function fgets ($handle, $length = null) {}
  5434. /**
  5435. * (PHP 4, PHP 5)<br/>
  5436. * Gets line from file pointer and strip HTML tags
  5437. * @link http://php.net/manual/en/function.fgetss.php
  5438. * @param resource $handle &fs.validfp.all;
  5439. * @param int $length [optional] <p>
  5440. * Length of the data to be retrieved.
  5441. * </p>
  5442. * @param string $allowable_tags [optional] <p>
  5443. * You can use the optional third parameter to specify tags which should
  5444. * not be stripped.
  5445. * </p>
  5446. * @return string a string of up to length - 1 bytes read from
  5447. * the file pointed to by handle, with all HTML and PHP
  5448. * code stripped.
  5449. * </p>
  5450. * <p>
  5451. * If an error occurs, returns false.
  5452. */
  5453. function fgetss ($handle, $length = null, $allowable_tags = null) {}
  5454. /**
  5455. * (PHP 4, PHP 5)<br/>
  5456. * Binary-safe file read
  5457. * @link http://php.net/manual/en/function.fread.php
  5458. * @param resource $handle &fs.file.pointer;
  5459. * @param int $length <p>
  5460. * Up to length number of bytes read.
  5461. * </p>
  5462. * @return string the read string &return.falseforfailure;.
  5463. */
  5464. function fread ($handle, $length) {}
  5465. /**
  5466. * (PHP 4, PHP 5)<br/>
  5467. * Opens file or URL
  5468. * @link http://php.net/manual/en/function.fopen.php
  5469. * @param string $filename <p>
  5470. * If filename is of the form "scheme://...", it
  5471. * is assumed to be a URL and PHP will search for a protocol handler
  5472. * (also known as a wrapper) for that scheme. If no wrappers for that
  5473. * protocol are registered, PHP will emit a notice to help you track
  5474. * potential problems in your script and then continue as though
  5475. * filename specifies a regular file.
  5476. * </p>
  5477. * <p>
  5478. * If PHP has decided that filename specifies
  5479. * a local file, then it will try to open a stream on that file.
  5480. * The file must be accessible to PHP, so you need to ensure that
  5481. * the file access permissions allow this access.
  5482. * If you have enabled &safemode;,
  5483. * or open_basedir further
  5484. * restrictions may apply.
  5485. * </p>
  5486. * <p>
  5487. * If PHP has decided that filename specifies
  5488. * a registered protocol, and that protocol is registered as a
  5489. * network URL, PHP will check to make sure that
  5490. * allow_url_fopen is
  5491. * enabled. If it is switched off, PHP will emit a warning and
  5492. * the fopen call will fail.
  5493. * </p>
  5494. * <p>
  5495. * The list of supported protocols can be found in . Some protocols (also referred to as
  5496. * wrappers) support context
  5497. * and/or &php.ini; options. Refer to the specific page for the
  5498. * protocol in use for a list of options which can be set. (e.g.
  5499. * &php.ini; value user_agent used by the
  5500. * http wrapper).
  5501. * </p>
  5502. * <p>
  5503. * On the Windows platform, be careful to escape any backslashes
  5504. * used in the path to the file, or use forward slashes.
  5505. * ]]>
  5506. * </p>
  5507. * @param string $mode <p>
  5508. * The mode parameter specifies the type of access
  5509. * you require to the stream. It may be any of the following:
  5510. * <table>
  5511. * A list of possible modes for fopen
  5512. * using mode
  5513. * <tr valign="top">
  5514. * <td>mode</td>
  5515. * <td>Description</td>
  5516. * </tr>
  5517. * <tr valign="top">
  5518. * <td>'r'</td>
  5519. * <td>
  5520. * Open for reading only; place the file pointer at the
  5521. * beginning of the file.
  5522. * </td>
  5523. * </tr>
  5524. * <tr valign="top">
  5525. * <td>'r+'</td>
  5526. * <td>
  5527. * Open for reading and writing; place the file pointer at
  5528. * the beginning of the file.
  5529. * </td>
  5530. * </tr>
  5531. * <tr valign="top">
  5532. * <td>'w'</td>
  5533. * <td>
  5534. * Open for writing only; place the file pointer at the
  5535. * beginning of the file and truncate the file to zero length.
  5536. * If the file does not exist, attempt to create it.
  5537. * </td>
  5538. * </tr>
  5539. * <tr valign="top">
  5540. * <td>'w+'</td>
  5541. * <td>
  5542. * Open for reading and writing; place the file pointer at
  5543. * the beginning of the file and truncate the file to zero
  5544. * length. If the file does not exist, attempt to create it.
  5545. * </td>
  5546. * </tr>
  5547. * <tr valign="top">
  5548. * <td>'a'</td>
  5549. * <td>
  5550. * Open for writing only; place the file pointer at the end of
  5551. * the file. If the file does not exist, attempt to create it.
  5552. * </td>
  5553. * </tr>
  5554. * <tr valign="top">
  5555. * <td>'a+'</td>
  5556. * <td>
  5557. * Open for reading and writing; place the file pointer at
  5558. * the end of the file. If the file does not exist, attempt to
  5559. * create it.
  5560. * </td>
  5561. * </tr>
  5562. * <tr valign="top">
  5563. * <td>'x'</td>
  5564. * <td>
  5565. * Create and open for writing only; place the file pointer at the
  5566. * beginning of the file. If the file already exists, the
  5567. * fopen call will fail by returning false and
  5568. * generating an error of level E_WARNING. If
  5569. * the file does not exist, attempt to create it. This is equivalent
  5570. * to specifying O_EXCL|O_CREAT flags for the
  5571. * underlying open(2) system call.
  5572. * </td>
  5573. * </tr>
  5574. * <tr valign="top">
  5575. * <td>'x+'</td>
  5576. * <td>
  5577. * Create and open for reading and writing; place the file pointer at
  5578. * the beginning of the file. If the file already exists, the
  5579. * fopen call will fail by returning false and
  5580. * generating an error of level E_WARNING. If
  5581. * the file does not exist, attempt to create it. This is equivalent
  5582. * to specifying O_EXCL|O_CREAT flags for the
  5583. * underlying open(2) system call.
  5584. * </td>
  5585. * </tr>
  5586. * </table>
  5587. * </p>
  5588. * <p>
  5589. * Different operating system families have different line-ending
  5590. * conventions. When you write a text file and want to insert a line
  5591. * break, you need to use the correct line-ending character(s) for your
  5592. * operating system. Unix based systems use \n as the
  5593. * line ending character, Windows based systems use \r\n
  5594. * as the line ending characters and Macintosh based systems use
  5595. * \r as the line ending character.
  5596. * </p>
  5597. * <p>
  5598. * If you use the wrong line ending characters when writing your files, you
  5599. * might find that other applications that open those files will "look
  5600. * funny".
  5601. * </p>
  5602. * <p>
  5603. * Windows offers a text-mode translation flag ('t')
  5604. * which will transparently translate \n to
  5605. * \r\n when working with the file. In contrast, you
  5606. * can also use 'b' to force binary mode, which will not
  5607. * translate your data. To use these flags, specify either
  5608. * 'b' or 't' as the last character
  5609. * of the mode parameter.
  5610. * </p>
  5611. * <p>
  5612. * The default translation mode depends on the SAPI and version of PHP that
  5613. * you are using, so you are encouraged to always specify the appropriate
  5614. * flag for portability reasons. You should use the 't'
  5615. * mode if you are working with plain-text files and you use
  5616. * \n to delimit your line endings in your script, but
  5617. * expect your files to be readable with applications such as notepad. You
  5618. * should use the 'b' in all other cases.
  5619. * </p>
  5620. * <p>
  5621. * If you do not specify the 'b' flag when working with binary files, you
  5622. * may experience strange problems with your data, including broken image
  5623. * files and strange problems with \r\n characters.
  5624. * </p>
  5625. * <p>
  5626. * For portability, it is strongly recommended that you always
  5627. * use the 'b' flag when opening files with fopen.
  5628. * </p>
  5629. * <p>
  5630. * Again, for portability, it is also strongly recommended that
  5631. * you re-write code that uses or relies upon the 't'
  5632. * mode so that it uses the correct line endings and
  5633. * 'b' mode instead.
  5634. * </p>
  5635. * @param bool $use_include_path [optional] <p>
  5636. * The optional third use_include_path parameter
  5637. * can be set to '1' or true if you want to search for the file in the
  5638. * include_path, too.
  5639. * </p>
  5640. * @param resource $context [optional] &note.context-support;
  5641. * @return resource a file pointer resource on success, or false on error.
  5642. */
  5643. function fopen ($filename, $mode, $use_include_path = null, $context = null) {}
  5644. /**
  5645. * (PHP 4, PHP 5)<br/>
  5646. * Output all remaining data on a file pointer
  5647. * @link http://php.net/manual/en/function.fpassthru.php
  5648. * @param resource $handle &fs.validfp.all;
  5649. * @return int If an error occurs, fpassthru returns
  5650. * false. Otherwise, fpassthru returns
  5651. * the number of characters read from handle
  5652. * and passed through to the output.
  5653. */
  5654. function fpassthru ($handle) {}
  5655. /**
  5656. * (PHP 4, PHP 5)<br/>
  5657. * Truncates a file to a given length
  5658. * @link http://php.net/manual/en/function.ftruncate.php
  5659. * @param resource $handle <p>
  5660. * The file pointer.
  5661. * </p>
  5662. * <p>
  5663. * The handle must be open for writing.
  5664. * </p>
  5665. * @param int $size <p>
  5666. * The size to truncate to.
  5667. * </p>
  5668. * <p>
  5669. * If size is larger than the file it is extended
  5670. * with null bytes.
  5671. * </p>
  5672. * <p>
  5673. * If size is smaller than the extra data
  5674. * will be lost.
  5675. * </p>
  5676. * @return bool Returns true on success or false on failure.
  5677. */
  5678. function ftruncate ($handle, $size) {}
  5679. /**
  5680. * (PHP 4, PHP 5)<br/>
  5681. * Gets information about a file using an open file pointer
  5682. * @link http://php.net/manual/en/function.fstat.php
  5683. * @param resource $handle &fs.file.pointer;
  5684. * @return array an array with the statistics of the file; the format of the array
  5685. * is described in detail on the stat manual page.
  5686. */
  5687. function fstat ($handle) {}
  5688. /**
  5689. * (PHP 4, PHP 5)<br/>
  5690. * Seeks on a file pointer
  5691. * @link http://php.net/manual/en/function.fseek.php
  5692. * @param resource $handle &fs.file.pointer;
  5693. * @param int $offset <p>
  5694. * The offset.
  5695. * </p>
  5696. * <p>
  5697. * To move to a position before the end-of-file, you need to pass
  5698. * a negative value in offset and
  5699. * set whence
  5700. * to SEEK_END.
  5701. * </p>
  5702. * @param int $whence [optional] <p>
  5703. * whence values are:
  5704. * SEEK_SET - Set position equal to offset bytes.
  5705. * SEEK_CUR - Set position to current location plus offset.
  5706. * SEEK_END - Set position to end-of-file plus offset.
  5707. * </p>
  5708. * <p>
  5709. * If whence is not specified, it is assumed to be
  5710. * SEEK_SET.
  5711. * </p>
  5712. * @return int Upon success, returns 0; otherwise, returns -1. Note that seeking
  5713. * past EOF is not considered an error.
  5714. */
  5715. function fseek ($handle, $offset, $whence = null) {}
  5716. /**
  5717. * (PHP 4, PHP 5)<br/>
  5718. * Returns the current position of the file read/write pointer
  5719. * @link http://php.net/manual/en/function.ftell.php
  5720. * @param resource $handle <p>
  5721. * The file pointer must be valid, and must point to a file successfully
  5722. * opened by fopen or popen.
  5723. * ftell gives undefined results for append-only streams
  5724. * (opened with "a" flag).
  5725. * </p>
  5726. * @return int the position of the file pointer referenced by
  5727. * handle as an integer; i.e., its offset into the file stream.
  5728. * </p>
  5729. * <p>
  5730. * If an error occurs, returns false.
  5731. */
  5732. function ftell ($handle) {}
  5733. /**
  5734. * (PHP 4 &gt;= 4.0.1, PHP 5)<br/>
  5735. * Flushes the output to a file
  5736. * @link http://php.net/manual/en/function.fflush.php
  5737. * @param resource $handle &fs.validfp.all;
  5738. * @return bool Returns true on success or false on failure.
  5739. */
  5740. function fflush ($handle) {}
  5741. /**
  5742. * (PHP 4, PHP 5)<br/>
  5743. * Binary-safe file write
  5744. * @link http://php.net/manual/en/function.fwrite.php
  5745. * @param resource $handle &fs.file.pointer;
  5746. * @param string $string <p>
  5747. * The string that is to be written.
  5748. * </p>
  5749. * @param int $length [optional] <p>
  5750. * If the length argument is given, writing will
  5751. * stop after length bytes have been written or
  5752. * the end of string is reached, whichever comes
  5753. * first.
  5754. * </p>
  5755. * <p>
  5756. * Note that if the length argument is given,
  5757. * then the magic_quotes_runtime
  5758. * configuration option will be ignored and no slashes will be
  5759. * stripped from string.
  5760. * </p>
  5761. * @return int
  5762. */
  5763. function fwrite ($handle, $string, $length = null) {}
  5764. /**
  5765. * (PHP 4, PHP 5)<br/>
  5766. * &Alias; <function>fwrite</function>
  5767. * @link http://php.net/manual/en/function.fputs.php
  5768. * @param $fp
  5769. * @param $str
  5770. * @param $length [optional]
  5771. */
  5772. function fputs ($fp, $str, $length) {}
  5773. /**
  5774. * (PHP 4, PHP 5)<br/>
  5775. * Makes directory
  5776. * @link http://php.net/manual/en/function.mkdir.php
  5777. * @param string $pathname <p>
  5778. * The directory path.
  5779. * </p>
  5780. * @param int $mode [optional] <p>
  5781. * The mode is 0777 by default, which means the widest possible
  5782. * access. For more information on modes, read the details
  5783. * on the chmod page.
  5784. * </p>
  5785. * <p>
  5786. * mode is ignored on Windows.
  5787. * </p>
  5788. * <p>
  5789. * Note that you probably want to specify the mode as an octal number,
  5790. * which means it should have a leading zero. The mode is also modified
  5791. * by the current umask, which you can change using
  5792. * umask.
  5793. * </p>
  5794. * @param bool $recursive [optional] <p>
  5795. * Default to false.
  5796. * </p>
  5797. * @param resource $context [optional] &note.context-support;
  5798. * @return bool Returns true on success or false on failure.
  5799. */
  5800. function mkdir ($pathname, $mode = null, $recursive = null, $context = null) {}
  5801. /**
  5802. * (PHP 4, PHP 5)<br/>
  5803. * Renames a file or directory
  5804. * @link http://php.net/manual/en/function.rename.php
  5805. * @param string $oldname <p>
  5806. * </p>
  5807. * <p>
  5808. * The old name. The wrapper used in oldname
  5809. * must match the wrapper used in
  5810. * newname.
  5811. * </p>
  5812. * @param string $newname <p>
  5813. * The new name.
  5814. * </p>
  5815. * @param resource $context [optional] &note.context-support;
  5816. * @return bool Returns true on success or false on failure.
  5817. */
  5818. function rename ($oldname, $newname, $context = null) {}
  5819. /**
  5820. * (PHP 4, PHP 5)<br/>
  5821. * Copies file
  5822. * @link http://php.net/manual/en/function.copy.php
  5823. * @param string $source <p>
  5824. * Path to the source file.
  5825. * </p>
  5826. * @param string $dest <p>
  5827. * The destination path. If dest is a URL, the
  5828. * copy operation may fail if the wrapper does not support overwriting of
  5829. * existing files.
  5830. * </p>
  5831. * <p>
  5832. * If the destination file already exists, it will be overwritten.
  5833. * </p>
  5834. * @param resource $context [optional] <p>
  5835. * A valid context resource created with
  5836. * stream_context_create.
  5837. * </p>
  5838. * @return bool Returns true on success or false on failure.
  5839. */
  5840. function copy ($source, $dest, $context = null) {}
  5841. /**
  5842. * (PHP 4, PHP 5)<br/>
  5843. * Create file with unique file name
  5844. * @link http://php.net/manual/en/function.tempnam.php
  5845. * @param string $dir <p>
  5846. * The directory where the temporary filename will be created.
  5847. * </p>
  5848. * @param string $prefix <p>
  5849. * The prefix of the generated temporary filename.
  5850. * </p>
  5851. * Windows use only the first three characters of prefix.
  5852. * @return string the new temporary filename, or false on
  5853. * failure.
  5854. */
  5855. function tempnam ($dir, $prefix) {}
  5856. /**
  5857. * (PHP 4, PHP 5)<br/>
  5858. * Creates a temporary file
  5859. * @link http://php.net/manual/en/function.tmpfile.php
  5860. * @return resource a file handle, similar to the one returned by
  5861. * fopen, for the new file&return.falseforfailure;.
  5862. */
  5863. function tmpfile () {}
  5864. /**
  5865. * (PHP 4, PHP 5)<br/>
  5866. * Reads entire file into an array
  5867. * @link http://php.net/manual/en/function.file.php
  5868. * @param string $filename <p>
  5869. * Path to the file.
  5870. * </p>
  5871. * &tip.fopen-wrapper;
  5872. * @param int $flags [optional] <p>
  5873. * The optional parameter flags can be one, or
  5874. * more, of the following constants:
  5875. * FILE_USE_INCLUDE_PATH
  5876. * Search for the file in the include_path.
  5877. * @param resource $context [optional] <p>
  5878. * A context resource created with the
  5879. * stream_context_create function.
  5880. * </p>
  5881. * <p>
  5882. * &note.context-support;
  5883. * </p>
  5884. * @return array the file in an array. Each element of the array corresponds to a
  5885. * line in the file, with the newline still attached. Upon failure,
  5886. * file returns false.
  5887. * </p>
  5888. * <p>
  5889. * Each line in the resulting array will include the line ending, unless
  5890. * FILE_IGNORE_NEW_LINES is used, so you still need to
  5891. * use rtrim if you do not want the line ending
  5892. * present.
  5893. */
  5894. function file ($filename, $flags = null, $context = null) {}
  5895. /**
  5896. * (PHP 4 &gt;= 4.3.0, PHP 5)<br/>
  5897. * Reads entire file into a string
  5898. * @link http://php.net/manual/en/function.file-get-contents.php
  5899. * @param string $filename <p>
  5900. * Name of the file to read.
  5901. * </p>
  5902. * @param int $flags [optional] <p>
  5903. * Prior to PHP 6, this parameter is called
  5904. * use_include_path and is a bool.
  5905. * As of PHP 5 the FILE_USE_INCLUDE_PATH can be used
  5906. * to trigger include path
  5907. * search.
  5908. * </p>
  5909. * <p>
  5910. * The value of flags can be any combination of
  5911. * the following flags (with some restrictions), joined with the
  5912. * binary OR (|)
  5913. * operator.
  5914. * </p>
  5915. * <p>
  5916. * <table>
  5917. * Available flags
  5918. * <tr valign="top">
  5919. * <td>Flag</td>
  5920. * <td>Description</td>
  5921. * </tr>
  5922. * <tr valign="top">
  5923. * <td>
  5924. * FILE_USE_INCLUDE_PATH
  5925. * </td>
  5926. * <td>
  5927. * Search for filename in the include directory.
  5928. * See include_path for more
  5929. * information.
  5930. * </td>
  5931. * </tr>
  5932. * <tr valign="top">
  5933. * <td>
  5934. * FILE_TEXT
  5935. * </td>
  5936. * <td>
  5937. * As of PHP 6, the default encoding of the read
  5938. * data is UTF-8. You can specify a different encoding by creating a
  5939. * custom context or by changing the default using
  5940. * stream_default_encoding. This flag cannot be
  5941. * used with FILE_BINARY.
  5942. * </td>
  5943. * </tr>
  5944. * <tr valign="top">
  5945. * <td>
  5946. * FILE_BINARY
  5947. * </td>
  5948. * <td>
  5949. * With this flag, the file is read in binary mode. This is the default
  5950. * setting and cannot be used with FILE_TEXT.
  5951. * </td>
  5952. * </tr>
  5953. * </table>
  5954. * </p>
  5955. * @param resource $context [optional] <p>
  5956. * A valid context resource created with
  5957. * stream_context_create. If you don't need to use a
  5958. * custom context, you can skip this parameter by &null;.
  5959. * </p>
  5960. * @param int $offset [optional] <p>
  5961. * The offset where the reading starts.
  5962. * </p>
  5963. * @param int $maxlen [optional] <p>
  5964. * Maximum length of data read. The default is to read until end
  5965. * of file is reached.
  5966. * </p>
  5967. * @return string The function returns the read data&return.falseforfailure;.
  5968. */
  5969. function file_get_contents ($filename, $flags = null, $context = null, $offset = null, $maxlen = null) {}
  5970. /**
  5971. * (PHP 5)<br/>
  5972. * Write a string to a file
  5973. * @link http://php.net/manual/en/function.file-put-contents.php
  5974. * @param string $filename <p>
  5975. * Path to the file where to write the data.
  5976. * </p>
  5977. * @param mixed $data <p>
  5978. * The data to write. Can be either a string, an
  5979. * array or a stream resource.
  5980. * </p>
  5981. * <p>
  5982. * If data is a stream resource, the
  5983. * remaining buffer of that stream will be copied to the specified file.
  5984. * This is similar with using stream_copy_to_stream.
  5985. * </p>
  5986. * <p>
  5987. * You can also specify the data parameter as a single
  5988. * dimension array. This is equivalent to
  5989. * file_put_contents($filename, implode('', $array)).
  5990. * </p>
  5991. * @param int $flags [optional] <p>
  5992. * The value of flags can be any combination of
  5993. * the following flags (with some restrictions), joined with the binary OR
  5994. * (|) operator.
  5995. * </p>
  5996. * <p>
  5997. * <table>
  5998. * Available flags
  5999. * <tr valign="top">
  6000. * <td>Flag</td>
  6001. * <td>Description</td>
  6002. * </tr>
  6003. * <tr valign="top">
  6004. * <td>
  6005. * FILE_USE_INCLUDE_PATH
  6006. * </td>
  6007. * <td>
  6008. * Search for filename in the include directory.
  6009. * See include_path for more
  6010. * information.
  6011. * </td>
  6012. * </tr>
  6013. * <tr valign="top">
  6014. * <td>
  6015. * FILE_APPEND
  6016. * </td>
  6017. * <td>
  6018. * If file filename already exists, append
  6019. * the data to the file instead of overwriting it. Mutually
  6020. * exclusive with LOCK_EX since appends are atomic and thus there
  6021. * is no reason to lock.
  6022. * </td>
  6023. * </tr>
  6024. * <tr valign="top">
  6025. * <td>
  6026. * LOCK_EX
  6027. * </td>
  6028. * <td>
  6029. * Acquire an exclusive lock on the file while proceeding to the
  6030. * writing. Mutually exclusive with FILE_APPEND.
  6031. * </td>
  6032. * </tr>
  6033. * <tr valign="top">
  6034. * <td>
  6035. * FILE_TEXT
  6036. * </td>
  6037. * <td>
  6038. * data is written in text mode. If unicode
  6039. * semantics are enabled, the default encoding is UTF-8.
  6040. * You can specify a different encoding by creating a custom context
  6041. * or by using the stream_default_encoding to
  6042. * change the default. This flag cannot be used with
  6043. * FILE_BINARY. This flag is only available since
  6044. * PHP 6.
  6045. * </td>
  6046. * </tr>
  6047. * <tr valign="top">
  6048. * <td>
  6049. * FILE_BINARY
  6050. * </td>
  6051. * <td>
  6052. * data will be written in binary mode. This
  6053. * is the default setting and cannot be used with
  6054. * FILE_TEXT. This flag is only available since
  6055. * PHP 6.
  6056. * </td>
  6057. * </tr>
  6058. * </table>
  6059. * </p>
  6060. * @param resource $context [optional] <p>
  6061. * A valid context resource created with
  6062. * stream_context_create.
  6063. * </p>
  6064. * @return int The function returns the number of bytes that were written to the file, or
  6065. * false on failure.
  6066. */
  6067. function file_put_contents ($filename, $data, $flags = null, $context = null) {}
  6068. /**
  6069. * (PHP 4 &gt;= 4.3.0, PHP 5)<br/>
  6070. * Runs the equivalent of the select() system call on the given
  6071. arrays of streams with a timeout specified by tv_sec and tv_usec
  6072. * @link http://php.net/manual/en/function.stream-select.php
  6073. * @param array $read <p>
  6074. * The streams listed in the read array will be watched to
  6075. * see if characters become available for reading (more precisely, to see if
  6076. * a read will not block - in particular, a stream resource is also ready on
  6077. * end-of-file, in which case an fread will return
  6078. * a zero length string).
  6079. * </p>
  6080. * @param array $write <p>
  6081. * The streams listed in the write array will be
  6082. * watched to see if a write will not block.
  6083. * </p>
  6084. * @param array $except <p>
  6085. * The streams listed in the except array will be
  6086. * watched for high priority exceptional ("out-of-band") data arriving.
  6087. * </p>
  6088. * <p>
  6089. * When stream_select returns, the arrays
  6090. * read, write and
  6091. * except are modified to indicate which stream
  6092. * resource(s) actually changed status.
  6093. * </p>
  6094. * You do not need to pass every array to
  6095. * stream_select. You can leave it out and use an
  6096. * empty array or &null; instead. Also do not forget that those arrays are
  6097. * passed by reference and will be modified after
  6098. * stream_select returns.
  6099. * @param int $tv_sec <p>
  6100. * The tv_sec and tv_usec
  6101. * together form the timeout parameter,
  6102. * tv_sec specifies the number of seconds while
  6103. * tv_usec the number of microseconds.
  6104. * The timeout is an upper bound on the amount of time
  6105. * that stream_select will wait before it returns.
  6106. * If tv_sec and tv_usec are
  6107. * both set to 0, stream_select will
  6108. * not wait for data - instead it will return immediately, indicating the
  6109. * current status of the streams.
  6110. * </p>
  6111. * <p>
  6112. * If tv_sec is &null; stream_select
  6113. * can block indefinitely, returning only when an event on one of the
  6114. * watched streams occurs (or if a signal interrupts the system call).
  6115. * </p>
  6116. * <p>
  6117. * Using a timeout value of 0 allows you to
  6118. * instantaneously poll the status of the streams, however, it is NOT a
  6119. * good idea to use a 0 timeout value in a loop as it
  6120. * will cause your script to consume too much CPU time.
  6121. * </p>
  6122. * <p>
  6123. * It is much better to specify a timeout value of a few seconds, although
  6124. * if you need to be checking and running other code concurrently, using a
  6125. * timeout value of at least 200000 microseconds will
  6126. * help reduce the CPU usage of your script.
  6127. * </p>
  6128. * <p>
  6129. * Remember that the timeout value is the maximum time that will elapse;
  6130. * stream_select will return as soon as the
  6131. * requested streams are ready for use.
  6132. * </p>
  6133. * @param int $tv_usec [optional] <p>
  6134. * See tv_sec description.
  6135. * </p>
  6136. * @return int On success stream_select returns the number of
  6137. * stream resources contained in the modified arrays, which may be zero if
  6138. * the timeout expires before anything interesting happens. On error false
  6139. * is returned and a warning raised (this can happen if the system call is
  6140. * interrupted by an incoming signal).
  6141. */
  6142. function stream_select (&$readarray , &$writearray , &$exceptarray , $tv_sec, $tv_usec = null) {}
  6143. /**
  6144. * (PHP 4 &gt;= 4.3.0, PHP 5)<br/>
  6145. * Create a streams context
  6146. * @link http://php.net/manual/en/function.stream-context-create.php
  6147. * @param array $options [optional] <p>
  6148. * Must be an associative array of associative arrays in the format
  6149. * $arr['wrapper']['option'] = $value.
  6150. * </p>
  6151. * <p>
  6152. * Default to an empty array.
  6153. * </p>
  6154. * @param array $params [optional] <p>
  6155. * Must be an associative array in the format
  6156. * $arr['parameter'] = $value.
  6157. * Refer to context parameters for
  6158. * a listing of standard stream parameters.
  6159. * </p>
  6160. * @return resource A stream context resource.
  6161. */
  6162. function stream_context_create ($options = nullarray , $params = nullarray ) {}
  6163. /**
  6164. * (PHP 4 &gt;= 4.3.0, PHP 5)<br/>
  6165. * Set parameters for a stream/wrapper/context
  6166. * @link http://php.net/manual/en/function.stream-context-set-params.php
  6167. * @param resource $stream_or_context <p>
  6168. * The stream or context to apply the parameters too.
  6169. * </p>
  6170. * @param array $params <p>
  6171. * An array of parameters to set.
  6172. * </p>
  6173. * <p>
  6174. * params should be an associative array of the structure:
  6175. * $params['paramname'] = "paramvalue";.
  6176. * </p>
  6177. * @return bool Returns true on success or false on failure.
  6178. */
  6179. function stream_context_set_params ($stream_or_context, $paramsarray ) {}
  6180. /**
  6181. * (PHP 5 &gt;= 5.3.0)<br/>
  6182. * Retrieves parameters from a context
  6183. * @link http://php.net/manual/en/function.stream-context-get-params.php
  6184. * @param resource $stream_or_context <p>
  6185. * A stream resource or a
  6186. * context resource
  6187. * </p>
  6188. * @return array an associate array containing all context options and parameters.
  6189. */
  6190. function stream_context_get_params ($stream_or_context) {}
  6191. /**
  6192. * (PHP 4 &gt;= 4.3.0, PHP 5)<br/>
  6193. * Sets an option for a stream/wrapper/context
  6194. * @link http://php.net/manual/en/function.stream-context-set-option.php
  6195. * @param resource $stream_or_context <p>
  6196. * The stream or context resource to apply the options too.
  6197. * </p>
  6198. * @param string $wrapper
  6199. * @param string $option
  6200. * @param mixed $value
  6201. * @return bool Returns true on success or false on failure.
  6202. */
  6203. function stream_context_set_option ($stream_or_context, $wrapper, $option, $value) {}
  6204. /**
  6205. * (PHP 4 &gt;= 4.3.0, PHP 5)<br/>
  6206. * Retrieve options for a stream/wrapper/context
  6207. * @link http://php.net/manual/en/function.stream-context-get-options.php
  6208. * @param resource $stream_or_context <p>
  6209. * The stream or context to get options from
  6210. * </p>
  6211. * @return array an associative array with the options.
  6212. */
  6213. function stream_context_get_options ($stream_or_context) {}
  6214. /**
  6215. * (PHP 5 &gt;= 5.1.0)<br/>
  6216. * Retreive the default streams context
  6217. * @link http://php.net/manual/en/function.stream-context-get-default.php
  6218. * @param array $options [optional] options must be an associative
  6219. * array of associative arrays in the format
  6220. * $arr['wrapper']['option'] = $value.
  6221. * <p>
  6222. * As of PHP 5.3.0, the stream_context_set_default function
  6223. * can be used to set the default context.
  6224. * </p>
  6225. * @return resource A stream context resource.
  6226. */
  6227. function stream_context_get_default ($options = nullarray ) {}
  6228. /**
  6229. * (PHP 5 &gt;= 5.3.0)<br/>
  6230. * Set the default streams context
  6231. * @link http://php.net/manual/en/function.stream-context-set-default.php
  6232. * @param array $options <p>
  6233. * The options to set for the default context.
  6234. * </p>
  6235. * <p>
  6236. * options must be an associative
  6237. * array of associative arrays in the format
  6238. * $arr['wrapper']['option'] = $value.
  6239. * </p>
  6240. * @return resource the default stream context.
  6241. */
  6242. function stream_context_set_default ($optionsarray ) {}
  6243. /**
  6244. * (PHP 4 &gt;= 4.3.0, PHP 5)<br/>
  6245. * Attach a filter to a stream
  6246. * @link http://php.net/manual/en/function.stream-filter-prepend.php
  6247. * @param resource $stream <p>
  6248. * The target stream.
  6249. * </p>
  6250. * @param string $filtername <p>
  6251. * The filter name.
  6252. * </p>
  6253. * @param int $read_write [optional] <p>
  6254. * By default, stream_filter_prepend will
  6255. * attach the filter to the read filter chain
  6256. * if the file was opened for reading (i.e. File Mode:
  6257. * r, and/or +). The filter
  6258. * will also be attached to the write filter chain
  6259. * if the file was opened for writing (i.e. File Mode:
  6260. * w, a, and/or +).
  6261. * STREAM_FILTER_READ,
  6262. * STREAM_FILTER_WRITE, and/or
  6263. * STREAM_FILTER_ALL can also be passed to the
  6264. * read_write parameter to override this behavior.
  6265. * See stream_filter_append for an example of
  6266. * using this parameter.
  6267. * </p>
  6268. * @param mixed $params [optional] <p>
  6269. * This filter will be added with the specified params
  6270. * to the beginning of the list and will therefore be
  6271. * called first during stream operations. To add a filter to the end of the
  6272. * list, use stream_filter_append.
  6273. * </p>
  6274. * @return resource a resource which can be used to refer to this filter
  6275. * instance during a call to stream_filter_remove.
  6276. */
  6277. function stream_filter_prepend ($stream, $filtername, $read_write = null, $params = null) {}
  6278. /**
  6279. * (PHP 4 &gt;= 4.3.0, PHP 5)<br/>
  6280. * Attach a filter to a stream
  6281. * @link http://php.net/manual/en/function.stream-filter-append.php
  6282. * @param resource $stream <p>
  6283. * The target stream.
  6284. * </p>
  6285. * @param string $filtername <p>
  6286. * The filter name.
  6287. * </p>
  6288. * @param int $read_write [optional] <p>
  6289. * By default, stream_filter_append will
  6290. * attach the filter to the read filter chain
  6291. * if the file was opened for reading (i.e. File Mode:
  6292. * r, and/or +). The filter
  6293. * will also be attached to the write filter chain
  6294. * if the file was opened for writing (i.e. File Mode:
  6295. * w, a, and/or +).
  6296. * STREAM_FILTER_READ,
  6297. * STREAM_FILTER_WRITE, and/or
  6298. * STREAM_FILTER_ALL can also be passed to the
  6299. * read_write parameter to override this behavior.
  6300. * </p>
  6301. * @param mixed $params [optional] <p>
  6302. * This filter will be added with the specified
  6303. * params to the end of
  6304. * the list and will therefore be called last during stream operations.
  6305. * To add a filter to the beginning of the list, use
  6306. * stream_filter_prepend.
  6307. * </p>
  6308. * @return resource a resource which can be used to refer to this filter
  6309. * instance during a call to stream_filter_remove.
  6310. */
  6311. function stream_filter_append ($stream, $filtername, $read_write = null, $params = null) {}
  6312. /**
  6313. * (PHP 5 &gt;= 5.1.0)<br/>
  6314. * Remove a filter from a stream
  6315. * @link http://php.net/manual/en/function.stream-filter-remove.php
  6316. * @param resource $stream_filter <p>
  6317. * The stream filter to be removed.
  6318. * </p>
  6319. * @return bool Returns true on success or false on failure.
  6320. */
  6321. function stream_filter_remove ($stream_filter) {}
  6322. /**
  6323. * (PHP 5)<br/>
  6324. * Open Internet or Unix domain socket connection
  6325. * @link http://php.net/manual/en/function.stream-socket-client.php
  6326. * @param string $remote_socket <p>
  6327. * Address to the socket to connect to.
  6328. * </p>
  6329. * @param int $errno [optional] <p>
  6330. * Will be set to the system level error number if connection fails.
  6331. * </p>
  6332. * @param string $errstr [optional] <p>
  6333. * Will be set to the system level error message if the connection fails.
  6334. * </p>
  6335. * @param float $timeout [optional] <p>
  6336. * Number of seconds until the connect() system call
  6337. * should timeout.
  6338. * This parameter only applies when not making asynchronous
  6339. * connection attempts.
  6340. * <p>
  6341. * To set a timeout for reading/writing data over the socket, use the
  6342. * stream_set_timeout, as the
  6343. * timeout only applies while making connecting
  6344. * the socket.
  6345. * </p>
  6346. * </p>
  6347. * @param int $flags [optional] <p>
  6348. * Bitmask field which may be set to any combination of connection flags.
  6349. * Currently the select of connection flags is limited to
  6350. * STREAM_CLIENT_CONNECT (default),
  6351. * STREAM_CLIENT_ASYNC_CONNECT and
  6352. * STREAM_CLIENT_PERSISTENT.
  6353. * </p>
  6354. * @param resource $context [optional] <p>
  6355. * A valid context resource created with stream_context_create.
  6356. * </p>
  6357. * @return resource On success a stream resource is returned which may
  6358. * be used together with the other file functions (such as
  6359. * fgets, fgetss,
  6360. * fwrite, fclose, and
  6361. * feof), false on failure.
  6362. */
  6363. function stream_socket_client ($remote_socket, &$errno = null, &$errstr = null, $timeout = null, $flags = null, $context = null) {}
  6364. /**
  6365. * (PHP 5)<br/>
  6366. * Create an Internet or Unix domain server socket
  6367. * @link http://php.net/manual/en/function.stream-socket-server.php
  6368. * @param string $local_socket <p>
  6369. * The type of socket created is determined by the transport specified
  6370. * using standard URL formatting: transport://target.
  6371. * </p>
  6372. * <p>
  6373. * For Internet Domain sockets (AF_INET) such as TCP and UDP, the
  6374. * target portion of the
  6375. * remote_socket parameter should consist of a
  6376. * hostname or IP address followed by a colon and a port number. For
  6377. * Unix domain sockets, the target portion should
  6378. * point to the socket file on the filesystem.
  6379. * </p>
  6380. * <p>
  6381. * Depending on the environment, Unix domain sockets may not be available.
  6382. * A list of available transports can be retrieved using
  6383. * stream_get_transports. See
  6384. * for a list of bulitin transports.
  6385. * </p>
  6386. * @param int $errno [optional] <p>
  6387. * If the optional errno and errstr
  6388. * arguments are present they will be set to indicate the actual system
  6389. * level error that occurred in the system-level socket(),
  6390. * bind(), and listen() calls. If
  6391. * the value returned in errno is
  6392. * 0 and the function returned false, it is an
  6393. * indication that the error occurred before the bind()
  6394. * call. This is most likely due to a problem initializing the socket.
  6395. * Note that the errno and
  6396. * errstr arguments will always be passed by reference.
  6397. * </p>
  6398. * @param string $errstr [optional] <p>
  6399. * See errno description.
  6400. * </p>
  6401. * @param int $flags [optional] <p>
  6402. * A bitmask field which may be set to any combination of socket creation
  6403. * flags.
  6404. * </p>
  6405. * <p>
  6406. * For UDP sockets, you must use STREAM_SERVER_BIND as
  6407. * the flags parameter.
  6408. * </p>
  6409. * @param resource $context [optional] <p>
  6410. * </p>
  6411. * @return resource the created stream, or false on error.
  6412. */
  6413. function stream_socket_server ($local_socket, &$errno = null, &$errstr = null, $flags = null, $context = null) {}
  6414. /**
  6415. * (PHP 5)<br/>
  6416. * Accept a connection on a socket created by <function>stream_socket_server</function>
  6417. * @link http://php.net/manual/en/function.stream-socket-accept.php
  6418. * @param resource $server_socket
  6419. * @param float $timeout [optional] <p>
  6420. * Override the default socket accept timeout. Time should be given in
  6421. * seconds.
  6422. * </p>
  6423. * @param string $peername [optional] <p>
  6424. * Will be set to the name (address) of the client which connected, if
  6425. * included and available from the selected transport.
  6426. * </p>
  6427. * <p>
  6428. * Can also be determined later using
  6429. * stream_socket_get_name.
  6430. * </p>
  6431. * @return resource Returns true on success or false on failure.
  6432. */
  6433. function stream_socket_accept ($server_socket, $timeout = null, &$peername = null) {}
  6434. /**
  6435. * (PHP 5)<br/>
  6436. * Retrieve the name of the local or remote sockets
  6437. * @link http://php.net/manual/en/function.stream-socket-get-name.php
  6438. * @param resource $handle <p>
  6439. * The socket to get the name of.
  6440. * </p>
  6441. * @param bool $want_peer <p>
  6442. * If set to true the remote socket name will be returned, if set
  6443. * to false the local socket name will be returned.
  6444. * </p>
  6445. * @return string The name of the socket.
  6446. */
  6447. function stream_socket_get_name ($handle, $want_peer) {}
  6448. /**
  6449. * (PHP 5)<br/>
  6450. * Receives data from a socket, connected or not
  6451. * @link http://php.net/manual/en/function.stream-socket-recvfrom.php
  6452. * @param resource $socket <p>
  6453. * The remote socket.
  6454. * </p>
  6455. * @param int $length <p>
  6456. * The number of bytes to receive from the socket.
  6457. * </p>
  6458. * @param int $flags [optional] <p>
  6459. * The value of flags can be any combination
  6460. * of the following:
  6461. * <table>
  6462. * Possible values for flags
  6463. * <tr valign="top">
  6464. * <td>STREAM_OOB</td>
  6465. * <td>
  6466. * Process OOB (out-of-band) data.
  6467. * </td>
  6468. * </tr>
  6469. * <tr valign="top">
  6470. * <td>STREAM_PEEK</td>
  6471. * <td>
  6472. * Retrieve data from the socket, but do not consume the buffer.
  6473. * Subsequent calls to fread or
  6474. * stream_socket_recvfrom will see
  6475. * the same data.
  6476. * </td>
  6477. * </tr>
  6478. * </table>
  6479. * </p>
  6480. * @param string $address [optional] <p>
  6481. * If address is provided it will be populated with
  6482. * the address of the remote socket.
  6483. * </p>
  6484. * @return string the read data, as a string
  6485. */
  6486. function stream_socket_recvfrom ($socket, $length, $flags = null, &$address = null) {}
  6487. /**
  6488. * (PHP 5)<br/>
  6489. * Sends a message to a socket, whether it is connected or not
  6490. * @link http://php.net/manual/en/function.stream-socket-sendto.php
  6491. * @param resource $socket <p>
  6492. * The socket to send data to.
  6493. * </p>
  6494. * @param string $data <p>
  6495. * The data to be sent.
  6496. * </p>
  6497. * @param int $flags [optional] <p>
  6498. * The value of flags can be any combination
  6499. * of the following:
  6500. * <table>
  6501. * possible values for flags
  6502. * <tr valign="top">
  6503. * <td>STREAM_OOB</td>
  6504. * <td>
  6505. * Process OOB (out-of-band) data.
  6506. * </td>
  6507. * </tr>
  6508. * </table>
  6509. * </p>
  6510. * @param string $address [optional] <p>
  6511. * The address specified when the socket stream was created will be used
  6512. * unless an alternate address is specified in address.
  6513. * </p>
  6514. * <p>
  6515. * If specified, it must be in dotted quad (or [ipv6]) format.
  6516. * </p>
  6517. * @return int a result code, as an integer.
  6518. */
  6519. function stream_socket_sendto ($socket, $data, $flags = null, $address = null) {}
  6520. /**
  6521. * (PHP 5 &gt;= 5.1.0)<br/>
  6522. * Turns encryption on/off on an already connected socket
  6523. * @link http://php.net/manual/en/function.stream-socket-enable-crypto.php
  6524. * @param resource $stream <p>
  6525. * The stream resource.
  6526. * </p>
  6527. * @param bool $enable <p>
  6528. * Enable/disable cryptography on the stream.
  6529. * </p>
  6530. * @param int $crypto_type [optional] <p>
  6531. * Setup encryption on the stream.
  6532. * Valid methods are
  6533. * STREAM_CRYPTO_METHOD_SSLv2_CLIENT
  6534. * @param resource $session_stream [optional] <p>
  6535. * Seed the stream with settings from session_stream.
  6536. * </p>
  6537. * @return mixed true on success, false if negotiation has failed or
  6538. * 0 if there isn't enough data and you should try again
  6539. * (only for non-blocking sockets).
  6540. */
  6541. function stream_socket_enable_crypto ($stream, $enable, $crypto_type = null, $session_stream = null) {}
  6542. /**
  6543. * (PHP 5 &gt;= 5.2.1)<br/>
  6544. * Shutdown a full-duplex connection
  6545. * @link http://php.net/manual/en/function.stream-socket-shutdown.php
  6546. * @param resource $stream <p>
  6547. * An open stream (opened with stream_socket_client,
  6548. * for example)
  6549. * </p>
  6550. * @param int $how <p>
  6551. * One of the following constants: STREAM_SHUT_RD
  6552. * (disable further receptions), STREAM_SHUT_WR
  6553. * (disable further transmissions) or
  6554. * STREAM_SHUT_RDWR (disable further receptions and
  6555. * transmissions).
  6556. * </p>
  6557. * @return bool Returns true on success or false on failure.
  6558. */
  6559. function stream_socket_shutdown ($stream, $how) {}
  6560. /**
  6561. * (PHP 5 &gt;= 5.1.0)<br/>
  6562. * Creates a pair of connected, indistinguishable socket streams
  6563. * @link http://php.net/manual/en/function.stream-socket-pair.php
  6564. * @param int $domain <p>
  6565. * The protocol family to be used: STREAM_PF_INET,
  6566. * STREAM_PF_INET6 or
  6567. * STREAM_PF_UNIX
  6568. * </p>
  6569. * @param int $type <p>
  6570. * The type of communication to be used:
  6571. * STREAM_SOCK_DGRAM,
  6572. * STREAM_SOCK_RAW,
  6573. * STREAM_SOCK_RDM,
  6574. * STREAM_SOCK_SEQPACKET or
  6575. * STREAM_SOCK_STREAM
  6576. * </p>
  6577. * @param int $protocol <p>
  6578. * The protocol to be used: STREAM_IPPROTO_ICMP,
  6579. * STREAM_IPPROTO_IP,
  6580. * STREAM_IPPROTO_RAW,
  6581. * STREAM_IPPROTO_TCP or
  6582. * STREAM_IPPROTO_UDP
  6583. * </p>
  6584. * @return array an array with the two socket resources on success, or
  6585. * false on failure.
  6586. */
  6587. function stream_socket_pair ($domain, $type, $protocol) {}
  6588. /**
  6589. * (PHP 5)<br/>
  6590. * Copies data from one stream to another
  6591. * @link http://php.net/manual/en/function.stream-copy-to-stream.php
  6592. * @param resource $source <p>
  6593. * The source stream
  6594. * </p>
  6595. * @param resource $dest <p>
  6596. * The destination stream
  6597. * </p>
  6598. * @param int $maxlength [optional] <p>
  6599. * Maximum bytes to copy
  6600. * </p>
  6601. * @param int $offset [optional] <p>
  6602. * The offset where to start to copy data
  6603. * </p>
  6604. * @return int the total count of bytes copied.
  6605. */
  6606. function stream_copy_to_stream ($source, $dest, $maxlength = null, $offset = null) {}
  6607. /**
  6608. * (PHP 5)<br/>
  6609. * Reads remainder of a stream into a string
  6610. * @link http://php.net/manual/en/function.stream-get-contents.php
  6611. * @param resource $handle <p>
  6612. * A stream resource (e.g. returned from fopen)
  6613. * </p>
  6614. * @param int $maxlength [optional] <p>
  6615. * The maximum bytes to read. Defaults to -1 (read all the remaining
  6616. * buffer).
  6617. * </p>
  6618. * @param int $offset [optional] <p>
  6619. * Seek to the specified offset before reading.
  6620. * </p>
  6621. * @return string a string&return.falseforfailure;.
  6622. */
  6623. function stream_get_contents ($handle, $maxlength = null, $offset = null) {}
  6624. /**
  6625. * (PHP 5 &gt;= 5.3.0)<br/>
  6626. * Tells whether the stream supports locking.
  6627. * @link http://php.net/manual/en/function.stream-supports-lock.php
  6628. * @param resource $stream <p>
  6629. * The stream to check.
  6630. * </p>
  6631. * @return bool Returns true on success or false on failure.
  6632. */
  6633. function stream_supports_lock ($stream) {}
  6634. /**
  6635. * (PHP 4, PHP 5)<br/>
  6636. * Gets line from file pointer and parse for CSV fields
  6637. * @link http://php.net/manual/en/function.fgetcsv.php
  6638. * @param resource $handle <p>
  6639. * A valid file pointer to a file successfully opened by
  6640. * fopen, popen, or
  6641. * fsockopen.
  6642. * </p>
  6643. * @param int $length [optional] <p>
  6644. * Must be greater than the longest line (in characters) to be found in
  6645. * the CSV file (allowing for trailing line-end characters). It became
  6646. * optional in PHP 5. Omitting this parameter (or setting it to 0 in PHP
  6647. * 5.0.4 and later) the maximum line length is not limited, which is
  6648. * slightly slower.
  6649. * </p>
  6650. * @param string $delimiter [optional] <p>
  6651. * Set the field delimiter (one character only).
  6652. * </p>
  6653. * @param string $enclosure [optional] <p>
  6654. * Set the field enclosure character (one character only).
  6655. * </p>
  6656. * @param string $escape [optional] <p>
  6657. * Set the escape character (one character only). Defaults as a backslash.
  6658. * </p>
  6659. * @return array an indexed array containing the fields read.
  6660. * </p>
  6661. * <p>
  6662. * A blank line in a CSV file will be returned as an array
  6663. * comprising a single null field, and will not be treated
  6664. * as an error.
  6665. * </p>
  6666. * &note.line-endings;
  6667. * <p>
  6668. * fgetcsv returns &null; if an invalid
  6669. * handle is supplied or false on other errors,
  6670. * including end of file.
  6671. */
  6672. function fgetcsv ($handle, $length = null, $delimiter = null, $enclosure = null, $escape = null) {}
  6673. /**
  6674. * (PHP 5 &gt;= 5.1.0)<br/>
  6675. * Format line as CSV and write to file pointer
  6676. * @link http://php.net/manual/en/function.fputcsv.php
  6677. * @param resource $handle &fs.validfp.all;
  6678. * @param array $fields <p>
  6679. * An array of values.
  6680. * </p>
  6681. * @param string $delimiter [optional] <p>
  6682. * The optional delimiter parameter sets the field
  6683. * delimiter (one character only).
  6684. * </p>
  6685. * @param string $enclosure [optional] <p>
  6686. * The optional enclosure parameter sets the field
  6687. * enclosure (one character only).
  6688. * </p>
  6689. * @return int the length of the written string&return.falseforfailure;.
  6690. */
  6691. function fputcsv ($handle, $fieldsarray , $delimiter = null, $enclosure = null) {}
  6692. /**
  6693. * (PHP 4, PHP 5)<br/>
  6694. * Portable advisory file locking
  6695. * @link http://php.net/manual/en/function.flock.php
  6696. * @param resource $handle <p>
  6697. * An open file pointer.
  6698. * </p>
  6699. * @param int $operation <p>
  6700. * operation is one of the following:
  6701. * LOCK_SH to acquire a shared lock (reader).
  6702. * @param int $wouldblock [optional] <p>
  6703. * The optional third argument is set to true if the lock would block
  6704. * (EWOULDBLOCK errno condition).
  6705. * </p>
  6706. * @return bool Returns true on success or false on failure.
  6707. */
  6708. function flock ($handle, $operation, &$wouldblock = null) {}
  6709. /**
  6710. * (PHP 4, PHP 5)<br/>
  6711. * Extracts all meta tag content attributes from a file and returns an array
  6712. * @link http://php.net/manual/en/function.get-meta-tags.php
  6713. * @param string $filename <p>
  6714. * The path to the HTML file, as a string. This can be a local file or an
  6715. * URL.
  6716. * </p>
  6717. * <p>
  6718. * What get_meta_tags parses
  6719. * ]]>
  6720. * (pay attention to line endings - PHP uses a native function to
  6721. * parse the input, so a Mac file won't work on Unix).
  6722. * </p>
  6723. * @param bool $use_include_path [optional] <p>
  6724. * Setting use_include_path to true will result
  6725. * in PHP trying to open the file along the standard include path as per
  6726. * the include_path directive.
  6727. * This is used for local files, not URLs.
  6728. * </p>
  6729. * @return array an array with all the parsed meta tags.
  6730. * </p>
  6731. * <p>
  6732. * The value of the name property becomes the key, the value of the content
  6733. * property becomes the value of the returned array, so you can easily use
  6734. * standard array functions to traverse it or access single values.
  6735. * Special characters in the value of the name property are substituted with
  6736. * '_', the rest is converted to lower case. If two meta tags have the same
  6737. * name, only the last one is returned.
  6738. */
  6739. function get_meta_tags ($filename, $use_include_path = null) {}
  6740. /**
  6741. * (PHP 4 &gt;= 4.3.0, PHP 5)<br/>
  6742. * Sets file buffering on the given stream
  6743. * @link http://php.net/manual/en/function.stream-set-write-buffer.php
  6744. * @param resource $stream <p>
  6745. * The file pointer.
  6746. * </p>
  6747. * @param int $buffer <p>
  6748. * The number of bytes to buffer. If buffer
  6749. * is 0 then write operations are unbuffered. This ensures that all writes
  6750. * with fwrite are completed before other processes are
  6751. * allowed to write to that output stream.
  6752. * </p>
  6753. * @return int 0 on success, or EOF if the request cannot be honored.
  6754. */
  6755. function stream_set_write_buffer ($stream, $buffer) {}
  6756. /**
  6757. * (PHP 4, PHP 5)<br/>
  6758. * &Alias; <function>stream_set_write_buffer</function>
  6759. * @link http://php.net/manual/en/function.set-file-buffer.php
  6760. * @param $fp
  6761. * @param $buffer
  6762. */
  6763. function set_file_buffer ($fp, $buffer) {}
  6764. /**
  6765. * (PHP 4, PHP 5)<br/>
  6766. * &Alias; <function>stream_set_blocking</function>
  6767. * @link http://php.net/manual/en/function.set-socket-blocking.php
  6768. * @param $socket
  6769. * @param $mode
  6770. */
  6771. function set_socket_blocking ($socket, $mode) {}
  6772. /**
  6773. * (PHP 4 &gt;= 4.3.0, PHP 5)<br/>
  6774. * Set blocking/non-blocking mode on a stream
  6775. * @link http://php.net/manual/en/function.stream-set-blocking.php
  6776. * @param resource $stream <p>
  6777. * The stream.
  6778. * </p>
  6779. * @param int $mode <p>
  6780. * If mode is 0, the given stream
  6781. * will be switched to non-blocking mode, and if 1, it
  6782. * will be switched to blocking mode. This affects calls like
  6783. * fgets and fread
  6784. * that read from the stream. In non-blocking mode an
  6785. * fgets call will always return right away
  6786. * while in blocking mode it will wait for data to become available
  6787. * on the stream.
  6788. * </p>
  6789. * @return bool Returns true on success or false on failure.
  6790. */
  6791. function stream_set_blocking ($stream, $mode) {}
  6792. /**
  6793. * (PHP 4, PHP 5)<br/>
  6794. * &Alias; <function>stream_set_blocking</function>
  6795. * @link http://php.net/manual/en/function.socket-set-blocking.php
  6796. * @param $socket
  6797. * @param $mode
  6798. */
  6799. function socket_set_blocking ($socket, $mode) {}
  6800. /**
  6801. * (PHP 4 &gt;= 4.3.0, PHP 5)<br/>
  6802. * Retrieves header/meta data from streams/file pointers
  6803. * @link http://php.net/manual/en/function.stream-get-meta-data.php
  6804. * @param resource $stream <p>
  6805. * The stream can be any stream created by fopen,
  6806. * fsockopen and pfsockopen.
  6807. * </p>
  6808. * @return array The result array contains the following items:
  6809. * </p>
  6810. * <p>
  6811. * timed_out (bool) - true if the stream
  6812. * timed out while waiting for data on the last call to
  6813. * fread or fgets.
  6814. * </p>
  6815. * <p>
  6816. * blocked (bool) - true if the stream is
  6817. * in blocking IO mode. See stream_set_blocking.
  6818. * </p>
  6819. * <p>
  6820. * eof (bool) - true if the stream has reached
  6821. * end-of-file. Note that for socket streams this member can be true
  6822. * even when unread_bytes is non-zero. To
  6823. * determine if there is more data to be read, use
  6824. * feof instead of reading this item.
  6825. * </p>
  6826. * <p>
  6827. * unread_bytes (int) - the number of bytes
  6828. * currently contained in the PHP's own internal buffer.
  6829. * </p>
  6830. * You shouldn't use this value in a script.
  6831. * <p>
  6832. * stream_type (string) - a label describing
  6833. * the underlying implementation of the stream.
  6834. * </p>
  6835. * <p>
  6836. * wrapper_type (string) - a label describing
  6837. * the protocol wrapper implementation layered over the stream.
  6838. * See for more information about wrappers.
  6839. * </p>
  6840. * <p>
  6841. * wrapper_data (mixed) - wrapper specific
  6842. * data attached to this stream. See for
  6843. * more information about wrappers and their wrapper data.
  6844. * </p>
  6845. * <p>
  6846. * filters (array) - and array containing
  6847. * the names of any filters that have been stacked onto this stream.
  6848. * Documentation on filters can be found in the
  6849. * Filters appendix.
  6850. * </p>
  6851. * <p>
  6852. * mode (string) - the type of access required for
  6853. * this stream (see Table 1 of the fopen() reference)
  6854. * </p>
  6855. * <p>
  6856. * seekable (bool) - whether the current stream can
  6857. * be seeked.
  6858. * </p>
  6859. * <p>
  6860. * uri (string) - the URI/filename associated with this
  6861. * stream.
  6862. */
  6863. function stream_get_meta_data ($stream) {}
  6864. /**
  6865. * (PHP 5)<br/>
  6866. * Gets line from stream resource up to a given delimiter
  6867. * @link http://php.net/manual/en/function.stream-get-line.php
  6868. * @param resource $handle <p>
  6869. * A valid file handle.
  6870. * </p>
  6871. * @param int $length <p>
  6872. * The number of bytes to read from the handle.
  6873. * </p>
  6874. * @param string $ending [optional] <p>
  6875. * An optional string delimiter.
  6876. * </p>
  6877. * @return string a string of up to length bytes read from the file
  6878. * pointed to by handle.
  6879. * </p>
  6880. * <p>
  6881. * If an error occurs, returns false.
  6882. */
  6883. function stream_get_line ($handle, $length, $ending = null) {}
  6884. /**
  6885. * (PHP 4 &gt;= 4.3.2, PHP 5)<br/>
  6886. * Register a URL wrapper implemented as a PHP class
  6887. * @link http://php.net/manual/en/function.stream-wrapper-register.php
  6888. * @param string $protocol <p>
  6889. * The wrapper name to be registered.
  6890. * </p>
  6891. * @param string $classname <p>
  6892. * The classname which implements the protocol.
  6893. * </p>
  6894. * @param int $flags [optional] <p>
  6895. * Should be set to STREAM_IS_URL if
  6896. * protocol is a URL protocol. Default is 0, local
  6897. * stream.
  6898. * </p>
  6899. * @return bool Returns true on success or false on failure.
  6900. * </p>
  6901. * <p>
  6902. * stream_wrapper_register will return false if the
  6903. * protocol already has a handler.
  6904. */
  6905. function stream_wrapper_register ($protocol, $classname, $flags = null) {}
  6906. /**
  6907. * (PHP 4 &gt;= 4.3.0, PHP 5)<br/>
  6908. * &Alias; <function>stream_wrapper_register</function>
  6909. * @link http://php.net/manual/en/function.stream-register-wrapper.php
  6910. * @param $protocol
  6911. * @param $classname
  6912. * @param $flags [optional]
  6913. */
  6914. function stream_register_wrapper ($protocol, $classname, $flags) {}
  6915. /**
  6916. * (PHP 5 &gt;= 5.1.0)<br/>
  6917. * Unregister a URL wrapper
  6918. * @link http://php.net/manual/en/function.stream-wrapper-unregister.php
  6919. * @param string $protocol <p>
  6920. * </p>
  6921. * @return bool Returns true on success or false on failure.
  6922. */
  6923. function stream_wrapper_unregister ($protocol) {}
  6924. /**
  6925. * (PHP 5 &gt;= 5.1.0)<br/>
  6926. * Restores a previously unregistered built-in wrapper
  6927. * @link http://php.net/manual/en/function.stream-wrapper-restore.php
  6928. * @param string $protocol <p>
  6929. * </p>
  6930. * @return bool Returns true on success or false on failure.
  6931. */
  6932. function stream_wrapper_restore ($protocol) {}
  6933. /**
  6934. * (PHP 5)<br/>
  6935. * Retrieve list of registered streams
  6936. * @link http://php.net/manual/en/function.stream-get-wrappers.php
  6937. * @return array an indexed array containing the name of all stream wrappers
  6938. * available on the running system.
  6939. */
  6940. function stream_get_wrappers () {}
  6941. /**
  6942. * (PHP 5)<br/>
  6943. * Retrieve list of registered socket transports
  6944. * @link http://php.net/manual/en/function.stream-get-transports.php
  6945. * @return array an indexed array of socket transports names.
  6946. */
  6947. function stream_get_transports () {}
  6948. /**
  6949. * (PHP 5 &gt;= 5.3.2, PHP 6)<br/>
  6950. * Determine what file will be opened by calls to <function>fopen</function> with a relative path
  6951. * @link http://php.net/manual/en/function.stream-resolve-include-path.php
  6952. * @param string $filename
  6953. * @param resource $context [optional] <p>
  6954. * A valid context resource created with stream_context_create.
  6955. * </p>
  6956. * @return string On success, the resolved absolute filename is returned. On failure, false is returned.
  6957. */
  6958. function stream_resolve_include_path ($filename, $context = null) {}
  6959. /**
  6960. * (PHP 5 &gt;= 5.2.4)<br/>
  6961. * Checks if a stream is a local stream
  6962. * @link http://php.net/manual/en/function.stream-is-local.php
  6963. * @param mixed $stream_or_url <p>
  6964. * The stream resource or URL to check.
  6965. * </p>
  6966. * @return bool Returns true on success or false on failure.
  6967. */
  6968. function stream_is_local ($stream_or_url) {}
  6969. /**
  6970. * (PHP 5)<br/>
  6971. * Fetches all the headers sent by the server in response to a HTTP request
  6972. * @link http://php.net/manual/en/function.get-headers.php
  6973. * @param string $url <p>
  6974. * The target URL.
  6975. * </p>
  6976. * @param int $format [optional] <p>
  6977. * If the optional format parameter is set to non-zero,
  6978. * get_headers parses the response and sets the
  6979. * array's keys.
  6980. * </p>
  6981. * @return array an indexed or associative array with the headers, or false on
  6982. * failure.
  6983. */
  6984. function get_headers ($url, $format = null) {}
  6985. /**
  6986. * (PHP 4 &gt;= 4.3.0, PHP 5)<br/>
  6987. * Set timeout period on a stream
  6988. * @link http://php.net/manual/en/function.stream-set-timeout.php
  6989. * @param resource $stream <p>
  6990. * The target stream.
  6991. * </p>
  6992. * @param int $seconds <p>
  6993. * The seconds part of the timeout to be set.
  6994. * </p>
  6995. * @param int $microseconds [optional] <p>
  6996. * The microseconds part of the timeout to be set.
  6997. * </p>
  6998. * @return bool Returns true on success or false on failure.
  6999. */
  7000. function stream_set_timeout ($stream, $seconds, $microseconds = null) {}
  7001. /**
  7002. * (PHP 4, PHP 5)<br/>
  7003. * &Alias; <function>stream_set_timeout</function>
  7004. * @link http://php.net/manual/en/function.socket-set-timeout.php
  7005. * @param $stream
  7006. * @param $seconds
  7007. * @param $microseconds
  7008. */
  7009. function socket_set_timeout ($stream, $seconds, $microseconds) {}
  7010. /**
  7011. * (PHP 4, PHP 5)<br/>
  7012. * &Alias; <function>stream_get_meta_data</function>
  7013. * @link http://php.net/manual/en/function.socket-get-status.php
  7014. * @param $fp
  7015. */
  7016. function socket_get_status ($fp) {}
  7017. /**
  7018. * (PHP 4, PHP 5)<br/>
  7019. * Returns canonicalized absolute pathname
  7020. * @link http://php.net/manual/en/function.realpath.php
  7021. * @param string $path <p>
  7022. * The path being checked.
  7023. * </p>
  7024. * @return string the canonicalized absolute pathname on success. The resulting path
  7025. * will have no symbolic link, '/./' or '/../' components.
  7026. * </p>
  7027. * <p>
  7028. * realpath returns false on failure, e.g. if
  7029. * the file does not exist.
  7030. */
  7031. function realpath ($path) {}
  7032. /**
  7033. * (PHP 4 &gt;= 4.3.0, PHP 5)<br/>
  7034. * Match filename against a pattern
  7035. * @link http://php.net/manual/en/function.fnmatch.php
  7036. * @param string $pattern <p>
  7037. * The shell wildcard pattern.
  7038. * </p>
  7039. * @param string $string <p>
  7040. * The tested string. This function is especially useful for filenames,
  7041. * but may also be used on regular strings.
  7042. * </p>
  7043. * <p>
  7044. * The average user may be used to shell patterns or at least in their
  7045. * simplest form to '?' and '*'
  7046. * wildcards so using fnmatch instead of
  7047. * preg_match for
  7048. * frontend search expression input may be way more convenient for
  7049. * non-programming users.
  7050. * </p>
  7051. * @param int $flags [optional] <p>
  7052. * The value of flags can be any combination of
  7053. * the following flags, joined with the
  7054. * binary OR (|) operator.
  7055. * <table>
  7056. * A list of possible flags for fnmatch
  7057. * <tr valign="top">
  7058. * <td>Flag</td>
  7059. * <td>Description</td>
  7060. * </tr>
  7061. * <tr valign="top">
  7062. * <td>FNM_NOESCAPE</td>
  7063. * <td>
  7064. * Disable backslash escaping.
  7065. * </td>
  7066. * </tr>
  7067. * <tr valign="top">
  7068. * <td>FNM_PATHNAME</td>
  7069. * <td>
  7070. * Slash in string only matches slash in the given pattern.
  7071. * </td>
  7072. * </tr>
  7073. * <tr valign="top">
  7074. * <td>FNM_PERIOD</td>
  7075. * <td>
  7076. * Leading period in string must be exactly matched by period in the given pattern.
  7077. * </td>
  7078. * </tr>
  7079. * <tr valign="top">
  7080. * <td>FNM_CASEFOLD</td>
  7081. * <td>
  7082. * Caseless match. Part of the GNU extension.
  7083. * </td>
  7084. * </tr>
  7085. * </table>
  7086. * </p>
  7087. * @return bool true if there is a match, false otherwise.
  7088. */
  7089. function fnmatch ($pattern, $string, $flags = null) {}
  7090. /**
  7091. * (PHP 4, PHP 5)<br/>
  7092. * Open Internet or Unix domain socket connection
  7093. * @link http://php.net/manual/en/function.fsockopen.php
  7094. * @param string $hostname <p>
  7095. * If you have compiled in OpenSSL support, you may prefix the
  7096. * hostname with either ssl://
  7097. * or tls:// to use an SSL or TLS client connection
  7098. * over TCP/IP to connect to the remote host.
  7099. * </p>
  7100. * @param int $port [optional] <p>
  7101. * The port number.
  7102. * </p>
  7103. * @param int $errno [optional] <p>
  7104. * If provided, holds the system level error number that occurred in the
  7105. * system-level connect() call.
  7106. * </p>
  7107. * <p>
  7108. * If the value returned in errno is
  7109. * 0 and the function returned false, it is an
  7110. * indication that the error occurred before the
  7111. * connect() call. This is most likely due to a
  7112. * problem initializing the socket.
  7113. * </p>
  7114. * @param string $errstr [optional] <p>
  7115. * The error message as a string.
  7116. * </p>
  7117. * @param float $timeout [optional] <p>
  7118. * The connection timeout, in seconds.
  7119. * </p>
  7120. * <p>
  7121. * If you need to set a timeout for reading/writing data over the
  7122. * socket, use stream_set_timeout, as the
  7123. * timeout parameter to
  7124. * fsockopen only applies while connecting the
  7125. * socket.
  7126. * </p>
  7127. * @return resource fsockopen returns a file pointer which may be used
  7128. * together with the other file functions (such as
  7129. * fgets, fgetss,
  7130. * fwrite, fclose, and
  7131. * feof). If the call fails, it will return false
  7132. */
  7133. function fsockopen ($hostname, $port = null, &$errno = null, &$errstr = null, $timeout = null) {}
  7134. /**
  7135. * (PHP 4, PHP 5)<br/>
  7136. * Open persistent Internet or Unix domain socket connection
  7137. * @link http://php.net/manual/en/function.pfsockopen.php
  7138. * @param string $hostname
  7139. * @param int $port [optional]
  7140. * @param int $errno [optional]
  7141. * @param string $errstr [optional]
  7142. * @param float $timeout [optional]
  7143. * @return resource
  7144. */
  7145. function pfsockopen ($hostname, $port = null, &$errno = null, &$errstr = null, $timeout = null) {}
  7146. /**
  7147. * (PHP 4, PHP 5)<br/>
  7148. * Pack data into binary string
  7149. * @link http://php.net/manual/en/function.pack.php
  7150. * @param string $format <p>
  7151. * The format string consists of format codes
  7152. * followed by an optional repeater argument. The repeater argument can
  7153. * be either an integer value or * for repeating to
  7154. * the end of the input data. For a, A, h, H the repeat count specifies
  7155. * how many characters of one data argument are taken, for @ it is the
  7156. * absolute position where to put the next data, for everything else the
  7157. * repeat count specifies how many data arguments are consumed and packed
  7158. * into the resulting binary string.
  7159. * </p>
  7160. * <p>
  7161. * Currently implemented formats are:
  7162. * <table>
  7163. * pack format characters
  7164. * <tr valign="top">
  7165. * <td>Code</td>
  7166. * <td>Description</td>
  7167. * </tr>
  7168. * <tr valign="top">
  7169. * <td>a</td>
  7170. * <td>NUL-padded string</td>
  7171. * </tr>
  7172. * <tr valign="top">
  7173. * <td>A</td>
  7174. * <td>SPACE-padded string</td></tr>
  7175. * <tr valign="top">
  7176. * <td>h</td>
  7177. * <td>Hex string, low nibble first</td></tr>
  7178. * <tr valign="top">
  7179. * <td>H</td>
  7180. * <td>Hex string, high nibble first</td></tr>
  7181. * <tr valign="top"><td>c</td><td>signed char</td></tr>
  7182. * <tr valign="top">
  7183. * <td>C</td>
  7184. * <td>unsigned char</td></tr>
  7185. * <tr valign="top">
  7186. * <td>s</td>
  7187. * <td>signed short (always 16 bit, machine byte order)</td>
  7188. * </tr>
  7189. * <tr valign="top">
  7190. * <td>S</td>
  7191. * <td>unsigned short (always 16 bit, machine byte order)</td>
  7192. * </tr>
  7193. * <tr valign="top">
  7194. * <td>n</td>
  7195. * <td>unsigned short (always 16 bit, big endian byte order)</td>
  7196. * </tr>
  7197. * <tr valign="top">
  7198. * <td>v</td>
  7199. * <td>unsigned short (always 16 bit, little endian byte order)</td>
  7200. * </tr>
  7201. * <tr valign="top">
  7202. * <td>i</td>
  7203. * <td>signed integer (machine dependent size and byte order)</td>
  7204. * </tr>
  7205. * <tr valign="top">
  7206. * <td>I</td>
  7207. * <td>unsigned integer (machine dependent size and byte order)</td>
  7208. * </tr>
  7209. * <tr valign="top">
  7210. * <td>l</td>
  7211. * <td>signed long (always 32 bit, machine byte order)</td>
  7212. * </tr>
  7213. * <tr valign="top">
  7214. * <td>L</td>
  7215. * <td>unsigned long (always 32 bit, machine byte order)</td>
  7216. * </tr>
  7217. * <tr valign="top">
  7218. * <td>N</td>
  7219. * <td>unsigned long (always 32 bit, big endian byte order)</td>
  7220. * </tr>
  7221. * <tr valign="top">
  7222. * <td>V</td>
  7223. * <td>unsigned long (always 32 bit, little endian byte order)</td>
  7224. * </tr>
  7225. * <tr valign="top">
  7226. * <td>f</td>
  7227. * <td>float (machine dependent size and representation)</td>
  7228. * </tr>
  7229. * <tr valign="top">
  7230. * <td>d</td>
  7231. * <td>double (machine dependent size and representation)</td>
  7232. * </tr>
  7233. * <tr valign="top">
  7234. * <td>x</td>
  7235. * <td>NUL byte</td>
  7236. * </tr>
  7237. * <tr valign="top">
  7238. * <td>X</td>
  7239. * <td>Back up one byte</td>
  7240. * </tr>
  7241. * <tr valign="top">
  7242. * <td>@</td>
  7243. * <td>NUL-fill to absolute position</td>
  7244. * </tr>
  7245. * </table>
  7246. * </p>
  7247. * @param mixed $args [optional] <p>
  7248. * </p>
  7249. * @param mixed $_ [optional]
  7250. * @return string a binary string containing data.
  7251. */
  7252. function pack ($format, $args = null, $_ = null) {}
  7253. /**
  7254. * (PHP 4, PHP 5)<br/>
  7255. * Unpack data from binary string
  7256. * @link http://php.net/manual/en/function.unpack.php
  7257. * @param string $format <p>
  7258. * See pack for an explanation of the format codes.
  7259. * </p>
  7260. * @param string $data <p>
  7261. * The packed data.
  7262. * </p>
  7263. * @return array an associative array containing unpacked elements of binary
  7264. * string.
  7265. */
  7266. function unpack ($format, $data) {}
  7267. /**
  7268. * (PHP 4, PHP 5)<br/>
  7269. * Tells what the user's browser is capable of
  7270. * @link http://php.net/manual/en/function.get-browser.php
  7271. * @param string $user_agent [optional] <p>
  7272. * The User Agent to be analyzed. By default, the value of HTTP
  7273. * User-Agent header is used; however, you can alter this (i.e., look up
  7274. * another browser's info) by passing this parameter.
  7275. * </p>
  7276. * <p>
  7277. * You can bypass this parameter with a &null; value.
  7278. * </p>
  7279. * @param bool $return_array [optional] <p>
  7280. * If set to true, this function will return an array
  7281. * instead of an object.
  7282. * </p>
  7283. * @return mixed The information is returned in an object or an array which will contain
  7284. * various data elements representing, for instance, the browser's major and
  7285. * minor version numbers and ID string; true/false values for features
  7286. * such as frames, JavaScript, and cookies; and so forth.
  7287. * </p>
  7288. * <p>
  7289. * The cookies value simply means that the browser
  7290. * itself is capable of accepting cookies and does not mean the user has
  7291. * enabled the browser to accept cookies or not. The only way to test if
  7292. * cookies are accepted is to set one with setcookie,
  7293. * reload, and check for the value.
  7294. */
  7295. function get_browser ($user_agent = null, $return_array = null) {}
  7296. /**
  7297. * (PHP 4, PHP 5)<br/>
  7298. * One-way string encryption (hashing)
  7299. * @link http://php.net/manual/en/function.crypt.php
  7300. * @param string $str <p>
  7301. * The string to be encrypted.
  7302. * </p>
  7303. * @param string $salt [optional] <p>
  7304. * An optional salt string to base the encryption on. If not provided,
  7305. * one will be randomly generated by PHP each time you call this function.
  7306. * </p>
  7307. * <p>
  7308. * If you are using the supplied salt, you should be aware that the salt
  7309. * is generated once. If you are calling this function repeatedly, this
  7310. * may impact both appearance and security.
  7311. * </p>
  7312. * @return string the encrypted string.
  7313. */
  7314. function crypt ($str, $salt = null) {}
  7315. /**
  7316. * (PHP 4, PHP 5)<br/>
  7317. * Open directory handle
  7318. * @link http://php.net/manual/en/function.opendir.php
  7319. * @param string $path <p>
  7320. * The directory path that is to be opened
  7321. * </p>
  7322. * @param resource $context [optional] <p>
  7323. * For a description of the context parameter,
  7324. * refer to the streams section of
  7325. * the manual.
  7326. * </p>
  7327. * @return resource a directory handle resource on success, or
  7328. * false on failure.
  7329. * </p>
  7330. * <p>
  7331. * If path is not a valid directory or the
  7332. * directory can not be opened due to permission restrictions or
  7333. * filesystem errors, opendir returns false and
  7334. * generates a PHP error of level
  7335. * E_WARNING. You can suppress the error output of
  7336. * opendir by prepending
  7337. * '@' to the
  7338. * front of the function name.
  7339. */
  7340. function opendir ($path, $context = null) {}
  7341. /**
  7342. * (PHP 4, PHP 5)<br/>
  7343. * Close directory handle
  7344. * @link http://php.net/manual/en/function.closedir.php
  7345. * @param resource $dir_handle [optional] <p>
  7346. * The directory handle resource previously opened
  7347. * with opendir. If the directory handle is
  7348. * not specified, the last link opened by opendir
  7349. * is assumed.
  7350. * </p>
  7351. * @return void
  7352. */
  7353. function closedir ($dir_handle = null) {}
  7354. /**
  7355. * (PHP 4, PHP 5)<br/>
  7356. * Change directory
  7357. * @link http://php.net/manual/en/function.chdir.php
  7358. * @param string $directory <p>
  7359. * The new current directory
  7360. * </p>
  7361. * @return bool Returns true on success or false on failure.
  7362. */
  7363. function chdir ($directory) {}
  7364. /**
  7365. * (PHP 4 &gt;= 4.0.5, PHP 5)<br/>
  7366. * Change the root directory
  7367. * @link http://php.net/manual/en/function.chroot.php
  7368. * @param string $directory <p>
  7369. * The new directory
  7370. * </p>
  7371. * @return bool Returns true on success or false on failure.
  7372. */
  7373. function chroot ($directory) {}
  7374. /**
  7375. * (PHP 4, PHP 5)<br/>
  7376. * Gets the current working directory
  7377. * @link http://php.net/manual/en/function.getcwd.php
  7378. * @return string the current working directory on success, or false on
  7379. * failure.
  7380. * </p>
  7381. * <p>
  7382. * On some Unix variants, getcwd will return
  7383. * false if any one of the parent directories does not have the
  7384. * readable or search mode set, even if the current directory
  7385. * does. See chmod for more information on
  7386. * modes and permissions.
  7387. */
  7388. function getcwd () {}
  7389. /**
  7390. * (PHP 4, PHP 5)<br/>
  7391. * Rewind directory handle
  7392. * @link http://php.net/manual/en/function.rewinddir.php
  7393. * @param resource $dir_handle [optional] <p>
  7394. * The directory handle resource previously opened
  7395. * with opendir. If the directory handle is
  7396. * not specified, the last link opened by opendir
  7397. * is assumed.
  7398. * </p>
  7399. * @return void
  7400. */
  7401. function rewinddir ($dir_handle = null) {}
  7402. /**
  7403. * (PHP 4, PHP 5)<br/>
  7404. * Read entry from directory handle
  7405. * @link http://php.net/manual/en/function.readdir.php
  7406. * @param resource $dir_handle [optional] <p>
  7407. * The directory handle resource previously opened
  7408. * with opendir. If the directory handle is
  7409. * not specified, the last link opened by opendir
  7410. * is assumed.
  7411. * </p>
  7412. * @return string the filename on success&return.falseforfailure;.
  7413. */
  7414. function readdir ($dir_handle = null) {}
  7415. /**
  7416. * (PHP 4, PHP 5)<br/>
  7417. * Return an instance of the Directory class
  7418. * @link http://php.net/manual/en/class.dir.php
  7419. * @param $directory
  7420. * @param $context [optional]
  7421. * @return string
  7422. */
  7423. function dir ($directory, $context) {}
  7424. /**
  7425. * (PHP 5)<br/>
  7426. * List files and directories inside the specified path
  7427. * @link http://php.net/manual/en/function.scandir.php
  7428. * @param string $directory <p>
  7429. * The directory that will be scanned.
  7430. * </p>
  7431. * @param int $sorting_order [optional] <p>
  7432. * By default, the sorted order is alphabetical in ascending order. If
  7433. * the optional sorting_order is set to non-zero,
  7434. * then the sort order is alphabetical in descending order.
  7435. * </p>
  7436. * @param resource $context [optional] <p>
  7437. * For a description of the context parameter,
  7438. * refer to the streams section of
  7439. * the manual.
  7440. * </p>
  7441. * @return array an array of filenames on success, or false on
  7442. * failure. If directory is not a directory, then
  7443. * boolean false is returned, and an error of level
  7444. * E_WARNING is generated.
  7445. */
  7446. function scandir ($directory, $sorting_order = null, $context = null) {}
  7447. /**
  7448. * (PHP 4 &gt;= 4.3.0, PHP 5)<br/>
  7449. * Find pathnames matching a pattern
  7450. * @link http://php.net/manual/en/function.glob.php
  7451. * @param string $pattern <p>
  7452. * The pattern. No tilde expansion or parameter substitution is done.
  7453. * </p>
  7454. * @param int $flags [optional] <p>
  7455. * Valid flags:
  7456. * GLOB_MARK - Adds a slash to each directory returned
  7457. * @return array an array containing the matched files/directories, an empty array
  7458. * if no file matched or false on error.
  7459. * </p>
  7460. * <p>
  7461. * On some systems it is impossible to distinguish between empty match and an
  7462. * error.
  7463. */
  7464. function glob ($pattern, $flags = null) {}
  7465. /**
  7466. * (PHP 4, PHP 5)<br/>
  7467. * Gets last access time of file
  7468. * @link http://php.net/manual/en/function.fileatime.php
  7469. * @param string $filename <p>
  7470. * Path to the file.
  7471. * </p>
  7472. * @return int the time the file was last accessed, &return.falseforfailure;.
  7473. * The time is returned as a Unix timestamp.
  7474. */
  7475. function fileatime ($filename) {}
  7476. /**
  7477. * (PHP 4, PHP 5)<br/>
  7478. * Gets inode change time of file
  7479. * @link http://php.net/manual/en/function.filectime.php
  7480. * @param string $filename <p>
  7481. * Path to the file.
  7482. * </p>
  7483. * @return int the time the file was last changed, &return.falseforfailure;.
  7484. * The time is returned as a Unix timestamp.
  7485. */
  7486. function filectime ($filename) {}
  7487. /**
  7488. * (PHP 4, PHP 5)<br/>
  7489. * Gets file group
  7490. * @link http://php.net/manual/en/function.filegroup.php
  7491. * @param string $filename <p>
  7492. * Path to the file.
  7493. * </p>
  7494. * @return int the group ID of the file, or false in case
  7495. * of an error. The group ID is returned in numerical format, use
  7496. * posix_getgrgid to resolve it to a group name.
  7497. * Upon failure, false is returned.
  7498. */
  7499. function filegroup ($filename) {}
  7500. /**
  7501. * (PHP 4, PHP 5)<br/>
  7502. * Gets file inode
  7503. * @link http://php.net/manual/en/function.fileinode.php
  7504. * @param string $filename <p>
  7505. * Path to the file.
  7506. * </p>
  7507. * @return int the inode number of the file, &return.falseforfailure;.
  7508. */
  7509. function fileinode ($filename) {}
  7510. /**
  7511. * (PHP 4, PHP 5)<br/>
  7512. * Gets file modification time
  7513. * @link http://php.net/manual/en/function.filemtime.php
  7514. * @param string $filename <p>
  7515. * Path to the file.
  7516. * </p>
  7517. * @return int the time the file was last modified, &return.falseforfailure;.
  7518. * The time is returned as a Unix timestamp, which is
  7519. * suitable for the date function.
  7520. */
  7521. function filemtime ($filename) {}
  7522. /**
  7523. * (PHP 4, PHP 5)<br/>
  7524. * Gets file owner
  7525. * @link http://php.net/manual/en/function.fileowner.php
  7526. * @param string $filename <p>
  7527. * Path to the file.
  7528. * </p>
  7529. * @return int the user ID of the owner of the file, &return.falseforfailure;.
  7530. * The user ID is returned in numerical format, use
  7531. * posix_getpwuid to resolve it to a username.
  7532. */
  7533. function fileowner ($filename) {}
  7534. /**
  7535. * (PHP 4, PHP 5)<br/>
  7536. * Gets file permissions
  7537. * @link http://php.net/manual/en/function.fileperms.php
  7538. * @param string $filename <p>
  7539. * Path to the file.
  7540. * </p>
  7541. * @return int the permissions on the file, &return.falseforfailure;.
  7542. */
  7543. function fileperms ($filename) {}
  7544. /**
  7545. * (PHP 4, PHP 5)<br/>
  7546. * Gets file size
  7547. * @link http://php.net/manual/en/function.filesize.php
  7548. * @param string $filename <p>
  7549. * Path to the file.
  7550. * </p>
  7551. * @return int the size of the file in bytes, or false (and generates an error
  7552. * of level E_WARNING) in case of an error.
  7553. */
  7554. function filesize ($filename) {}
  7555. /**
  7556. * (PHP 4, PHP 5)<br/>
  7557. * Gets file type
  7558. * @link http://php.net/manual/en/function.filetype.php
  7559. * @param string $filename <p>
  7560. * Path to the file.
  7561. * </p>
  7562. * @return string the type of the file. Possible values are fifo, char,
  7563. * dir, block, link, file, socket and unknown.
  7564. * </p>
  7565. * <p>
  7566. * Returns false if an error occurs. filetype will also
  7567. * produce an E_NOTICE message if the stat call fails
  7568. * or if the file type is unknown.
  7569. */
  7570. function filetype ($filename) {}
  7571. /**
  7572. * (PHP 4, PHP 5)<br/>
  7573. * Checks whether a file or directory exists
  7574. * @link http://php.net/manual/en/function.file-exists.php
  7575. * @param string $filename <p>
  7576. * Path to the file or directory.
  7577. * </p>
  7578. * <p>
  7579. * On windows, use //computername/share/filename or
  7580. * \\computername\share\filename to check files on
  7581. * network shares.
  7582. * </p>
  7583. * @return bool true if the file or directory specified by
  7584. * filename exists; false otherwise.
  7585. * </p>
  7586. * <p>
  7587. * This function will return false for symlinks pointing to non-existing
  7588. * files.
  7589. * </p>
  7590. * <p>
  7591. * This function returns false for files inaccessible due to safe mode restrictions. However these
  7592. * files still can be included if
  7593. * they are located in safe_mode_include_dir.
  7594. * </p>
  7595. * <p>
  7596. * The check is done using the real UID/GID instead of the effective one.
  7597. */
  7598. function file_exists ($filename) {}
  7599. /**
  7600. * (PHP 4, PHP 5)<br/>
  7601. * Tells whether the filename is writable
  7602. * @link http://php.net/manual/en/function.is-writable.php
  7603. * @param string $filename <p>
  7604. * The filename being checked.
  7605. * </p>
  7606. * @return bool true if the filename exists and is
  7607. * writable.
  7608. */
  7609. function is_writable ($filename) {}
  7610. /**
  7611. * (PHP 4, PHP 5)<br/>
  7612. * &Alias; <function>is_writable</function>
  7613. * @link http://php.net/manual/en/function.is-writeable.php
  7614. * @param $filename
  7615. */
  7616. function is_writeable ($filename) {}
  7617. /**
  7618. * (PHP 4, PHP 5)<br/>
  7619. * Tells whether a file exists and is readable
  7620. * @link http://php.net/manual/en/function.is-readable.php
  7621. * @param string $filename <p>
  7622. * Path to the file.
  7623. * </p>
  7624. * @return bool true if the file or directory specified by
  7625. * filename exists and is readable, false otherwise.
  7626. */
  7627. function is_readable ($filename) {}
  7628. /**
  7629. * (PHP 4, PHP 5)<br/>
  7630. * Tells whether the filename is executable
  7631. * @link http://php.net/manual/en/function.is-executable.php
  7632. * @param string $filename <p>
  7633. * Path to the file.
  7634. * </p>
  7635. * @return bool true if the filename exists and is executable, or false on
  7636. * error.
  7637. */
  7638. function is_executable ($filename) {}
  7639. /**
  7640. * (PHP 4, PHP 5)<br/>
  7641. * Tells whether the filename is a regular file
  7642. * @link http://php.net/manual/en/function.is-file.php
  7643. * @param string $filename <p>
  7644. * Path to the file.
  7645. * </p>
  7646. * @return bool true if the filename exists and is a regular file, false
  7647. * otherwise.
  7648. */
  7649. function is_file ($filename) {}
  7650. /**
  7651. * (PHP 4, PHP 5)<br/>
  7652. * Tells whether the filename is a directory
  7653. * @link http://php.net/manual/en/function.is-dir.php
  7654. * @param string $filename <p>
  7655. * Path to the file. If filename is a relative
  7656. * filename, it will be checked relative to the current working
  7657. * directory. If filename is a symbolic or hard link
  7658. * then the link will be resolved and checked.
  7659. * </p>
  7660. * @return bool true if the filename exists and is a directory, false
  7661. * otherwise.
  7662. */
  7663. function is_dir ($filename) {}
  7664. /**
  7665. * (PHP 4, PHP 5)<br/>
  7666. * Tells whether the filename is a symbolic link
  7667. * @link http://php.net/manual/en/function.is-link.php
  7668. * @param string $filename <p>
  7669. * Path to the file.
  7670. * </p>
  7671. * @return bool true if the filename exists and is a symbolic link, false
  7672. * otherwise.
  7673. */
  7674. function is_link ($filename) {}
  7675. /**
  7676. * (PHP 4, PHP 5)<br/>
  7677. * Gives information about a file
  7678. * @link http://php.net/manual/en/function.stat.php
  7679. * @param string $filename <p>
  7680. * Path to the file.
  7681. * </p>
  7682. * @return array <table>
  7683. * stat and fstat result
  7684. * format
  7685. * <tr valign="top">
  7686. * <td>Numeric</td>
  7687. * <td>Associative (since PHP 4.0.6)</td>
  7688. * <td>Description</td>
  7689. * </tr>
  7690. * <tr valign="top">
  7691. * <td>0</td>
  7692. * <td>dev</td>
  7693. * <td>device number</td>
  7694. * </tr>
  7695. * <tr valign="top">
  7696. * <td>1</td>
  7697. * <td>ino</td>
  7698. * <td>inode number *</td>
  7699. * </tr>
  7700. * <tr valign="top">
  7701. * <td>2</td>
  7702. * <td>mode</td>
  7703. * <td>inode protection mode</td>
  7704. * </tr>
  7705. * <tr valign="top">
  7706. * <td>3</td>
  7707. * <td>nlink</td>
  7708. * <td>number of links</td>
  7709. * </tr>
  7710. * <tr valign="top">
  7711. * <td>4</td>
  7712. * <td>uid</td>
  7713. * <td>userid of owner *</td>
  7714. * </tr>
  7715. * <tr valign="top">
  7716. * <td>5</td>
  7717. * <td>gid</td>
  7718. * <td>groupid of owner *</td>
  7719. * </tr>
  7720. * <tr valign="top">
  7721. * <td>6</td>
  7722. * <td>rdev</td>
  7723. * <td>device type, if inode device</td>
  7724. * </tr>
  7725. * <tr valign="top">
  7726. * <td>7</td>
  7727. * <td>size</td>
  7728. * <td>size in bytes</td>
  7729. * </tr>
  7730. * <tr valign="top">
  7731. * <td>8</td>
  7732. * <td>atime</td>
  7733. * <td>time of last access (Unix timestamp)</td>
  7734. * </tr>
  7735. * <tr valign="top">
  7736. * <td>9</td>
  7737. * <td>mtime</td>
  7738. * <td>time of last modification (Unix timestamp)</td>
  7739. * </tr>
  7740. * <tr valign="top">
  7741. * <td>10</td>
  7742. * <td>ctime</td>
  7743. * <td>time of last inode change (Unix timestamp)</td>
  7744. * </tr>
  7745. * <tr valign="top">
  7746. * <td>11</td>
  7747. * <td>blksize</td>
  7748. * <td>blocksize of filesystem IO **</td>
  7749. * </tr>
  7750. * <tr valign="top">
  7751. * <td>12</td>
  7752. * <td>blocks</td>
  7753. * <td>number of 512-byte blocks allocated **</td>
  7754. * </tr>
  7755. * </table>
  7756. * * On Windows this will always be 0.
  7757. * </p>
  7758. * <p>
  7759. * ** Only valid on systems supporting the st_blksize type - other
  7760. * systems (e.g. Windows) return -1.
  7761. * </p>
  7762. * <p>
  7763. * In case of error, stat returns false.
  7764. */
  7765. function stat ($filename) {}
  7766. /**
  7767. * (PHP 4, PHP 5)<br/>
  7768. * Gives information about a file or symbolic link
  7769. * @link http://php.net/manual/en/function.lstat.php
  7770. * @param string $filename <p>
  7771. * Path to a file or a symbolic link.
  7772. * </p>
  7773. * @return array See the manual page for stat for information on
  7774. * the structure of the array that lstat returns.
  7775. * This function is identical to the stat function
  7776. * except that if the filename parameter is a symbolic
  7777. * link, the status of the symbolic link is returned, not the status of the
  7778. * file pointed to by the symbolic link.
  7779. */
  7780. function lstat ($filename) {}
  7781. /**
  7782. * (PHP 4, PHP 5)<br/>
  7783. * Changes file owner
  7784. * @link http://php.net/manual/en/function.chown.php
  7785. * @param string $filename <p>
  7786. * Path to the file.
  7787. * </p>
  7788. * @param mixed $user <p>
  7789. * A user name or number.
  7790. * </p>
  7791. * @return bool Returns true on success or false on failure.
  7792. */
  7793. function chown ($filename, $user) {}
  7794. /**
  7795. * (PHP 4, PHP 5)<br/>
  7796. * Changes file group
  7797. * @link http://php.net/manual/en/function.chgrp.php
  7798. * @param string $filename <p>
  7799. * Path to the file.
  7800. * </p>
  7801. * @param mixed $group <p>
  7802. * A group name or number.
  7803. * </p>
  7804. * @return bool Returns true on success or false on failure.
  7805. */
  7806. function chgrp ($filename, $group) {}
  7807. /**
  7808. * (PHP 5 &gt;= 5.1.2)<br/>
  7809. * Changes user ownership of symlink
  7810. * @link http://php.net/manual/en/function.lchown.php
  7811. * @param string $filename <p>
  7812. * Path to the file.
  7813. * </p>
  7814. * @param mixed $user <p>
  7815. * User name or number.
  7816. * </p>
  7817. * @return bool Returns true on success or false on failure.
  7818. */
  7819. function lchown ($filename, $user) {}
  7820. /**
  7821. * (PHP 5 &gt;= 5.1.2)<br/>
  7822. * Changes group ownership of symlink
  7823. * @link http://php.net/manual/en/function.lchgrp.php
  7824. * @param string $filename <p>
  7825. * Path to the symlink.
  7826. * </p>
  7827. * @param mixed $group <p>
  7828. * The group specified by name or number.
  7829. * </p>
  7830. * @return bool Returns true on success or false on failure.
  7831. */
  7832. function lchgrp ($filename, $group) {}
  7833. /**
  7834. * (PHP 4, PHP 5)<br/>
  7835. * Changes file mode
  7836. * @link http://php.net/manual/en/function.chmod.php
  7837. * @param string $filename <p>
  7838. * Path to the file.
  7839. * </p>
  7840. * @param int $mode <p>
  7841. * Note that mode is not automatically
  7842. * assumed to be an octal value, so strings (such as "g+w") will
  7843. * not work properly. To ensure the expected operation,
  7844. * you need to prefix mode with a zero (0):
  7845. * </p>
  7846. * <p>
  7847. * ]]>
  7848. * </p>
  7849. * <p>
  7850. * The mode parameter consists of three octal
  7851. * number components specifying access restrictions for the owner,
  7852. * the user group in which the owner is in, and to everybody else in
  7853. * this order. One component can be computed by adding up the needed
  7854. * permissions for that target user base. Number 1 means that you
  7855. * grant execute rights, number 2 means that you make the file
  7856. * writeable, number 4 means that you make the file readable. Add
  7857. * up these numbers to specify needed rights. You can also read more
  7858. * about modes on Unix systems with 'man 1 chmod'
  7859. * and 'man 2 chmod'.
  7860. * </p>
  7861. * <p>
  7862. * @return bool Returns true on success or false on failure.
  7863. */
  7864. function chmod ($filename, $mode) {}
  7865. /**
  7866. * (PHP 4, PHP 5)<br/>
  7867. * Sets access and modification time of file
  7868. * @link http://php.net/manual/en/function.touch.php
  7869. * @param string $filename <p>
  7870. * The name of the file being touched.
  7871. * </p>
  7872. * @param int $time [optional] <p>
  7873. * The touch time. If time is not supplied,
  7874. * the current system time is used.
  7875. * </p>
  7876. * @param int $atime [optional] <p>
  7877. * If present, the access time of the given filename is set to
  7878. * the value of atime. Otherwise, it is set to
  7879. * time.
  7880. * </p>
  7881. * @return bool Returns true on success or false on failure.
  7882. */
  7883. function touch ($filename, $time = null, $atime = null) {}
  7884. /**
  7885. * (PHP 4, PHP 5)<br/>
  7886. * Clears file status cache
  7887. * @link http://php.net/manual/en/function.clearstatcache.php
  7888. * @param bool $clear_realpath_cache [optional] <p>
  7889. * Whenever to clear realpath cache or not.
  7890. * </p>
  7891. * @param string $filename [optional] <p>
  7892. * Clear realpath cache on a specific filename, only used if
  7893. * clear_realpath_cache is true.
  7894. * </p>
  7895. * @return void
  7896. */
  7897. function clearstatcache ($clear_realpath_cache = null, $filename = null) {}
  7898. /**
  7899. * (PHP 4 &gt;= 4.1.0, PHP 5)<br/>
  7900. * Returns the total size of a directory
  7901. * @link http://php.net/manual/en/function.disk-total-space.php
  7902. * @param string $directory <p>
  7903. * A directory of the filesystem or disk partition.
  7904. * </p>
  7905. * @return float the total number of bytes as a float
  7906. * &return.falseforfailure;.
  7907. */
  7908. function disk_total_space ($directory) {}
  7909. /**
  7910. * (PHP 4 &gt;= 4.1.0, PHP 5)<br/>
  7911. * Returns available space in directory
  7912. * @link http://php.net/manual/en/function.disk-free-space.php
  7913. * @param string $directory <p>
  7914. * A directory of the filesystem or disk partition.
  7915. * </p>
  7916. * <p>
  7917. * Given a file name instead of a directory, the behaviour of the
  7918. * function is unspecified and may differ between operating systems and
  7919. * PHP versions.
  7920. * </p>
  7921. * @return float the number of available bytes as a float
  7922. * &return.falseforfailure;.
  7923. */
  7924. function disk_free_space ($directory) {}
  7925. /**
  7926. * (PHP 4, PHP 5)<br/>
  7927. * &Alias; <function>disk_free_space</function>
  7928. * @link http://php.net/manual/en/function.diskfreespace.php
  7929. * @param $path
  7930. */
  7931. function diskfreespace ($path) {}
  7932. /**
  7933. * (No version information available, might only be in SVN)<br/>
  7934. * Get realpath cache size
  7935. * @link http://php.net/manual/en/function.realpath_cache_size.php
  7936. * @return int how much memory realpath cache is using.
  7937. */
  7938. function realpath_cache_size () {}
  7939. /**
  7940. * (No version information available, might only be in SVN)<br/>
  7941. * Get realpath cache entries
  7942. * @link http://php.net/manual/en/function.realpath_cache_get.php
  7943. * @return array an array of realpath cache entries. The keys are original path entries, and the values are arrays of data items, containing the resolved path, expiration date, and other options kept in the cache.
  7944. */
  7945. function realpath_cache_get () {}
  7946. /**
  7947. * (PHP 4, PHP 5)<br/>
  7948. * Send mail
  7949. * @link http://php.net/manual/en/function.mail.php
  7950. * @param string $to <p>
  7951. * Receiver, or receivers of the mail.
  7952. * </p>
  7953. * <p>
  7954. * The formatting of this string must comply with
  7955. * RFC 2822. Some examples are:
  7956. * user@example.com
  7957. * user@example.com, anotheruser@example.com
  7958. * User &lt;user@example.com&gt;
  7959. * User &lt;user@example.com&gt;, Another User &lt;anotheruser@example.com&gt;
  7960. * </p>
  7961. * @param string $subject <p>
  7962. * Subject of the email to be sent.
  7963. * </p>
  7964. * <p>
  7965. * Subject must satisfy RFC 2047.
  7966. * </p>
  7967. * @param string $message <p>
  7968. * Message to be sent.
  7969. * </p>
  7970. * <p>
  7971. * Each line should be separated with a LF (\n). Lines should not be larger
  7972. * than 70 characters.
  7973. * </p>
  7974. * <p>
  7975. * (Windows only) When PHP is talking to a SMTP server directly, if a full
  7976. * stop is found on the start of a line, it is removed. To counter-act this,
  7977. * replace these occurrences with a double dot.
  7978. * ]]>
  7979. * </p>
  7980. * @param string $additional_headers [optional] <p>
  7981. * String to be inserted at the end of the email header.
  7982. * </p>
  7983. * <p>
  7984. * This is typically used to add extra headers (From, Cc, and Bcc).
  7985. * Multiple extra headers should be separated with a CRLF (\r\n).
  7986. * </p>
  7987. * <p>
  7988. * When sending mail, the mail must contain
  7989. * a From header. This can be set with the
  7990. * additional_headers parameter, or a default
  7991. * can be set in &php.ini;.
  7992. * </p>
  7993. * <p>
  7994. * Failing to do this will result in an error
  7995. * message similar to Warning: mail(): "sendmail_from" not
  7996. * set in php.ini or custom "From:" header missing.
  7997. * The From header sets also
  7998. * Return-Path under Windows.
  7999. * </p>
  8000. * <p>
  8001. * If messages are not received, try using a LF (\n) only.
  8002. * Some poor quality Unix mail transfer agents replace LF by CRLF
  8003. * automatically (which leads to doubling CR if CRLF is used).
  8004. * This should be a last resort, as it does not comply with
  8005. * RFC 2822.
  8006. * </p>
  8007. * @param string $additional_parameters [optional] <p>
  8008. * The additional_parameters parameter
  8009. * can be used to pass additional flags as command line options to the
  8010. * program configured to be used when sending mail, as defined by the
  8011. * sendmail_path configuration setting. For example,
  8012. * this can be used to set the envelope sender address when using
  8013. * sendmail with the -f sendmail option.
  8014. * </p>
  8015. * <p>
  8016. * The user that the webserver runs as should be added as a trusted user to the
  8017. * sendmail configuration to prevent a 'X-Warning' header from being added
  8018. * to the message when the envelope sender (-f) is set using this method.
  8019. * For sendmail users, this file is /etc/mail/trusted-users.
  8020. * </p>
  8021. * @return bool true if the mail was successfully accepted for delivery, false otherwise.
  8022. * </p>
  8023. * <p>
  8024. * It is important to note that just because the mail was accepted for delivery,
  8025. * it does NOT mean the mail will actually reach the intended destination.
  8026. */
  8027. function mail ($to, $subject, $message, $additional_headers = null, $additional_parameters = null) {}
  8028. /**
  8029. * (PHP 4 &gt;= 4.0.2, PHP 5)<br/>
  8030. * Calculate the hash value needed by EZMLM
  8031. * @link http://php.net/manual/en/function.ezmlm-hash.php
  8032. * @param string $addr <p>
  8033. * The email address that's being hashed.
  8034. * </p>
  8035. * @return int The hash value of addr.
  8036. */
  8037. function ezmlm_hash ($addr) {}
  8038. /**
  8039. * (PHP 4, PHP 5)<br/>
  8040. * Open connection to system logger
  8041. * @link http://php.net/manual/en/function.openlog.php
  8042. * @param string $ident <p>
  8043. * The string ident is added to each message.
  8044. * </p>
  8045. * @param int $option <p>
  8046. * The option argument is used to indicate
  8047. * what logging options will be used when generating a log message.
  8048. * <table>
  8049. * openlog Options
  8050. * <tr valign="top">
  8051. * <td>Constant</td>
  8052. * <td>Description</td>
  8053. * </tr>
  8054. * <tr valign="top">
  8055. * <td>LOG_CONS</td>
  8056. * <td>
  8057. * if there is an error while sending data to the system logger,
  8058. * write directly to the system console
  8059. * </td>
  8060. * </tr>
  8061. * <tr valign="top">
  8062. * <td>LOG_NDELAY</td>
  8063. * <td>
  8064. * open the connection to the logger immediately
  8065. * </td>
  8066. * </tr>
  8067. * <tr valign="top">
  8068. * <td>LOG_ODELAY</td>
  8069. * <td>
  8070. * (default) delay opening the connection until the first
  8071. * message is logged
  8072. * </td>
  8073. * </tr>
  8074. * <tr valign="top">
  8075. * <td>LOG_PERROR</td>
  8076. * <td>print log message also to standard error</td>
  8077. * </tr>
  8078. * <tr valign="top">
  8079. * <td>LOG_PID</td>
  8080. * <td>include PID with each message</td>
  8081. * </tr>
  8082. * </table>
  8083. * You can use one or more of this options. When using multiple options
  8084. * you need to OR them, i.e. to open the connection
  8085. * immediately, write to the console and include the PID in each message,
  8086. * you will use: LOG_CONS | LOG_NDELAY | LOG_PID
  8087. * </p>
  8088. * @param int $facility <p>
  8089. * The facility argument is used to specify what
  8090. * type of program is logging the message. This allows you to specify
  8091. * (in your machine's syslog configuration) how messages coming from
  8092. * different facilities will be handled.
  8093. * <table>
  8094. * openlog Facilities
  8095. * <tr valign="top">
  8096. * <td>Constant</td>
  8097. * <td>Description</td>
  8098. * </tr>
  8099. * <tr valign="top">
  8100. * <td>LOG_AUTH</td>
  8101. * <td>
  8102. * security/authorization messages (use
  8103. * LOG_AUTHPRIV instead
  8104. * in systems where that constant is defined)
  8105. * </td>
  8106. * </tr>
  8107. * <tr valign="top">
  8108. * <td>LOG_AUTHPRIV</td>
  8109. * <td>security/authorization messages (private)</td>
  8110. * </tr>
  8111. * <tr valign="top">
  8112. * <td>LOG_CRON</td>
  8113. * <td>clock daemon (cron and at)</td>
  8114. * </tr>
  8115. * <tr valign="top">
  8116. * <td>LOG_DAEMON</td>
  8117. * <td>other system daemons</td>
  8118. * </tr>
  8119. * <tr valign="top">
  8120. * <td>LOG_KERN</td>
  8121. * <td>kernel messages</td>
  8122. * </tr>
  8123. * <tr valign="top">
  8124. * <td>LOG_LOCAL0 ... LOG_LOCAL7</td>
  8125. * <td>reserved for local use, these are not available in Windows</td>
  8126. * </tr>
  8127. * <tr valign="top">
  8128. * <td>LOG_LPR</td>
  8129. * <td>line printer subsystem</td>
  8130. * </tr>
  8131. * <tr valign="top">
  8132. * <td>LOG_MAIL</td>
  8133. * <td>mail subsystem</td>
  8134. * </tr>
  8135. * <tr valign="top">
  8136. * <td>LOG_NEWS</td>
  8137. * <td>USENET news subsystem</td>
  8138. * </tr>
  8139. * <tr valign="top">
  8140. * <td>LOG_SYSLOG</td>
  8141. * <td>messages generated internally by syslogd</td>
  8142. * </tr>
  8143. * <tr valign="top">
  8144. * <td>LOG_USER</td>
  8145. * <td>generic user-level messages</td>
  8146. * </tr>
  8147. * <tr valign="top">
  8148. * <td>LOG_UUCP</td>
  8149. * <td>UUCP subsystem</td>
  8150. * </tr>
  8151. * </table>
  8152. * </p>
  8153. * <p>
  8154. * LOG_USER is the only valid log type under Windows
  8155. * operating systems
  8156. * </p>
  8157. * @return bool Returns true on success or false on failure.
  8158. */
  8159. function openlog ($ident, $option, $facility) {}
  8160. /**
  8161. * (PHP 4, PHP 5)<br/>
  8162. * Generate a system log message
  8163. * @link http://php.net/manual/en/function.syslog.php
  8164. * @param int $priority <p>
  8165. * priority is a combination of the facility and
  8166. * the level. Possible values are:
  8167. * <table>
  8168. * syslog Priorities (in descending order)
  8169. * <tr valign="top">
  8170. * <td>Constant</td>
  8171. * <td>Description</td>
  8172. * </tr>
  8173. * <tr valign="top">
  8174. * <td>LOG_EMERG</td>
  8175. * <td>system is unusable</td>
  8176. * </tr>
  8177. * <tr valign="top">
  8178. * <td>LOG_ALERT</td>
  8179. * <td>action must be taken immediately</td>
  8180. * </tr>
  8181. * <tr valign="top">
  8182. * <td>LOG_CRIT</td>
  8183. * <td>critical conditions</td>
  8184. * </tr>
  8185. * <tr valign="top">
  8186. * <td>LOG_ERR</td>
  8187. * <td>error conditions</td>
  8188. * </tr>
  8189. * <tr valign="top">
  8190. * <td>LOG_WARNING</td>
  8191. * <td>warning conditions</td>
  8192. * </tr>
  8193. * <tr valign="top">
  8194. * <td>LOG_NOTICE</td>
  8195. * <td>normal, but significant, condition</td>
  8196. * </tr>
  8197. * <tr valign="top">
  8198. * <td>LOG_INFO</td>
  8199. * <td>informational message</td>
  8200. * </tr>
  8201. * <tr valign="top">
  8202. * <td>LOG_DEBUG</td>
  8203. * <td>debug-level message</td>
  8204. * </tr>
  8205. * </table>
  8206. * </p>
  8207. * @param string $message <p>
  8208. * The message to send, except that the two characters
  8209. * %m will be replaced by the error message string
  8210. * (strerror) corresponding to the present value of
  8211. * errno.
  8212. * </p>
  8213. * @return bool Returns true on success or false on failure.
  8214. */
  8215. function syslog ($priority, $message) {}
  8216. /**
  8217. * (PHP 4, PHP 5)<br/>
  8218. * Close connection to system logger
  8219. * @link http://php.net/manual/en/function.closelog.php
  8220. * @return bool Returns true on success or false on failure.
  8221. */
  8222. function closelog () {}
  8223. /**
  8224. * (PHP 4, PHP 5)<br/>
  8225. * Initializes all syslog related variables
  8226. * @link http://php.net/manual/en/function.define-syslog-variables.php
  8227. * @return void
  8228. */
  8229. function define_syslog_variables () {}
  8230. /**
  8231. * (PHP 4, PHP 5)<br/>
  8232. * Combined linear congruential generator
  8233. * @link http://php.net/manual/en/function.lcg-value.php
  8234. * @return float A pseudo random float value in the range of (0, 1)
  8235. */
  8236. function lcg_value () {}
  8237. /**
  8238. * (PHP 4, PHP 5)<br/>
  8239. * Calculate the metaphone key of a string
  8240. * @link http://php.net/manual/en/function.metaphone.php
  8241. * @param string $str <p>
  8242. * The input string.
  8243. * </p>
  8244. * @param int $phones [optional] <p>
  8245. * </p>
  8246. * @return string the metaphone key as a string.
  8247. */
  8248. function metaphone ($str, $phones = null) {}
  8249. /**
  8250. * (PHP 4, PHP 5)<br/>
  8251. * Turn on output buffering
  8252. * @link http://php.net/manual/en/function.ob-start.php
  8253. * @param callback $output_callback [optional] <p>
  8254. * An optional output_callback function may be
  8255. * specified. This function takes a string as a parameter and should
  8256. * return a string. The function will be called when
  8257. * the output buffer is flushed (sent) or cleaned (with
  8258. * ob_flush, ob_clean or similar
  8259. * function) or when the output buffer
  8260. * is flushed to the browser at the end of the request. When
  8261. * output_callback is called, it will receive the
  8262. * contents of the output buffer as its parameter and is expected to
  8263. * return a new output buffer as a result, which will be sent to the
  8264. * browser. If the output_callback is not a
  8265. * callable function, this function will return false.
  8266. * </p>
  8267. * <p>
  8268. * If the callback function has two parameters, the second parameter is
  8269. * filled with a bit-field consisting of
  8270. * PHP_OUTPUT_HANDLER_START,
  8271. * PHP_OUTPUT_HANDLER_CONT and
  8272. * PHP_OUTPUT_HANDLER_END.
  8273. * </p>
  8274. * <p>
  8275. * If output_callback returns false original
  8276. * input is sent to the browser.
  8277. * </p>
  8278. * <p>
  8279. * The output_callback parameter may be bypassed
  8280. * by passing a &null; value.
  8281. * </p>
  8282. * <p>
  8283. * ob_end_clean, ob_end_flush,
  8284. * ob_clean, ob_flush and
  8285. * ob_start may not be called from a callback
  8286. * function. If you call them from callback function, the behavior is
  8287. * undefined. If you would like to delete the contents of a buffer,
  8288. * return "" (a null string) from callback function.
  8289. * You can't even call functions using the output buffering functions like
  8290. * print_r($expression, true) or
  8291. * highlight_file($filename, true) from a callback
  8292. * function.
  8293. * </p>
  8294. * <p>
  8295. * In PHP 4.0.4, ob_gzhandler was introduced to
  8296. * facilitate sending gz-encoded data to web browsers that support
  8297. * compressed web pages. ob_gzhandler determines
  8298. * what type of content encoding the browser will accept and will return
  8299. * its output accordingly.
  8300. * </p>
  8301. * @param int $chunk_size [optional] <p>
  8302. * If the optional parameter chunk_size is passed, the
  8303. * buffer will be flushed after any output call which causes the buffer's
  8304. * length to equal or exceed chunk_size.
  8305. * Default value 0 means that the function is called only in the end,
  8306. * other special value 1 sets chunk_size to 4096.
  8307. * </p>
  8308. * @param bool $erase [optional] <p>
  8309. * If the optional parameter erase is set to false,
  8310. * the buffer will not be deleted until the script finishes.
  8311. * This causes that flushing and cleaning functions would issue a notice
  8312. * and return false if called.
  8313. * </p>
  8314. * @return bool Returns true on success or false on failure.
  8315. */
  8316. function ob_start ($output_callback = null, $chunk_size = null, $erase = null) {}
  8317. /**
  8318. * (PHP 4 &gt;= 4.2.0, PHP 5)<br/>
  8319. * Flush (send) the output buffer
  8320. * @link http://php.net/manual/en/function.ob-flush.php
  8321. * @return void
  8322. */
  8323. function ob_flush () {}
  8324. /**
  8325. * (PHP 4 &gt;= 4.2.0, PHP 5)<br/>
  8326. * Clean (erase) the output buffer
  8327. * @link http://php.net/manual/en/function.ob-clean.php
  8328. * @return void
  8329. */
  8330. function ob_clean () {}
  8331. /**
  8332. * (PHP 4, PHP 5)<br/>
  8333. * Flush (send) the output buffer and turn off output buffering
  8334. * @link http://php.net/manual/en/function.ob-end-flush.php
  8335. * @return bool Returns true on success or false on failure. Reasons for failure are first that you called the
  8336. * function without an active buffer or that for some reason a buffer could
  8337. * not be deleted (possible for special buffer).
  8338. */
  8339. function ob_end_flush () {}
  8340. /**
  8341. * (PHP 4, PHP 5)<br/>
  8342. * Clean (erase) the output buffer and turn off output buffering
  8343. * @link http://php.net/manual/en/function.ob-end-clean.php
  8344. * @return bool Returns true on success or false on failure. Reasons for failure are first that you called the
  8345. * function without an active buffer or that for some reason a buffer could
  8346. * not be deleted (possible for special buffer).
  8347. */
  8348. function ob_end_clean () {}
  8349. /**
  8350. * (PHP 4 &gt;= 4.3.0, PHP 5)<br/>
  8351. * Flush the output buffer, return it as a string and turn off output buffering
  8352. * @link http://php.net/manual/en/function.ob-get-flush.php
  8353. * @return string the output buffer or false if no buffering is active.
  8354. */
  8355. function ob_get_flush () {}
  8356. /**
  8357. * (PHP 4 &gt;= 4.3.0, PHP 5)<br/>
  8358. * Get current buffer contents and delete current output buffer
  8359. * @link http://php.net/manual/en/function.ob-get-clean.php
  8360. * @return string the contents of the output buffer and end output buffering.
  8361. * If output buffering isn't active then false is returned.
  8362. */
  8363. function ob_get_clean () {}
  8364. /**
  8365. * (PHP 4 &gt;= 4.0.2, PHP 5)<br/>
  8366. * Return the length of the output buffer
  8367. * @link http://php.net/manual/en/function.ob-get-length.php
  8368. * @return int the length of the output buffer contents or false if no
  8369. * buffering is active.
  8370. */
  8371. function ob_get_length () {}
  8372. /**
  8373. * (PHP 4 &gt;= 4.2.0, PHP 5)<br/>
  8374. * Return the nesting level of the output buffering mechanism
  8375. * @link http://php.net/manual/en/function.ob-get-level.php
  8376. * @return int the level of nested output buffering handlers or zero if output
  8377. * buffering is not active.
  8378. */
  8379. function ob_get_level () {}
  8380. /**
  8381. * (PHP 4 &gt;= 4.2.0, PHP 5)<br/>
  8382. * Get status of output buffers
  8383. * @link http://php.net/manual/en/function.ob-get-status.php
  8384. * @param bool $full_status [optional] <p>
  8385. * true to return all active output buffer levels. If false or not
  8386. * set, only the top level output buffer is returned.
  8387. * </p>
  8388. * @return array If called without the full_status parameter
  8389. * or with full_status = false a simple array
  8390. * with the following elements is returned:
  8391. * 2
  8392. * [type] => 0
  8393. * [status] => 0
  8394. * [name] => URL-Rewriter
  8395. * [del] => 1
  8396. * )
  8397. * ]]>
  8398. * Simple ob_get_status results
  8399. * KeyValue
  8400. * levelOutput nesting level
  8401. * typePHP_OUTPUT_HANDLER_INTERNAL (0) or PHP_OUTPUT_HANDLER_USER (1)
  8402. * statusOne of PHP_OUTPUT_HANDLER_START (0), PHP_OUTPUT_HANDLER_CONT (1) or PHP_OUTPUT_HANDLER_END (2)
  8403. * nameName of active output handler or ' default output handler' if none is set
  8404. * delErase-flag as set by ob_start
  8405. * </p>
  8406. * <p>
  8407. * If called with full_status = true an array
  8408. * with one element for each active output buffer level is returned.
  8409. * The output level is used as key of the top level array and each array
  8410. * element itself is another array holding status information
  8411. * on one active output level.
  8412. * Array
  8413. * (
  8414. * [chunk_size] => 0
  8415. * [size] => 40960
  8416. * [block_size] => 10240
  8417. * [type] => 1
  8418. * [status] => 0
  8419. * [name] => default output handler
  8420. * [del] => 1
  8421. * )
  8422. * [1] => Array
  8423. * (
  8424. * [chunk_size] => 0
  8425. * [size] => 40960
  8426. * [block_size] => 10240
  8427. * [type] => 0
  8428. * [buffer_size] => 0
  8429. * [status] => 0
  8430. * [name] => URL-Rewriter
  8431. * [del] => 1
  8432. * )
  8433. * )
  8434. * ]]>
  8435. * </p>
  8436. * <p>
  8437. * The full output contains these additional elements:
  8438. * Full ob_get_status results
  8439. * KeyValue
  8440. * chunk_sizeChunk size as set by ob_start
  8441. * size...
  8442. * blocksize...
  8443. */
  8444. function ob_get_status ($full_status = null) {}
  8445. /**
  8446. * (PHP 4, PHP 5)<br/>
  8447. * Return the contents of the output buffer
  8448. * @link http://php.net/manual/en/function.ob-get-contents.php
  8449. * @return string This will return the contents of the output buffer or false, if output
  8450. * buffering isn't active.
  8451. */
  8452. function ob_get_contents () {}
  8453. /**
  8454. * (PHP 4, PHP 5)<br/>
  8455. * Turn implicit flush on/off
  8456. * @link http://php.net/manual/en/function.ob-implicit-flush.php
  8457. * @param int $flag [optional] <p>
  8458. * true to turn implicit flushing on, false otherwise.
  8459. * </p>
  8460. * @return void
  8461. */
  8462. function ob_implicit_flush ($flag = null) {}
  8463. /**
  8464. * (PHP 4 &gt;= 4.3.0, PHP 5)<br/>
  8465. * List all output handlers in use
  8466. * @link http://php.net/manual/en/function.ob-list-handlers.php
  8467. * @return array This will return an array with the output handlers in use (if any). If
  8468. * output_buffering is enabled or
  8469. * an anonymous function was used with ob_start,
  8470. * ob_list_handlers will return "default output
  8471. * handler".
  8472. */
  8473. function ob_list_handlers () {}
  8474. /**
  8475. * (PHP 4, PHP 5)<br/>
  8476. * Sort an array by key
  8477. * @link http://php.net/manual/en/function.ksort.php
  8478. * @param array $array <p>
  8479. * The input array.
  8480. * </p>
  8481. * @param int $sort_flags [optional] <p>
  8482. * You may modify the behavior of the sort using the optional
  8483. * parameter sort_flags, for details
  8484. * see sort.
  8485. * </p>
  8486. * @return bool Returns true on success or false on failure.
  8487. */
  8488. function ksort (&$arrayarray , $sort_flags = null) {}
  8489. /**
  8490. * (PHP 4, PHP 5)<br/>
  8491. * Sort an array by key in reverse order
  8492. * @link http://php.net/manual/en/function.krsort.php
  8493. * @param array $array <p>
  8494. * The input array.
  8495. * </p>
  8496. * @param int $sort_flags [optional] <p>
  8497. * You may modify the behavior of the sort using the optional parameter
  8498. * sort_flags, for details see
  8499. * sort.
  8500. * </p>
  8501. * @return bool Returns true on success or false on failure.
  8502. */
  8503. function krsort (&$arrayarray , $sort_flags = null) {}
  8504. /**
  8505. * (PHP 4, PHP 5)<br/>
  8506. * Sort an array using a "natural order" algorithm
  8507. * @link http://php.net/manual/en/function.natsort.php
  8508. * @param array $array <p>
  8509. * The input array.
  8510. * </p>
  8511. * @return bool Returns true on success or false on failure.
  8512. */
  8513. function natsort (&$arrayarray ) {}
  8514. /**
  8515. * (PHP 4, PHP 5)<br/>
  8516. * Sort an array using a case insensitive "natural order" algorithm
  8517. * @link http://php.net/manual/en/function.natcasesort.php
  8518. * @param array $array <p>
  8519. * The input array.
  8520. * </p>
  8521. * @return bool Returns true on success or false on failure.
  8522. */
  8523. function natcasesort (&$arrayarray ) {}
  8524. /**
  8525. * (PHP 4, PHP 5)<br/>
  8526. * Sort an array and maintain index association
  8527. * @link http://php.net/manual/en/function.asort.php
  8528. * @param array $array <p>
  8529. * The input array.
  8530. * </p>
  8531. * @param int $sort_flags [optional] <p>
  8532. * You may modify the behavior of the sort using the optional
  8533. * parameter sort_flags, for details
  8534. * see sort.
  8535. * </p>
  8536. * @return bool Returns true on success or false on failure.
  8537. */
  8538. function asort (&$arrayarray , $sort_flags = null) {}
  8539. /**
  8540. * (PHP 4, PHP 5)<br/>
  8541. * Sort an array in reverse order and maintain index association
  8542. * @link http://php.net/manual/en/function.arsort.php
  8543. * @param array $array <p>
  8544. * The input array.
  8545. * </p>
  8546. * @param int $sort_flags [optional] <p>
  8547. * You may modify the behavior of the sort using the optional parameter
  8548. * sort_flags, for details see
  8549. * sort.
  8550. * </p>
  8551. * @return bool Returns true on success or false on failure.
  8552. */
  8553. function arsort (&$arrayarray , $sort_flags = null) {}
  8554. /**
  8555. * (PHP 4, PHP 5)<br/>
  8556. * Sort an array
  8557. * @link http://php.net/manual/en/function.sort.php
  8558. * @param array $array <p>
  8559. * The input array.
  8560. * </p>
  8561. * @param int $sort_flags [optional] <p>
  8562. * The optional second parameter sort_flags
  8563. * may be used to modify the sorting behavior using these values:
  8564. * </p>
  8565. * <p>
  8566. * Sorting type flags:
  8567. * SORT_REGULAR - compare items normally
  8568. * (don't change types)
  8569. * @return bool Returns true on success or false on failure.
  8570. */
  8571. function sort (&$arrayarray , $sort_flags = null) {}
  8572. /**
  8573. * (PHP 4, PHP 5)<br/>
  8574. * Sort an array in reverse order
  8575. * @link http://php.net/manual/en/function.rsort.php
  8576. * @param array $array <p>
  8577. * The input array.
  8578. * </p>
  8579. * @param int $sort_flags [optional] <p>
  8580. * You may modify the behavior of the sort using the optional
  8581. * parameter sort_flags, for details see
  8582. * sort.
  8583. * </p>
  8584. * @return bool Returns true on success or false on failure.
  8585. */
  8586. function rsort (&$arrayarray , $sort_flags = null) {}
  8587. /**
  8588. * (PHP 4, PHP 5)<br/>
  8589. * Sort an array by values using a user-defined comparison function
  8590. * @link http://php.net/manual/en/function.usort.php
  8591. * @param array $array <p>
  8592. * The input array.
  8593. * </p>
  8594. * @param callback $cmp_function <p>
  8595. * The comparison function must return an integer less than, equal to, or
  8596. * greater than zero if the first argument is considered to be
  8597. * respectively less than, equal to, or greater than the second.
  8598. * </p>
  8599. * @return bool Returns true on success or false on failure.
  8600. */
  8601. function usort (&$arrayarray , $cmp_function) {}
  8602. /**
  8603. * (PHP 4, PHP 5)<br/>
  8604. * Sort an array with a user-defined comparison function and maintain index association
  8605. * @link http://php.net/manual/en/function.uasort.php
  8606. * @param array $array <p>
  8607. * The input array.
  8608. * </p>
  8609. * @param callback $cmp_function <p>
  8610. * See usort and uksort for
  8611. * examples of user-defined comparison functions.
  8612. * </p>
  8613. * @return bool Returns true on success or false on failure.
  8614. */
  8615. function uasort (&$arrayarray , $cmp_function) {}
  8616. /**
  8617. * (PHP 4, PHP 5)<br/>
  8618. * Sort an array by keys using a user-defined comparison function
  8619. * @link http://php.net/manual/en/function.uksort.php
  8620. * @param array $array <p>
  8621. * The input array.
  8622. * </p>
  8623. * @param callback $cmp_function <p>
  8624. * The callback comparison function.
  8625. * </p>
  8626. * <p>
  8627. * Function cmp_function should accept two
  8628. * parameters which will be filled by pairs of array keys.
  8629. * The comparison function must return an integer less than, equal
  8630. * to, or greater than zero if the first argument is considered to
  8631. * be respectively less than, equal to, or greater than the
  8632. * second.
  8633. * </p>
  8634. * @return bool Returns true on success or false on failure.
  8635. */
  8636. function uksort (&$arrayarray , $cmp_function) {}
  8637. /**
  8638. * (PHP 4, PHP 5)<br/>
  8639. * Shuffle an array
  8640. * @link http://php.net/manual/en/function.shuffle.php
  8641. * @param array $array <p>
  8642. * The array.
  8643. * </p>
  8644. * @return bool Returns true on success or false on failure.
  8645. */
  8646. function shuffle (&$arrayarray ) {}
  8647. /**
  8648. * (PHP 4, PHP 5)<br/>
  8649. * Apply a user function to every member of an array
  8650. * @link http://php.net/manual/en/function.array-walk.php
  8651. * @param array $array <p>
  8652. * The input array.
  8653. * </p>
  8654. * @param callback $funcname <p>
  8655. * Typically, funcname takes on two parameters.
  8656. * The array parameter's value being the first, and
  8657. * the key/index second.
  8658. * </p>
  8659. * <p>
  8660. * If funcname needs to be working with the
  8661. * actual values of the array, specify the first parameter of
  8662. * funcname as a
  8663. * reference. Then,
  8664. * any changes made to those elements will be made in the
  8665. * original array itself.
  8666. * </p>
  8667. * <p>
  8668. * Users may not change the array itself from the
  8669. * callback function. e.g. Add/delete elements, unset elements, etc. If
  8670. * the array that array_walk is applied to is
  8671. * changed, the behavior of this function is undefined, and unpredictable.
  8672. * </p>
  8673. * @param mixed $userdata [optional] <p>
  8674. * If the optional userdata parameter is supplied,
  8675. * it will be passed as the third parameter to the callback
  8676. * funcname.
  8677. * </p>
  8678. * @return bool Returns true on success or false on failure.
  8679. */
  8680. function array_walk (&$arrayarray , $funcname, $userdata = null) {}
  8681. /**
  8682. * (PHP 5)<br/>
  8683. * Apply a user function recursively to every member of an array
  8684. * @link http://php.net/manual/en/function.array-walk-recursive.php
  8685. * @param array $input <p>
  8686. * The input array.
  8687. * </p>
  8688. * @param callback $funcname <p>
  8689. * Typically, funcname takes on two parameters.
  8690. * The input parameter's value being the first, and
  8691. * the key/index second.
  8692. * </p>
  8693. * <p>
  8694. * If funcname needs to be working with the
  8695. * actual values of the array, specify the first parameter of
  8696. * funcname as a
  8697. * reference. Then,
  8698. * any changes made to those elements will be made in the
  8699. * original array itself.
  8700. * </p>
  8701. * @param mixed $userdata [optional] <p>
  8702. * If the optional userdata parameter is supplied,
  8703. * it will be passed as the third parameter to the callback
  8704. * funcname.
  8705. * </p>
  8706. * @return bool Returns true on success or false on failure.
  8707. */
  8708. function array_walk_recursive (&$inputarray , $funcname, $userdata = null) {}
  8709. /**
  8710. * (PHP 4, PHP 5)<br/>
  8711. * Count all elements in an array, or properties in an object
  8712. * @link http://php.net/manual/en/function.count.php
  8713. * @param mixed $var <p>
  8714. * The array.
  8715. * </p>
  8716. * @param int $mode [optional] <p>
  8717. * If the optional mode parameter is set to
  8718. * COUNT_RECURSIVE (or 1), count
  8719. * will recursively count the array. This is particularly useful for
  8720. * counting all the elements of a multidimensional array.
  8721. * count does not detect infinite recursion.
  8722. * </p>
  8723. * @return int the number of elements in var, which is
  8724. * typically an array, since anything else will have one
  8725. * element.
  8726. * </p>
  8727. * <p>
  8728. * If var is not an array or an object with
  8729. * implemented Countable interface,
  8730. * 1 will be returned.
  8731. * There is one exception, if var is &null;,
  8732. * 0 will be returned.
  8733. * </p>
  8734. * <p>
  8735. * count may return 0 for a variable that isn't set,
  8736. * but it may also return 0 for a variable that has been initialized with an
  8737. * empty array. Use isset to test if a variable is set.
  8738. */
  8739. function count ($var, $mode = null) {}
  8740. /**
  8741. * (PHP 4, PHP 5)<br/>
  8742. * Set the internal pointer of an array to its last element
  8743. * @link http://php.net/manual/en/function.end.php
  8744. * @param array $array <p>
  8745. * The array. This array is passed by reference because it is modified by
  8746. * the function. This means you must pass it a real variable and not
  8747. * a function returning an array because only actual variables may be
  8748. * passed by reference.
  8749. * </p>
  8750. * @return mixed the value of the last element or false for empty array.
  8751. */
  8752. function end (&$arrayarray ) {}
  8753. /**
  8754. * (PHP 4, PHP 5)<br/>
  8755. * Rewind the internal array pointer
  8756. * @link http://php.net/manual/en/function.prev.php
  8757. * @param array $array <p>
  8758. * The input array.
  8759. * </p>
  8760. * @return mixed the array value in the previous place that's pointed to by
  8761. * the internal array pointer, or false if there are no more
  8762. * elements.
  8763. */
  8764. function prev (&$arrayarray ) {}
  8765. /**
  8766. * (PHP 4, PHP 5)<br/>
  8767. * Advance the internal array pointer of an array
  8768. * @link http://php.net/manual/en/function.next.php
  8769. * @param array $array <p>
  8770. * The array being affected.
  8771. * </p>
  8772. * @return mixed the array value in the next place that's pointed to by the
  8773. * internal array pointer, or false if there are no more elements.
  8774. */
  8775. function next (&$arrayarray ) {}
  8776. /**
  8777. * (PHP 4, PHP 5)<br/>
  8778. * Set the internal pointer of an array to its first element
  8779. * @link http://php.net/manual/en/function.reset.php
  8780. * @param array $array <p>
  8781. * The input array.
  8782. * </p>
  8783. * @return mixed the value of the first array element, or false if the array is
  8784. * empty.
  8785. */
  8786. function reset (&$arrayarray ) {}
  8787. /**
  8788. * (PHP 4, PHP 5)<br/>
  8789. * Return the current element in an array
  8790. * @link http://php.net/manual/en/function.current.php
  8791. * @param array $array <p>
  8792. * The array.
  8793. * </p>
  8794. * @return mixed The current function simply returns the
  8795. * value of the array element that's currently being pointed to by the
  8796. * internal pointer. It does not move the pointer in any way. If the
  8797. * internal pointer points beyond the end of the elements list or the array is
  8798. * empty, current returns false.
  8799. */
  8800. function current (&$arrayarray ) {}
  8801. /**
  8802. * (PHP 4, PHP 5)<br/>
  8803. * Fetch a key from an array
  8804. * @link http://php.net/manual/en/function.key.php
  8805. * @param array $array <p>
  8806. * The array.
  8807. * </p>
  8808. * @return mixed The key function simply returns the
  8809. * key of the array element that's currently being pointed to by the
  8810. * internal pointer. It does not move the pointer in any way. If the
  8811. * internal pointer points beyond the end of the elements list or the array is
  8812. * empty, key returns &null;.
  8813. */
  8814. function key (&$arrayarray ) {}
  8815. /**
  8816. * (PHP 4, PHP 5)<br/>
  8817. * Find lowest value
  8818. * @link http://php.net/manual/en/function.min.php
  8819. * @param array $values <p>
  8820. * An array containing the values.
  8821. * </p>
  8822. * @return mixed min returns the numerically lowest of the
  8823. * parameter values.
  8824. */
  8825. function min ($valuesarray ) {}
  8826. /**
  8827. * (PHP 4, PHP 5)<br/>
  8828. * Find highest value
  8829. * @link http://php.net/manual/en/function.max.php
  8830. * @param array $values <p>
  8831. * An array containing the values.
  8832. * </p>
  8833. * @return mixed max returns the numerically highest of the
  8834. * parameter values.
  8835. */
  8836. function max ($valuesarray ) {}
  8837. /**
  8838. * (PHP 4, PHP 5)<br/>
  8839. * Checks if a value exists in an array
  8840. * @link http://php.net/manual/en/function.in-array.php
  8841. * @param mixed $needle <p>
  8842. * The searched value.
  8843. * </p>
  8844. * <p>
  8845. * If needle is a string, the comparison is done
  8846. * in a case-sensitive manner.
  8847. * </p>
  8848. * @param array $haystack <p>
  8849. * The array.
  8850. * </p>
  8851. * @param bool $strict [optional] <p>
  8852. * If the third parameter strict is set to true
  8853. * then the in_array function will also check the
  8854. * types of the
  8855. * needle in the haystack.
  8856. * </p>
  8857. * @return bool true if needle is found in the array,
  8858. * false otherwise.
  8859. */
  8860. function in_array ($needle, $haystackarray , $strict = null) {}
  8861. /**
  8862. * (PHP 4 &gt;= 4.0.5, PHP 5)<br/>
  8863. * Searches the array for a given value and returns the corresponding key if successful
  8864. * @link http://php.net/manual/en/function.array-search.php
  8865. * @param mixed $needle <p>
  8866. * The searched value.
  8867. * </p>
  8868. * <p>
  8869. * If needle is a string, the comparison is done
  8870. * in a case-sensitive manner.
  8871. * </p>
  8872. * @param array $haystack <p>
  8873. * The array.
  8874. * </p>
  8875. * @param bool $strict [optional] <p>
  8876. * If the third parameter strict is set to true
  8877. * then the array_search function will also check the
  8878. * types of the
  8879. * needle in the haystack.
  8880. * </p>
  8881. * @return mixed the key for needle if it is found in the
  8882. * array, false otherwise.
  8883. * </p>
  8884. * <p>
  8885. * If needle is found in haystack
  8886. * more than once, the first matching key is returned. To return the keys for
  8887. * all matching values, use array_keys with the optional
  8888. * search_value parameter instead.
  8889. */
  8890. function array_search ($needle, $haystackarray , $strict = null) {}
  8891. /**
  8892. * (PHP 4, PHP 5)<br/>
  8893. * Import variables into the current symbol table from an array
  8894. * @link http://php.net/manual/en/function.extract.php
  8895. * @param array $var_array <p>
  8896. * Note that prefix is only required if
  8897. * extract_type is EXTR_PREFIX_SAME,
  8898. * EXTR_PREFIX_ALL, EXTR_PREFIX_INVALID
  8899. * or EXTR_PREFIX_IF_EXISTS. If
  8900. * the prefixed result is not a valid variable name, it is not
  8901. * imported into the symbol table. Prefixes are automatically separated from
  8902. * the array key by an underscore character.
  8903. * </p>
  8904. * @param int $extract_type [optional] <p>
  8905. * The way invalid/numeric keys and collisions are treated is determined
  8906. * by the extract_type. It can be one of the
  8907. * following values:
  8908. * EXTR_OVERWRITE
  8909. * If there is a collision, overwrite the existing variable.
  8910. * @param string $prefix [optional] Only overwrite the variable if it already exists in the
  8911. * current symbol table, otherwise do nothing. This is useful
  8912. * for defining a list of valid variables and then extracting
  8913. * only those variables you have defined out of
  8914. * $_REQUEST, for example.
  8915. * @return int the number of variables successfully imported into the symbol
  8916. * table.
  8917. */
  8918. function extract ($var_arrayarray , $extract_type = null, $prefix = null) {}
  8919. /**
  8920. * (PHP 4, PHP 5)<br/>
  8921. * Create array containing variables and their values
  8922. * @link http://php.net/manual/en/function.compact.php
  8923. * @param mixed $varname <p>
  8924. * compact takes a variable number of parameters.
  8925. * Each parameter can be either a string containing the name of the
  8926. * variable, or an array of variable names. The array can contain other
  8927. * arrays of variable names inside it; compact
  8928. * handles it recursively.
  8929. * </p>
  8930. * @param mixed $_ [optional]
  8931. * @return array the output array with all the variables added to it.
  8932. */
  8933. function compact ($varname, $_ = null) {}
  8934. /**
  8935. * (PHP 4 &gt;= 4.2.0, PHP 5)<br/>
  8936. * Fill an array with values
  8937. * @link http://php.net/manual/en/function.array-fill.php
  8938. * @param int $start_index <p>
  8939. * The first index of the returned array.
  8940. * Supports non-negative indexes only.
  8941. * </p>
  8942. * @param int $num <p>
  8943. * Number of elements to insert
  8944. * </p>
  8945. * @param mixed $value <p>
  8946. * Value to use for filling
  8947. * </p>
  8948. * @return array the filled array
  8949. */
  8950. function array_fill ($start_index, $num, $value) {}
  8951. /**
  8952. * (PHP 5 &gt;= 5.2.0)<br/>
  8953. * Fill an array with values, specifying keys
  8954. * @link http://php.net/manual/en/function.array-fill-keys.php
  8955. * @param array $keys <p>
  8956. * Array of values that will be used as keys. Illegal values
  8957. * for key will be converted to string.
  8958. * </p>
  8959. * @param mixed $value <p>
  8960. * Value to use for filling
  8961. * </p>
  8962. * @return array the filled array
  8963. */
  8964. function array_fill_keys ($keysarray , $value) {}
  8965. /**
  8966. * (PHP 4, PHP 5)<br/>
  8967. * Create an array containing a range of elements
  8968. * @link http://php.net/manual/en/function.range.php
  8969. * @param mixed $low <p>
  8970. * Low value.
  8971. * </p>
  8972. * @param mixed $high <p>
  8973. * High value.
  8974. * </p>
  8975. * @param number $step [optional] <p>
  8976. * If a step value is given, it will be used as the
  8977. * increment between elements in the sequence. step
  8978. * should be given as a positive number. If not specified,
  8979. * step will default to 1.
  8980. * </p>
  8981. * @return array an array of elements from low to
  8982. * high, inclusive. If low > high, the sequence will
  8983. * be from high to low.
  8984. */
  8985. function range ($low, $high, $step = null) {}
  8986. /**
  8987. * (PHP 4, PHP 5)<br/>
  8988. * Sort multiple or multi-dimensional arrays
  8989. * @link http://php.net/manual/en/function.array-multisort.php
  8990. * @param array $arr <p>
  8991. * An array being sorted.
  8992. * </p>
  8993. * @param mixed $arg [optional] <p>
  8994. * Optionally another array, or sort options for the
  8995. * previous array argument:
  8996. * SORT_ASC,
  8997. * SORT_DESC,
  8998. * SORT_REGULAR,
  8999. * SORT_NUMERIC,
  9000. * SORT_STRING.
  9001. * </p>
  9002. * @param mixed $arg [optional]
  9003. * @param mixed $_ [optional]
  9004. * @return bool Returns true on success or false on failure.
  9005. */
  9006. function array_multisort (&$arrarray , $arg = null, $arg = null, $_ = null) {}
  9007. /**
  9008. * (PHP 4, PHP 5)<br/>
  9009. * Push one or more elements onto the end of array
  9010. * @link http://php.net/manual/en/function.array-push.php
  9011. * @param array $array <p>
  9012. * The input array.
  9013. * </p>
  9014. * @param mixed $var <p>
  9015. * The pushed value.
  9016. * </p>
  9017. * @param mixed $_ [optional]
  9018. * @return int the new number of elements in the array.
  9019. */
  9020. function array_push (&$arrayarray , $var, $_ = null) {}
  9021. /**
  9022. * (PHP 4, PHP 5)<br/>
  9023. * Pop the element off the end of array
  9024. * @link http://php.net/manual/en/function.array-pop.php
  9025. * @param array $array <p>
  9026. * The array to get the value from.
  9027. * </p>
  9028. * @return mixed the last value of array.
  9029. * If array is empty (or is not an array),
  9030. * &null; will be returned.
  9031. */
  9032. function array_pop (&$arrayarray ) {}
  9033. /**
  9034. * (PHP 4, PHP 5)<br/>
  9035. * Shift an element off the beginning of array
  9036. * @link http://php.net/manual/en/function.array-shift.php
  9037. * @param array $array <p>
  9038. * The input array.
  9039. * </p>
  9040. * @return mixed the shifted value, or &null; if array is
  9041. * empty or is not an array.
  9042. */
  9043. function array_shift (&$arrayarray ) {}
  9044. /**
  9045. * (PHP 4, PHP 5)<br/>
  9046. * Prepend one or more elements to the beginning of an array
  9047. * @link http://php.net/manual/en/function.array-unshift.php
  9048. * @param array $array <p>
  9049. * The input array.
  9050. * </p>
  9051. * @param mixed $var <p>
  9052. * The prepended variable.
  9053. * </p>
  9054. * @param mixed $_ [optional]
  9055. * @return int the new number of elements in the array.
  9056. */
  9057. function array_unshift (&$arrayarray , $var, $_ = null) {}
  9058. /**
  9059. * (PHP 4, PHP 5)<br/>
  9060. * Remove a portion of the array and replace it with something else
  9061. * @link http://php.net/manual/en/function.array-splice.php
  9062. * @param array $input <p>
  9063. * The input array.
  9064. * </p>
  9065. * @param int $offset <p>
  9066. * If offset is positive then the start of removed
  9067. * portion is at that offset from the beginning of the
  9068. * input array. If offset
  9069. * is negative then it starts that far from the end of the
  9070. * input array.
  9071. * </p>
  9072. * @param int $length [optional] <p>
  9073. * If length is omitted, removes everything
  9074. * from offset to the end of the array. If
  9075. * length is specified and is positive, then
  9076. * that many elements will be removed. If
  9077. * length is specified and is negative then
  9078. * the end of the removed portion will be that many elements from
  9079. * the end of the array. Tip: to remove everything from
  9080. * offset to the end of the array when
  9081. * replacement is also specified, use
  9082. * count($input) for
  9083. * length.
  9084. * </p>
  9085. * @param mixed $replacement [optional] <p>
  9086. * If replacement array is specified, then the
  9087. * removed elements are replaced with elements from this array.
  9088. * </p>
  9089. * <p>
  9090. * If offset and length
  9091. * are such that nothing is removed, then the elements from the
  9092. * replacement array are inserted in the place
  9093. * specified by the offset. Note that keys in
  9094. * replacement array are not preserved.
  9095. * </p>
  9096. * <p>
  9097. * If replacement is just one element it is
  9098. * not necessary to put array()
  9099. * around it, unless the element is an array itself.
  9100. * </p>
  9101. * @return array the array consisting of the extracted elements.
  9102. */
  9103. function array_splice (&$inputarray , $offset, $length = null, $replacement = null) {}
  9104. /**
  9105. * (PHP 4, PHP 5)<br/>
  9106. * Extract a slice of the array
  9107. * @link http://php.net/manual/en/function.array-slice.php
  9108. * @param array $array <p>
  9109. * The input array.
  9110. * </p>
  9111. * @param int $offset <p>
  9112. * If offset is non-negative, the sequence will
  9113. * start at that offset in the array. If
  9114. * offset is negative, the sequence will
  9115. * start that far from the end of the array.
  9116. * </p>
  9117. * @param int $length [optional] <p>
  9118. * If length is given and is positive, then
  9119. * the sequence will have that many elements in it. If
  9120. * length is given and is negative then the
  9121. * sequence will stop that many elements from the end of the
  9122. * array. If it is omitted, then the sequence will have everything
  9123. * from offset up until the end of the
  9124. * array.
  9125. * </p>
  9126. * @param bool $preserve_keys [optional] <p>
  9127. * Note that array_slice will reorder and reset the
  9128. * array indices by default. You can change this behaviour by setting
  9129. * preserve_keys to true.
  9130. * </p>
  9131. * @return array the slice.
  9132. */
  9133. function array_slice ($arrayarray , $offset, $length = null, $preserve_keys = null) {}
  9134. /**
  9135. * (PHP 4, PHP 5)<br/>
  9136. * Merge one or more arrays
  9137. * @link http://php.net/manual/en/function.array-merge.php
  9138. * @param array $array1 <p>
  9139. * Initial array to merge.
  9140. * </p>
  9141. * @param array $array2 [optional]
  9142. * @param array $_ [optional]
  9143. * @return array the resulting array.
  9144. */
  9145. function array_merge ($array1array , $array2 = nullarray , $_ = nullarray ) {}
  9146. /**
  9147. * (PHP 4 &gt;= 4.0.1, PHP 5)<br/>
  9148. * Merge two or more arrays recursively
  9149. * @link http://php.net/manual/en/function.array-merge-recursive.php
  9150. * @param array $array1 <p>
  9151. * Initial array to merge.
  9152. * </p>
  9153. * @param array $_ [optional]
  9154. * @return array An array of values resulted from merging the arguments together.
  9155. */
  9156. function array_merge_recursive ($array1array , $_ = nullarray ) {}
  9157. /**
  9158. * (PHP 5 &gt;= 5.3.0)<br/>
  9159. * Replaces elements from passed arrays into the first array
  9160. * @link http://php.net/manual/en/function.array-replace.php
  9161. * @param array $array <p>
  9162. * The array in which elements are replaced.
  9163. * </p>
  9164. * @param array $array1 <p>
  9165. * The array from which elements will be extracted.
  9166. * </p>
  9167. * @param array $array2 [optional]
  9168. * @param array $_ [optional]
  9169. * @return array an array, or &null; if an error occurs.
  9170. */
  9171. function array_replace (&$arrayarray , &$array1array , &$array2 = nullarray , &$_ = nullarray ) {}
  9172. /**
  9173. * (PHP 5 &gt;= 5.3.0)<br/>
  9174. * Replaces elements from passed arrays into the first array recursively
  9175. * @link http://php.net/manual/en/function.array-replace-recursive.php
  9176. * @param array $array <p>
  9177. * The array in which elements are replaced.
  9178. * </p>
  9179. * @param array $array1 <p>
  9180. * The array from which elements will be extracted.
  9181. * </p>
  9182. * @param array $array2 [optional]
  9183. * @param array $_ [optional]
  9184. * @return array an array, or &null; if an error occurs.
  9185. */
  9186. function array_replace_recursive (&$arrayarray , &$array1array , &$array2 = nullarray , &$_ = nullarray ) {}
  9187. /**
  9188. * (PHP 4, PHP 5)<br/>
  9189. * Return all the keys of an array
  9190. * @link http://php.net/manual/en/function.array-keys.php
  9191. * @param array $input <p>
  9192. * An array containing keys to return.
  9193. * </p>
  9194. * @param mixed $search_value [optional] <p>
  9195. * If specified, then only keys containing these values are returned.
  9196. * </p>
  9197. * @param bool $strict [optional] <p>
  9198. * Determines if strict comparison (===) should be used during the search.
  9199. * </p>
  9200. * @return array an array of all the keys in input.
  9201. */
  9202. function array_keys ($inputarray , $search_value = null, $strict = null) {}
  9203. /**
  9204. * (PHP 4, PHP 5)<br/>
  9205. * Return all the values of an array
  9206. * @link http://php.net/manual/en/function.array-values.php
  9207. * @param array $input <p>
  9208. * The array.
  9209. * </p>
  9210. * @return array an indexed array of values.
  9211. */
  9212. function array_values ($inputarray ) {}
  9213. /**
  9214. * (PHP 4, PHP 5)<br/>
  9215. * Counts all the values of an array
  9216. * @link http://php.net/manual/en/function.array-count-values.php
  9217. * @param array $input <p>
  9218. * The array of values to count
  9219. * </p>
  9220. * @return array an associative array of values from input as
  9221. * keys and their count as value.
  9222. */
  9223. function array_count_values ($inputarray ) {}
  9224. /**
  9225. * (PHP 4, PHP 5)<br/>
  9226. * Return an array with elements in reverse order
  9227. * @link http://php.net/manual/en/function.array-reverse.php
  9228. * @param array $array <p>
  9229. * The input array.
  9230. * </p>
  9231. * @param bool $preserve_keys [optional] <p>
  9232. * If set to true keys are preserved.
  9233. * </p>
  9234. * @return array the reversed array.
  9235. */
  9236. function array_reverse ($arrayarray , $preserve_keys = null) {}
  9237. /**
  9238. * (PHP 4 &gt;= 4.0.5, PHP 5)<br/>
  9239. * Iteratively reduce the array to a single value using a callback function
  9240. * @link http://php.net/manual/en/function.array-reduce.php
  9241. * @param array $input <p>
  9242. * The input array.
  9243. * </p>
  9244. * @param callback $function <p>
  9245. * The callback function.
  9246. * </p>
  9247. * @param int $initial [optional] <p>
  9248. * If the optional initial is available, it will
  9249. * be used at the beginning of the process, or as a final result in case
  9250. * the array is empty.
  9251. * </p>
  9252. * @return mixed the resulting value.
  9253. * </p>
  9254. * <p>
  9255. * If the array is empty and initial is not passed,
  9256. * array_reduce returns &null;.
  9257. */
  9258. function array_reduce ($inputarray , $function, $initial = null) {}
  9259. /**
  9260. * (PHP 4, PHP 5)<br/>
  9261. * Pad array to the specified length with a value
  9262. * @link http://php.net/manual/en/function.array-pad.php
  9263. * @param array $input <p>
  9264. * Initial array of values to pad.
  9265. * </p>
  9266. * @param int $pad_size <p>
  9267. * New size of the array.
  9268. * </p>
  9269. * @param mixed $pad_value <p>
  9270. * Value to pad if input is less than
  9271. * pad_size.
  9272. * </p>
  9273. * @return array a copy of the input padded to size specified
  9274. * by pad_size with value
  9275. * pad_value. If pad_size is
  9276. * positive then the array is padded on the right, if it's negative then
  9277. * on the left. If the absolute value of pad_size is less than or equal to
  9278. * the length of the input then no padding takes place.
  9279. */
  9280. function array_pad ($inputarray , $pad_size, $pad_value) {}
  9281. /**
  9282. * (PHP 4, PHP 5)<br/>
  9283. * Exchanges all keys with their associated values in an array
  9284. * @link http://php.net/manual/en/function.array-flip.php
  9285. * @param array $trans <p>
  9286. * An array of key/value pairs to be flipped.
  9287. * </p>
  9288. * @return array the flipped array on success and false on failure.
  9289. */
  9290. function array_flip ($transarray ) {}
  9291. /**
  9292. * (PHP 4 &gt;= 4.2.0, PHP 5)<br/>
  9293. * Changes all keys in an array
  9294. * @link http://php.net/manual/en/function.array-change-key-case.php
  9295. * @param array $input <p>
  9296. * The array to work on
  9297. * </p>
  9298. * @param int $case [optional] <p>
  9299. * Either CASE_UPPER or
  9300. * CASE_LOWER (default)
  9301. * </p>
  9302. * @return array an array with its keys lower or uppercased, or false if
  9303. * input is not an array.
  9304. */
  9305. function array_change_key_case ($inputarray , $case = null) {}
  9306. /**
  9307. * (PHP 4, PHP 5)<br/>
  9308. * Pick one or more random entries out of an array
  9309. * @link http://php.net/manual/en/function.array-rand.php
  9310. * @param array $input <p>
  9311. * The input array.
  9312. * </p>
  9313. * @param int $num_req [optional] <p>
  9314. * Specifies how many entries you want to pick.
  9315. * </p>
  9316. * @return mixed If you are picking only one entry, array_rand
  9317. * returns the key for a random entry. Otherwise, it returns an array
  9318. * of keys for the random entries. This is done so that you can pick
  9319. * random keys as well as values out of the array.
  9320. */
  9321. function array_rand ($inputarray , $num_req = null) {}
  9322. /**
  9323. * (PHP 4 &gt;= 4.0.1, PHP 5)<br/>
  9324. * Removes duplicate values from an array
  9325. * @link http://php.net/manual/en/function.array-unique.php
  9326. * @param array $array <p>
  9327. * The input array.
  9328. * </p>
  9329. * @param int $sort_flags [optional] <p>
  9330. * The optional second parameter sort_flags
  9331. * may be used to modify the sorting behavior using these values:
  9332. * </p>
  9333. * <p>
  9334. * Sorting type flags:
  9335. * SORT_REGULAR - compare items normally
  9336. * (don't change types)
  9337. * @return array the filtered array.
  9338. */
  9339. function array_unique ($arrayarray , $sort_flags = null) {}
  9340. /**
  9341. * (PHP 4 &gt;= 4.0.1, PHP 5)<br/>
  9342. * Computes the intersection of arrays
  9343. * @link http://php.net/manual/en/function.array-intersect.php
  9344. * @param array $array1 <p>
  9345. * The array with master values to check.
  9346. * </p>
  9347. * @param array $array2 <p>
  9348. * An array to compare values against.
  9349. * </p>
  9350. * @param array $_ [optional]
  9351. * @return array an array containing all of the values in
  9352. * array1 whose values exist in all of the parameters.
  9353. */
  9354. function array_intersect ($array1array , $array2array , $_ = nullarray ) {}
  9355. /**
  9356. * (PHP 5 &gt;= 5.1.0)<br/>
  9357. * Computes the intersection of arrays using keys for comparison
  9358. * @link http://php.net/manual/en/function.array-intersect-key.php
  9359. * @param array $array1 <p>
  9360. * The array with master keys to check.
  9361. * </p>
  9362. * @param array $array2 <p>
  9363. * An array to compare keys against.
  9364. * </p>
  9365. * @param array $_ [optional]
  9366. * @return array an associative array containing all the entries of
  9367. * array1 which have keys that are present in all
  9368. * arguments.
  9369. */
  9370. function array_intersect_key ($array1array , $array2array , $_ = nullarray ) {}
  9371. /**
  9372. * (PHP 5 &gt;= 5.1.0)<br/>
  9373. * Computes the intersection of arrays using a callback function on the keys for comparison
  9374. * @link http://php.net/manual/en/function.array-intersect-ukey.php
  9375. * @param array $array1 <p>
  9376. * Initial array for comparison of the arrays.
  9377. * </p>
  9378. * @param array $array2 <p>
  9379. * First array to compare keys against.
  9380. * </p>
  9381. * @param array $_ [optional]
  9382. * @param callback $key_compare_func <p>
  9383. * User supplied callback function to do the comparison.
  9384. * </p>
  9385. * @return array the values of array1 whose keys exist
  9386. * in all the arguments.
  9387. */
  9388. function array_intersect_ukey ($array1array , $array2array , $_ = nullarray , $key_compare_func) {}
  9389. /**
  9390. * (PHP 5)<br/>
  9391. * Computes the intersection of arrays, compares data by a callback function
  9392. * @link http://php.net/manual/en/function.array-uintersect.php
  9393. * @param array $array1 <p>
  9394. * The first array.
  9395. * </p>
  9396. * @param array $array2 <p>
  9397. * The second array.
  9398. * </p>
  9399. * @param array $_ [optional]
  9400. * @param callback $data_compare_func <p>
  9401. * The callback comparison function.
  9402. * </p>
  9403. * <p>
  9404. * The user supplied callback function is used for comparison.
  9405. * It must return an integer less than, equal to, or greater than zero if
  9406. * the first argument is considered to be respectively less than, equal
  9407. * to, or greater than the second.
  9408. * </p>
  9409. * @return array an array containing all the values of array1
  9410. * that are present in all the arguments.
  9411. */
  9412. function array_uintersect ($array1array , $array2array , $_ = nullarray , $data_compare_func) {}
  9413. /**
  9414. * (PHP 4 &gt;= 4.3.0, PHP 5)<br/>
  9415. * Computes the intersection of arrays with additional index check
  9416. * @link http://php.net/manual/en/function.array-intersect-assoc.php
  9417. * @param array $array1 <p>
  9418. * The array with master values to check.
  9419. * </p>
  9420. * @param array $array2 <p>
  9421. * An array to compare values against.
  9422. * </p>
  9423. * @param array $_ [optional]
  9424. * @return array an associative array containing all the values in
  9425. * array1 that are present in all of the arguments.
  9426. */
  9427. function array_intersect_assoc ($array1array , $array2array , $_ = nullarray ) {}
  9428. /**
  9429. * (PHP 5)<br/>
  9430. * Computes the intersection of arrays with additional index check, compares data by a callback function
  9431. * @link http://php.net/manual/en/function.array-uintersect-assoc.php
  9432. * @param array $array1 <p>
  9433. * The first array.
  9434. * </p>
  9435. * @param array $array2 <p>
  9436. * The second array.
  9437. * </p>
  9438. * @param array $_ [optional]
  9439. * @param callback $data_compare_func <p>
  9440. * For comparison is used the user supplied callback function.
  9441. * It must return an integer less than, equal
  9442. * to, or greater than zero if the first argument is considered to
  9443. * be respectively less than, equal to, or greater than the
  9444. * second.
  9445. * </p>
  9446. * @return array an array containing all the values of
  9447. * array1 that are present in all the arguments.
  9448. */
  9449. function array_uintersect_assoc ($array1array , $array2array , $_ = nullarray , $data_compare_func) {}
  9450. /**
  9451. * (PHP 5)<br/>
  9452. * Computes the intersection of arrays with additional index check, compares indexes by a callback function
  9453. * @link http://php.net/manual/en/function.array-intersect-uassoc.php
  9454. * @param array $array1 <p>
  9455. * Initial array for comparison of the arrays.
  9456. * </p>
  9457. * @param array $array2 <p>
  9458. * First array to compare keys against.
  9459. * </p>
  9460. * @param array $_ [optional]
  9461. * @param callback $key_compare_func <p>
  9462. * User supplied callback function to do the comparison.
  9463. * </p>
  9464. * @return array the values of array1 whose values exist
  9465. * in all of the arguments.
  9466. */
  9467. function array_intersect_uassoc ($array1array , $array2array , $_ = nullarray , $key_compare_func) {}
  9468. /**
  9469. * (PHP 5)<br/>
  9470. * Computes the intersection of arrays with additional index check, compares data and indexes by a callback functions
  9471. * @link http://php.net/manual/en/function.array-uintersect-uassoc.php
  9472. * @param array $array1 <p>
  9473. * The first array.
  9474. * </p>
  9475. * @param array $array2 <p>
  9476. * The second array.
  9477. * </p>
  9478. * @param array $_ [optional]
  9479. * @param callback $data_compare_func <p>
  9480. * For comparison is used the user supplied callback function.
  9481. * It must return an integer less than, equal
  9482. * to, or greater than zero if the first argument is considered to
  9483. * be respectively less than, equal to, or greater than the
  9484. * second.
  9485. * </p>
  9486. * @param callback $key_compare_func <p>
  9487. * Key comparison callback function.
  9488. * </p>
  9489. * @return array an array containing all the values of
  9490. * array1 that are present in all the arguments.
  9491. */
  9492. function array_uintersect_uassoc ($array1array , $array2array , $_ = nullarray , $data_compare_func, $key_compare_func) {}
  9493. /**
  9494. * (PHP 4 &gt;= 4.0.1, PHP 5)<br/>
  9495. * Computes the difference of arrays
  9496. * @link http://php.net/manual/en/function.array-diff.php
  9497. * @param array $array1 <p>
  9498. * The array to compare from
  9499. * </p>
  9500. * @param array $array2 <p>
  9501. * An array to compare against
  9502. * </p>
  9503. * @param array $_ [optional]
  9504. * @return array an array containing all the entries from
  9505. * array1 that are not present in any of the other arrays.
  9506. */
  9507. function array_diff ($array1array , $array2array , $_ = nullarray ) {}
  9508. /**
  9509. * (PHP 5 &gt;= 5.1.0)<br/>
  9510. * Computes the difference of arrays using keys for comparison
  9511. * @link http://php.net/manual/en/function.array-diff-key.php
  9512. * @param array $array1 <p>
  9513. * The array to compare from
  9514. * </p>
  9515. * @param array $array2 <p>
  9516. * An array to compare against
  9517. * </p>
  9518. * @param array $_ [optional]
  9519. * @return array an array containing all the entries from
  9520. * array1 whose keys are not present in any of the
  9521. * other arrays.
  9522. */
  9523. function array_diff_key ($array1array , $array2array , $_ = nullarray ) {}
  9524. /**
  9525. * (PHP 5 &gt;= 5.1.0)<br/>
  9526. * Computes the difference of arrays using a callback function on the keys for comparison
  9527. * @link http://php.net/manual/en/function.array-diff-ukey.php
  9528. * @param array $array1 <p>
  9529. * The array to compare from
  9530. * </p>
  9531. * @param array $array2 <p>
  9532. * An array to compare against
  9533. * </p>
  9534. * @param array $_ [optional]
  9535. * @param callback $key_compare_func <p>
  9536. * callback function to use.
  9537. * The callback function must return an integer less than, equal
  9538. * to, or greater than zero if the first argument is considered to
  9539. * be respectively less than, equal to, or greater than the second.
  9540. * </p>
  9541. * @return array an array containing all the entries from
  9542. * array1 that are not present in any of the other arrays.
  9543. */
  9544. function array_diff_ukey ($array1array , $array2array , $_ = nullarray , $key_compare_func) {}
  9545. /**
  9546. * (PHP 5)<br/>
  9547. * Computes the difference of arrays by using a callback function for data comparison
  9548. * @link http://php.net/manual/en/function.array-udiff.php
  9549. * @param array $array1 <p>
  9550. * The first array.
  9551. * </p>
  9552. * @param array $array2 <p>
  9553. * The second array.
  9554. * </p>
  9555. * @param array $_ [optional]
  9556. * @param callback $data_compare_func <p>
  9557. * The callback comparison function.
  9558. * </p>
  9559. * <p>
  9560. * The user supplied callback function is used for comparison.
  9561. * It must return an integer less than, equal to, or greater than zero if
  9562. * the first argument is considered to be respectively less than, equal
  9563. * to, or greater than the second.
  9564. * </p>
  9565. * @return array an array containing all the values of array1
  9566. * that are not present in any of the other arguments.
  9567. */
  9568. function array_udiff ($array1array , $array2array , $_ = nullarray , $data_compare_func) {}
  9569. /**
  9570. * (PHP 4 &gt;= 4.3.0, PHP 5)<br/>
  9571. * Computes the difference of arrays with additional index check
  9572. * @link http://php.net/manual/en/function.array-diff-assoc.php
  9573. * @param array $array1 <p>
  9574. * The array to compare from
  9575. * </p>
  9576. * @param array $array2 <p>
  9577. * An array to compare against
  9578. * </p>
  9579. * @param array $_ [optional]
  9580. * @return array an array containing all the values from
  9581. * array1 that are not present in any of the other arrays.
  9582. */
  9583. function array_diff_assoc ($array1array , $array2array , $_ = nullarray ) {}
  9584. /**
  9585. * (PHP 5)<br/>
  9586. * Computes the difference of arrays with additional index check, compares data by a callback function
  9587. * @link http://php.net/manual/en/function.array-udiff-assoc.php
  9588. * @param array $array1 <p>
  9589. * The first array.
  9590. * </p>
  9591. * @param array $array2 <p>
  9592. * The second array.
  9593. * </p>
  9594. * @param array $_ [optional]
  9595. * @param callback $data_compare_func <p>
  9596. * The callback comparison function.
  9597. * </p>
  9598. * <p>
  9599. * The user supplied callback function is used for comparison.
  9600. * It must return an integer less than, equal to, or greater than zero if
  9601. * the first argument is considered to be respectively less than, equal
  9602. * to, or greater than the second.
  9603. * </p>
  9604. * @return array array_udiff_assoc returns an array
  9605. * containing all the values from array1
  9606. * that are not present in any of the other arguments.
  9607. * Note that the keys are used in the comparison unlike
  9608. * array_diff and array_udiff.
  9609. * The comparison of arrays' data is performed by using an user-supplied
  9610. * callback. In this aspect the behaviour is opposite to the behaviour of
  9611. * array_diff_assoc which uses internal function for
  9612. * comparison.
  9613. */
  9614. function array_udiff_assoc ($array1array , $array2array , $_ = nullarray , $data_compare_func) {}
  9615. /**
  9616. * (PHP 5)<br/>
  9617. * Computes the difference of arrays with additional index check which is performed by a user supplied callback function
  9618. * @link http://php.net/manual/en/function.array-diff-uassoc.php
  9619. * @param array $array1 <p>
  9620. * The array to compare from
  9621. * </p>
  9622. * @param array $array2 <p>
  9623. * An array to compare against
  9624. * </p>
  9625. * @param array $_ [optional]
  9626. * @param callback $key_compare_func <p>
  9627. * callback function to use.
  9628. * The callback function must return an integer less than, equal
  9629. * to, or greater than zero if the first argument is considered to
  9630. * be respectively less than, equal to, or greater than the second.
  9631. * </p>
  9632. * @return array an array containing all the entries from
  9633. * array1 that are not present in any of the other arrays.
  9634. */
  9635. function array_diff_uassoc ($array1array , $array2array , $_ = nullarray , $key_compare_func) {}
  9636. /**
  9637. * (PHP 5)<br/>
  9638. * Computes the difference of arrays with additional index check, compares data and indexes by a callback function
  9639. * @link http://php.net/manual/en/function.array-udiff-uassoc.php
  9640. * @param array $array1 <p>
  9641. * The first array.
  9642. * </p>
  9643. * @param array $array2 <p>
  9644. * The second array.
  9645. * </p>
  9646. * @param array $_ [optional]
  9647. * @param callback $data_compare_func <p>
  9648. * The callback comparison function.
  9649. * </p>
  9650. * <p>
  9651. * The user supplied callback function is used for comparison.
  9652. * It must return an integer less than, equal to, or greater than zero if
  9653. * the first argument is considered to be respectively less than, equal
  9654. * to, or greater than the second.
  9655. * </p>
  9656. * <p>
  9657. * The comparison of arrays' data is performed by using an user-supplied
  9658. * callback : data_compare_func. In this aspect
  9659. * the behaviour is opposite to the behaviour of
  9660. * array_diff_assoc which uses internal function for
  9661. * comparison.
  9662. * </p>
  9663. * @param callback $key_compare_func <p>
  9664. * The comparison of keys (indices) is done also by the callback function
  9665. * key_compare_func. This behaviour is unlike what
  9666. * array_udiff_assoc does, since the latter compares
  9667. * the indices by using an internal function.
  9668. * </p>
  9669. * @return array an array containing all the values from
  9670. * array1 that are not present in any of the other
  9671. * arguments.
  9672. */
  9673. function array_udiff_uassoc ($array1array , $array2array , $_ = nullarray , $data_compare_func, $key_compare_func) {}
  9674. /**
  9675. * (PHP 4 &gt;= 4.0.4, PHP 5)<br/>
  9676. * Calculate the sum of values in an array
  9677. * @link http://php.net/manual/en/function.array-sum.php
  9678. * @param array $array <p>
  9679. * The input array.
  9680. * </p>
  9681. * @return number the sum of values as an integer or float.
  9682. */
  9683. function array_sum ($arrayarray ) {}
  9684. /**
  9685. * (PHP 5 &gt;= 5.1.0)<br/>
  9686. * Calculate the product of values in an array
  9687. * @link http://php.net/manual/en/function.array-product.php
  9688. * @param array $array <p>
  9689. * The array.
  9690. * </p>
  9691. * @return number the product as an integer or float.
  9692. */
  9693. function array_product ($arrayarray ) {}
  9694. /**
  9695. * (PHP 4 &gt;= 4.0.6, PHP 5)<br/>
  9696. * Filters elements of an array using a callback function
  9697. * @link http://php.net/manual/en/function.array-filter.php
  9698. * @param array $input <p>
  9699. * The array to iterate over
  9700. * </p>
  9701. * @param callback $callback [optional] <p>
  9702. * The callback function to use
  9703. * </p>
  9704. * <p>
  9705. * If no callback is supplied, all entries of
  9706. * input equal to false (see
  9707. * converting to
  9708. * boolean) will be removed.
  9709. * </p>
  9710. * @return array the filtered array.
  9711. */
  9712. function array_filter ($inputarray , $callback = null) {}
  9713. /**
  9714. * (PHP 4 &gt;= 4.0.6, PHP 5)<br/>
  9715. * Applies the callback to the elements of the given arrays
  9716. * @link http://php.net/manual/en/function.array-map.php
  9717. * @param callback $callback <p>
  9718. * Callback function to run for each element in each array.
  9719. * </p>
  9720. * @param array $arr1 <p>
  9721. * An array to run through the callback function.
  9722. * </p>
  9723. * @param array $_ [optional]
  9724. * @return array an array containing all the elements of arr1
  9725. * after applying the callback function to each one.
  9726. */
  9727. function array_map ($callback, $arr1array , $_ = nullarray ) {}
  9728. /**
  9729. * (PHP 4 &gt;= 4.2.0, PHP 5)<br/>
  9730. * Split an array into chunks
  9731. * @link http://php.net/manual/en/function.array-chunk.php
  9732. * @param array $input <p>
  9733. * The array to work on
  9734. * </p>
  9735. * @param int $size <p>
  9736. * The size of each chunk
  9737. * </p>
  9738. * @param bool $preserve_keys [optional] <p>
  9739. * When set to true keys will be preserved.
  9740. * Default is false which will reindex the chunk numerically
  9741. * </p>
  9742. * @return array a multidimensional numerically indexed array, starting with zero,
  9743. * with each dimension containing size elements.
  9744. */
  9745. function array_chunk ($inputarray , $size, $preserve_keys = null) {}
  9746. /**
  9747. * (PHP 5)<br/>
  9748. * Creates an array by using one array for keys and another for its values
  9749. * @link http://php.net/manual/en/function.array-combine.php
  9750. * @param array $keys <p>
  9751. * Array of keys to be used. Illegal values for key will be
  9752. * converted to string.
  9753. * </p>
  9754. * @param array $values <p>
  9755. * Array of values to be used
  9756. * </p>
  9757. * @return array the combined array, false if the number of elements
  9758. * for each array isn't equal or if the arrays are empty.
  9759. */
  9760. function array_combine ($keysarray , $valuesarray ) {}
  9761. /**
  9762. * (PHP 4 &gt;= 4.0.7, PHP 5)<br/>
  9763. * Checks if the given key or index exists in the array
  9764. * @link http://php.net/manual/en/function.array-key-exists.php
  9765. * @param mixed $key <p>
  9766. * Value to check.
  9767. * </p>
  9768. * @param array $search <p>
  9769. * An array with keys to check.
  9770. * </p>
  9771. * @return bool Returns true on success or false on failure.
  9772. */
  9773. function array_key_exists ($key, $searcharray ) {}
  9774. /**
  9775. * (PHP 4, PHP 5)<br/>
  9776. * &Alias; <function>current</function>
  9777. * @link http://php.net/manual/en/function.pos.php
  9778. * @param $arg
  9779. */
  9780. function pos (&$arg) {}
  9781. /**
  9782. * (PHP 4, PHP 5)<br/>
  9783. * &Alias; <function>count</function>
  9784. * @link http://php.net/manual/en/function.sizeof.php
  9785. * @param $var
  9786. * @param $mode [optional]
  9787. */
  9788. function sizeof ($var, $mode) {}
  9789. /**
  9790. * @param $key
  9791. * @param $search
  9792. */
  9793. function key_exists ($key, $search) {}
  9794. /**
  9795. * (PHP 4, PHP 5)<br/>
  9796. * Checks if assertion is &false;
  9797. * @link http://php.net/manual/en/function.assert.php
  9798. * @param mixed $assertion <p>
  9799. * The assertion.
  9800. * </p>
  9801. * @return bool false if the assertion is false, true otherwise.
  9802. */
  9803. function assert ($assertion) {}
  9804. /**
  9805. * (PHP 4, PHP 5)<br/>
  9806. * Set/get the various assert flags
  9807. * @link http://php.net/manual/en/function.assert-options.php
  9808. * @param int $what <p>
  9809. * <table>
  9810. * Assert Options
  9811. * <tr valign="top">
  9812. * <td>Option</td>
  9813. * <td>INI Setting</td>
  9814. * <td>Default value</td>
  9815. * <td>Description</td>
  9816. * </tr>
  9817. * <tr valign="top">
  9818. * <td>ASSERT_ACTIVE</td>
  9819. * <td>assert.active</td>
  9820. * <td>1</td>
  9821. * <td>enable assert evaluation</td>
  9822. * </tr>
  9823. * <tr valign="top">
  9824. * <td>ASSERT_WARNING</td>
  9825. * <td>assert.warning</td>
  9826. * <td>1</td>
  9827. * <td>issue a PHP warning for each failed assertion</td>
  9828. * </tr>
  9829. * <tr valign="top">
  9830. * <td>ASSERT_BAIL</td>
  9831. * <td>assert.bail</td>
  9832. * <td>0</td>
  9833. * <td>terminate execution on failed assertions</td>
  9834. * </tr>
  9835. * <tr valign="top">
  9836. * <td>ASSERT_QUIET_EVAL</td>
  9837. * <td>assert.quiet_eval</td>
  9838. * <td>0</td>
  9839. * <td>
  9840. * disable error_reporting during assertion expression
  9841. * evaluation
  9842. * </td>
  9843. * </tr>
  9844. * <tr valign="top">
  9845. * <td>ASSERT_CALLBACK</td>
  9846. * <td>assert.callback</td>
  9847. * <td)<&null;)</td>
  9848. * <td>Callback to call on failed assertions</td>
  9849. * </tr>
  9850. * </table>
  9851. * </p>
  9852. * @param mixed $value [optional] <p>
  9853. * An optional new value for the option.
  9854. * </p>
  9855. * @return mixed the original setting of any option or false on errors.
  9856. */
  9857. function assert_options ($what, $value = null) {}
  9858. /**
  9859. * (PHP 4 &gt;= 4.1.0, PHP 5)<br/>
  9860. * Compares two "PHP-standardized" version number strings
  9861. * @link http://php.net/manual/en/function.version-compare.php
  9862. * @param string $version1 <p>
  9863. * First version number.
  9864. * </p>
  9865. * @param string $version2 <p>
  9866. * Second version number.
  9867. * </p>
  9868. * @param string $operator [optional] <p>
  9869. * If you specify the third optional operator
  9870. * argument, you can test for a particular relationship. The
  9871. * possible operators are: &lt;,
  9872. * lt, &lt;=,
  9873. * le, &gt;,
  9874. * gt, &gt;=,
  9875. * ge, ==,
  9876. * =, eq,
  9877. * !=, &lt;&gt;,
  9878. * ne respectively.
  9879. * </p>
  9880. * <p>
  9881. * This parameter is case-sensitive, so values should be lowercase.
  9882. * </p>
  9883. * @return mixed By default, version_compare returns
  9884. * -1 if the first version is lower than the second,
  9885. * 0 if they are equal, and
  9886. * 1 if the second is lower.
  9887. * </p>
  9888. * <p>
  9889. * When using the optional operator argument, the
  9890. * function will return true if the relationship is the one specified
  9891. * by the operator, false otherwise.
  9892. */
  9893. function version_compare ($version1, $version2, $operator = null) {}
  9894. /**
  9895. * (PHP 4 &gt;= 4.2.0, PHP 5)<br/>
  9896. * Convert a pathname and a project identifier to a System V IPC key
  9897. * @link http://php.net/manual/en/function.ftok.php
  9898. * @param string $pathname <p>
  9899. * Path to an accessible file.
  9900. * </p>
  9901. * @param string $proj <p>
  9902. * Project identifier. This must be a one character string.
  9903. * </p>
  9904. * @return int On success the return value will be the created key value, otherwise
  9905. * -1 is returned.
  9906. */
  9907. function ftok ($pathname, $proj) {}
  9908. /**
  9909. * (PHP 4 &gt;= 4.2.0, PHP 5)<br/>
  9910. * Perform the rot13 transform on a string
  9911. * @link http://php.net/manual/en/function.str-rot13.php
  9912. * @param string $str <p>
  9913. * The input string.
  9914. * </p>
  9915. * @return string the ROT13 version of the given string.
  9916. */
  9917. function str_rot13 ($str) {}
  9918. /**
  9919. * (PHP 5)<br/>
  9920. * Retrieve list of registered filters
  9921. * @link http://php.net/manual/en/function.stream-get-filters.php
  9922. * @return array an indexed array containing the name of all stream filters
  9923. * available.
  9924. */
  9925. function stream_get_filters () {}
  9926. /**
  9927. * (PHP 5)<br/>
  9928. * Register a user defined stream filter
  9929. * @link http://php.net/manual/en/function.stream-filter-register.php
  9930. * @param string $filtername <p>
  9931. * The filter name to be registered.
  9932. * </p>
  9933. * @param string $classname <p>
  9934. * To implement a filter, you need to define a class as an extension of
  9935. * php_user_filter with a number of member functions
  9936. * as defined below. When performing read/write operations on the stream
  9937. * to which your filter is attached, PHP will pass the data through your
  9938. * filter (and any other filters attached to that stream) so that the
  9939. * data may be modified as desired. You must implement the methods
  9940. * exactly as described below - doing otherwise will lead to undefined
  9941. * behaviour.
  9942. * </p>
  9943. * intfilter
  9944. * resourcein
  9945. * resourceout
  9946. * intconsumed
  9947. * boolclosing
  9948. * <p>
  9949. * This method is called whenever data is read from or written to
  9950. * the attached stream (such as with fread or fwrite).
  9951. * in is a resource pointing to a bucket brigade
  9952. * which contains one or more bucket objects containing data to be filtered.
  9953. * out is a resource pointing to a second bucket brigade
  9954. * into which your modified buckets should be placed.
  9955. * consumed, which must always
  9956. * be declared by reference, should be incremented by the length of the data
  9957. * which your filter reads in and alters. In most cases this means you will
  9958. * increment consumed by $bucket->datalen
  9959. * for each $bucket. If the stream is in the process of closing
  9960. * (and therefore this is the last pass through the filterchain),
  9961. * the closing parameter will be set to true.
  9962. * The filter method must return one of
  9963. * three values upon completion.
  9964. * <tr valign="top">
  9965. * <td>Return Value</td>
  9966. * <td>Meaning</td>
  9967. * </tr>
  9968. * <tr valign="top">
  9969. * <td>PSFS_PASS_ON</td>
  9970. * <td>
  9971. * Filter processed successfully with data available in the
  9972. * out bucket brigade.
  9973. * </td>
  9974. * </tr>
  9975. * <tr valign="top">
  9976. * <td>PSFS_FEED_ME</td>
  9977. * <td>
  9978. * Filter processed successfully, however no data was available to
  9979. * return. More data is required from the stream or prior filter.
  9980. * </td>
  9981. * </tr>
  9982. * <tr valign="top">
  9983. * <td>PSFS_ERR_FATAL (default)</td>
  9984. * <td>
  9985. * The filter experienced an unrecoverable error and cannot continue.
  9986. * </td>
  9987. * </tr>
  9988. * </p>
  9989. * boolonCreate
  9990. * This method is called during instantiation of the filter class
  9991. * object. If your filter allocates or initializes any other resources
  9992. * (such as a buffer), this is the place to do it. Your implementation of
  9993. * this method should return false on failure, or true on success.
  9994. * When your filter is first instantiated, and
  9995. * yourfilter-&gt;onCreate() is called, a number of properties
  9996. * will be available as shown in the table below.
  9997. * <p>
  9998. * <tr valign="top">
  9999. * <td>Property</td>
  10000. * <td>Contents</td>
  10001. * </tr>
  10002. * <tr valign="top">
  10003. * <td>FilterClass-&gt;filtername</td>
  10004. * <td>
  10005. * A string containing the name the filter was instantiated with.
  10006. * Filters may be registered under multiple names or under wildcards.
  10007. * Use this property to determine which name was used.
  10008. * </td>
  10009. * </tr>
  10010. * <tr valign="top">
  10011. * <td>FilterClass-&gt;params</td>
  10012. * <td>
  10013. * The contents of the params parameter passed
  10014. * to stream_filter_append
  10015. * or stream_filter_prepend.
  10016. * </td>
  10017. * </tr>
  10018. * <tr valign="top">
  10019. * <td>FilterClass-&gt;stream</td>
  10020. * <td>
  10021. * The stream resource being filtered. Maybe available only during
  10022. * filter calls when the
  10023. * closing parameter is set to false.
  10024. * </td>
  10025. * </tr>
  10026. * </p>
  10027. * voidonClose
  10028. * <p>
  10029. * This method is called upon filter shutdown (typically, this is also
  10030. * during stream shutdown), and is executed after
  10031. * the flush method is called. If any resources
  10032. * were allocated or initialzed during onCreate()
  10033. * this would be the time to destroy or dispose of them.
  10034. * </p>
  10035. * @return bool Returns true on success or false on failure.
  10036. * </p>
  10037. * <p>
  10038. * stream_filter_register will return false if the
  10039. * filtername is already defined.
  10040. */
  10041. function stream_filter_register ($filtername, $classname) {}
  10042. /**
  10043. * (PHP 5)<br/>
  10044. * Return a bucket object from the brigade for operating on
  10045. * @link http://php.net/manual/en/function.stream-bucket-make-writeable.php
  10046. * @param resource $brigade
  10047. * @return object
  10048. */
  10049. function stream_bucket_make_writeable ($brigade) {}
  10050. /**
  10051. * (PHP 5)<br/>
  10052. * Prepend bucket to brigade
  10053. * @link http://php.net/manual/en/function.stream-bucket-prepend.php
  10054. * @param resource $brigade
  10055. * @param resource $bucket
  10056. * @return void
  10057. */
  10058. function stream_bucket_prepend ($brigade, $bucket) {}
  10059. /**
  10060. * (PHP 5)<br/>
  10061. * Append bucket to brigade
  10062. * @link http://php.net/manual/en/function.stream-bucket-append.php
  10063. * @param resource $brigade
  10064. * @param resource $bucket
  10065. * @return void
  10066. */
  10067. function stream_bucket_append ($brigade, $bucket) {}
  10068. /**
  10069. * (PHP 5)<br/>
  10070. * Create a new bucket for use on the current stream
  10071. * @link http://php.net/manual/en/function.stream-bucket-new.php
  10072. * @param resource $stream
  10073. * @param string $buffer
  10074. * @return object
  10075. */
  10076. function stream_bucket_new ($stream, $buffer) {}
  10077. /**
  10078. * (PHP 4 &gt;= 4.3.0, PHP 5)<br/>
  10079. * Add URL rewriter values
  10080. * @link http://php.net/manual/en/function.output-add-rewrite-var.php
  10081. * @param string $name <p>
  10082. * The variable name.
  10083. * </p>
  10084. * @param string $value <p>
  10085. * The variable value.
  10086. * </p>
  10087. * @return bool Returns true on success or false on failure.
  10088. */
  10089. function output_add_rewrite_var ($name, $value) {}
  10090. /**
  10091. * (PHP 4 &gt;= 4.3.0, PHP 5)<br/>
  10092. * Reset URL rewriter values
  10093. * @link http://php.net/manual/en/function.output-reset-rewrite-vars.php
  10094. * @return bool Returns true on success or false on failure.
  10095. */
  10096. function output_reset_rewrite_vars () {}
  10097. /**
  10098. * (PHP 5 &gt;= 5.2.1)<br/>
  10099. * Returns directory path used for temporary files
  10100. * @link http://php.net/manual/en/function.sys-get-temp-dir.php
  10101. * @return string the path of the temporary directory.
  10102. */
  10103. function sys_get_temp_dir () {}
  10104. define ('CONNECTION_ABORTED', 1);
  10105. define ('CONNECTION_NORMAL', 0);
  10106. define ('CONNECTION_TIMEOUT', 2);
  10107. define ('INI_USER', 1);
  10108. define ('INI_PERDIR', 2);
  10109. define ('INI_SYSTEM', 4);
  10110. define ('INI_ALL', 7);
  10111. /**
  10112. * Normal INI scanner mode (since PHP 5.3).
  10113. * @link http://php.net/manual/en/filesystem.constants.php
  10114. */
  10115. define ('INI_SCANNER_NORMAL', 0);
  10116. /**
  10117. * Raw INI scanner mode (since PHP 5.3).
  10118. * @link http://php.net/manual/en/filesystem.constants.php
  10119. */
  10120. define ('INI_SCANNER_RAW', 1);
  10121. define ('PHP_URL_SCHEME', 0);
  10122. define ('PHP_URL_HOST', 1);
  10123. define ('PHP_URL_PORT', 2);
  10124. define ('PHP_URL_USER', 3);
  10125. define ('PHP_URL_PASS', 4);
  10126. define ('PHP_URL_PATH', 5);
  10127. define ('PHP_URL_QUERY', 6);
  10128. define ('PHP_URL_FRAGMENT', 7);
  10129. define ('M_E', 2.718281828459);
  10130. define ('M_LOG2E', 1.442695040889);
  10131. define ('M_LOG10E', 0.43429448190325);
  10132. define ('M_LN2', 0.69314718055995);
  10133. define ('M_LN10', 2.302585092994);
  10134. /**
  10135. * Round halves up
  10136. * @link http://php.net/manual/en/math.constants.php
  10137. */
  10138. define ('M_PI', 3.1415926535898);
  10139. define ('M_PI_2', 1.5707963267949);
  10140. define ('M_PI_4', 0.78539816339745);
  10141. define ('M_1_PI', 0.31830988618379);
  10142. define ('M_2_PI', 0.63661977236758);
  10143. define ('M_SQRTPI', 1.7724538509055);
  10144. define ('M_2_SQRTPI', 1.1283791670955);
  10145. define ('M_LNPI', 1.1447298858494);
  10146. define ('M_EULER', 0.57721566490153);
  10147. define ('M_SQRT2', 1.4142135623731);
  10148. define ('M_SQRT1_2', 0.70710678118655);
  10149. define ('M_SQRT3', 1.7320508075689);
  10150. define ('INF', INF);
  10151. define ('NAN', NAN);
  10152. define ('PHP_ROUND_HALF_UP', 1);
  10153. /**
  10154. * Round halves down
  10155. * @link http://php.net/manual/en/math.constants.php
  10156. */
  10157. define ('PHP_ROUND_HALF_DOWN', 2);
  10158. /**
  10159. * Round halves to even numbers
  10160. * @link http://php.net/manual/en/math.constants.php
  10161. */
  10162. define ('PHP_ROUND_HALF_EVEN', 3);
  10163. /**
  10164. * Round halves to odd numbers
  10165. * @link http://php.net/manual/en/math.constants.php
  10166. */
  10167. define ('PHP_ROUND_HALF_ODD', 4);
  10168. define ('INFO_GENERAL', 1);
  10169. /**
  10170. * PHP Credits. See also phpcredits.
  10171. * @link http://php.net/manual/en/info.constants.php
  10172. */
  10173. define ('INFO_CREDITS', 2);
  10174. /**
  10175. * Current Local and Master values for PHP directives. See
  10176. * also ini_get.
  10177. * @link http://php.net/manual/en/info.constants.php
  10178. */
  10179. define ('INFO_CONFIGURATION', 4);
  10180. /**
  10181. * Loaded modules and their respective settings.
  10182. * @link http://php.net/manual/en/info.constants.php
  10183. */
  10184. define ('INFO_MODULES', 8);
  10185. /**
  10186. * Environment Variable information that's also available in
  10187. * $_ENV.
  10188. * @link http://php.net/manual/en/info.constants.php
  10189. */
  10190. define ('INFO_ENVIRONMENT', 16);
  10191. /**
  10192. * Shows all
  10193. * predefined variables from EGPCS (Environment, GET,
  10194. * POST, Cookie, Server).
  10195. * @link http://php.net/manual/en/info.constants.php
  10196. */
  10197. define ('INFO_VARIABLES', 32);
  10198. /**
  10199. * PHP License information. See also the license faq.
  10200. * @link http://php.net/manual/en/info.constants.php
  10201. */
  10202. define ('INFO_LICENSE', 64);
  10203. define ('INFO_ALL', 4294967295);
  10204. /**
  10205. * A list of the core developers
  10206. * @link http://php.net/manual/en/info.constants.php
  10207. */
  10208. define ('CREDITS_GROUP', 1);
  10209. /**
  10210. * General credits: Language design and concept, PHP
  10211. * authors and SAPI module.
  10212. * @link http://php.net/manual/en/info.constants.php
  10213. */
  10214. define ('CREDITS_GENERAL', 2);
  10215. /**
  10216. * A list of the server API modules for PHP, and their authors.
  10217. * @link http://php.net/manual/en/info.constants.php
  10218. */
  10219. define ('CREDITS_SAPI', 4);
  10220. /**
  10221. * A list of the extension modules for PHP, and their authors.
  10222. * @link http://php.net/manual/en/info.constants.php
  10223. */
  10224. define ('CREDITS_MODULES', 8);
  10225. /**
  10226. * The credits for the documentation team.
  10227. * @link http://php.net/manual/en/info.constants.php
  10228. */
  10229. define ('CREDITS_DOCS', 16);
  10230. /**
  10231. * Usually used in combination with the other flags. Indicates
  10232. * that a complete stand-alone HTML page needs to be
  10233. * printed including the information indicated by the other
  10234. * flags.
  10235. * @link http://php.net/manual/en/info.constants.php
  10236. */
  10237. define ('CREDITS_FULLPAGE', 32);
  10238. /**
  10239. * The credits for the quality assurance team.
  10240. * @link http://php.net/manual/en/info.constants.php
  10241. */
  10242. define ('CREDITS_QA', 64);
  10243. /**
  10244. * The configuration line, &php.ini; location, build date, Web
  10245. * Server, System and more.
  10246. * @link http://php.net/manual/en/info.constants.php
  10247. */
  10248. define ('CREDITS_ALL', 4294967295);
  10249. define ('HTML_SPECIALCHARS', 0);
  10250. define ('HTML_ENTITIES', 1);
  10251. define ('ENT_COMPAT', 2);
  10252. define ('ENT_QUOTES', 3);
  10253. define ('ENT_NOQUOTES', 0);
  10254. define ('ENT_IGNORE', 4);
  10255. define ('STR_PAD_LEFT', 0);
  10256. define ('STR_PAD_RIGHT', 1);
  10257. define ('STR_PAD_BOTH', 2);
  10258. define ('PATHINFO_DIRNAME', 1);
  10259. define ('PATHINFO_BASENAME', 2);
  10260. define ('PATHINFO_EXTENSION', 4);
  10261. /**
  10262. * Since PHP 5.2.0.
  10263. * @link http://php.net/manual/en/filesystem.constants.php
  10264. */
  10265. define ('PATHINFO_FILENAME', 8);
  10266. define ('CHAR_MAX', 127);
  10267. define ('LC_CTYPE', 0);
  10268. define ('LC_NUMERIC', 1);
  10269. define ('LC_TIME', 2);
  10270. define ('LC_COLLATE', 3);
  10271. define ('LC_MONETARY', 4);
  10272. define ('LC_ALL', 6);
  10273. define ('LC_MESSAGES', 5);
  10274. define ('SEEK_SET', 0);
  10275. define ('SEEK_CUR', 1);
  10276. define ('SEEK_END', 2);
  10277. define ('LOCK_SH', 1);
  10278. define ('LOCK_EX', 2);
  10279. define ('LOCK_UN', 3);
  10280. define ('LOCK_NB', 4);
  10281. /**
  10282. * A connection with an external resource has been established.
  10283. * @link http://php.net/manual/en/stream.constants.php
  10284. */
  10285. define ('STREAM_NOTIFY_CONNECT', 2);
  10286. /**
  10287. * Additional authorization is required to access the specified resource.
  10288. * Typical issued with severity level of
  10289. * STREAM_NOTIFY_SEVERITY_ERR.
  10290. * @link http://php.net/manual/en/stream.constants.php
  10291. */
  10292. define ('STREAM_NOTIFY_AUTH_REQUIRED', 3);
  10293. /**
  10294. * Authorization has been completed (with or without success).
  10295. * @link http://php.net/manual/en/stream.constants.php
  10296. */
  10297. define ('STREAM_NOTIFY_AUTH_RESULT', 10);
  10298. /**
  10299. * The mime-type of resource has been identified,
  10300. * refer to message for a description of the
  10301. * discovered type.
  10302. * @link http://php.net/manual/en/stream.constants.php
  10303. */
  10304. define ('STREAM_NOTIFY_MIME_TYPE_IS', 4);
  10305. /**
  10306. * The size of the resource has been discovered.
  10307. * @link http://php.net/manual/en/stream.constants.php
  10308. */
  10309. define ('STREAM_NOTIFY_FILE_SIZE_IS', 5);
  10310. /**
  10311. * The external resource has redirected the stream to an alternate
  10312. * location. Refer to message.
  10313. * @link http://php.net/manual/en/stream.constants.php
  10314. */
  10315. define ('STREAM_NOTIFY_REDIRECTED', 6);
  10316. /**
  10317. * Indicates current progress of the stream transfer in
  10318. * bytes_transferred and possibly
  10319. * bytes_max as well.
  10320. * @link http://php.net/manual/en/stream.constants.php
  10321. */
  10322. define ('STREAM_NOTIFY_PROGRESS', 7);
  10323. /**
  10324. * A generic error occurred on the stream, consult
  10325. * message and message_code
  10326. * for details.
  10327. * @link http://php.net/manual/en/stream.constants.php
  10328. */
  10329. define ('STREAM_NOTIFY_FAILURE', 9);
  10330. /**
  10331. * There is no more data available on the stream.
  10332. * @link http://php.net/manual/en/stream.constants.php
  10333. */
  10334. define ('STREAM_NOTIFY_COMPLETED', 8);
  10335. /**
  10336. * A remote address required for this stream has been resolved, or the resolution
  10337. * failed. See severity for an indication of which happened.
  10338. * @link http://php.net/manual/en/stream.constants.php
  10339. */
  10340. define ('STREAM_NOTIFY_RESOLVE', 1);
  10341. /**
  10342. * Normal, non-error related, notification.
  10343. * @link http://php.net/manual/en/stream.constants.php
  10344. */
  10345. define ('STREAM_NOTIFY_SEVERITY_INFO', 0);
  10346. /**
  10347. * Non critical error condition. Processing may continue.
  10348. * @link http://php.net/manual/en/stream.constants.php
  10349. */
  10350. define ('STREAM_NOTIFY_SEVERITY_WARN', 1);
  10351. /**
  10352. * A critical error occurred. Processing cannot continue.
  10353. * @link http://php.net/manual/en/stream.constants.php
  10354. */
  10355. define ('STREAM_NOTIFY_SEVERITY_ERR', 2);
  10356. /**
  10357. * Used with stream_filter_append and
  10358. * stream_filter_prepend to indicate
  10359. * that the specified filter should only be applied when
  10360. * reading
  10361. * @link http://php.net/manual/en/stream.constants.php
  10362. */
  10363. define ('STREAM_FILTER_READ', 1);
  10364. /**
  10365. * Used with stream_filter_append and
  10366. * stream_filter_prepend to indicate
  10367. * that the specified filter should only be applied when
  10368. * writing
  10369. * @link http://php.net/manual/en/stream.constants.php
  10370. */
  10371. define ('STREAM_FILTER_WRITE', 2);
  10372. /**
  10373. * This constant is equivalent to
  10374. * STREAM_FILTER_READ | STREAM_FILTER_WRITE
  10375. * @link http://php.net/manual/en/stream.constants.php
  10376. */
  10377. define ('STREAM_FILTER_ALL', 3);
  10378. /**
  10379. * Client socket opened with stream_socket_client
  10380. * should remain persistent between page loads.
  10381. * @link http://php.net/manual/en/stream.constants.php
  10382. */
  10383. define ('STREAM_CLIENT_PERSISTENT', 1);
  10384. /**
  10385. * Open client socket asynchronously. This option must be used
  10386. * together with the STREAM_CLIENT_CONNECT flag.
  10387. * Used with stream_socket_client.
  10388. * @link http://php.net/manual/en/stream.constants.php
  10389. */
  10390. define ('STREAM_CLIENT_ASYNC_CONNECT', 2);
  10391. /**
  10392. * Open client socket connection. Client sockets should always
  10393. * include this flag. Used with stream_socket_client.
  10394. * @link http://php.net/manual/en/stream.constants.php
  10395. */
  10396. define ('STREAM_CLIENT_CONNECT', 4);
  10397. define ('STREAM_CRYPTO_METHOD_SSLv2_CLIENT', 0);
  10398. define ('STREAM_CRYPTO_METHOD_SSLv3_CLIENT', 1);
  10399. define ('STREAM_CRYPTO_METHOD_SSLv23_CLIENT', 2);
  10400. define ('STREAM_CRYPTO_METHOD_TLS_CLIENT', 3);
  10401. define ('STREAM_CRYPTO_METHOD_SSLv2_SERVER', 4);
  10402. define ('STREAM_CRYPTO_METHOD_SSLv3_SERVER', 5);
  10403. define ('STREAM_CRYPTO_METHOD_SSLv23_SERVER', 6);
  10404. define ('STREAM_CRYPTO_METHOD_TLS_SERVER', 7);
  10405. /**
  10406. * Used with stream_socket_shutdown to disable
  10407. * further receptions. Added in PHP 5.2.1.
  10408. * @link http://php.net/manual/en/stream.constants.php
  10409. */
  10410. define ('STREAM_SHUT_RD', 0);
  10411. /**
  10412. * Used with stream_socket_shutdown to disable
  10413. * further transmissions. Added in PHP 5.2.1.
  10414. * @link http://php.net/manual/en/stream.constants.php
  10415. */
  10416. define ('STREAM_SHUT_WR', 1);
  10417. /**
  10418. * Used with stream_socket_shutdown to disable
  10419. * further receptions and transmissions. Added in PHP 5.2.1.
  10420. * @link http://php.net/manual/en/stream.constants.php
  10421. */
  10422. define ('STREAM_SHUT_RDWR', 2);
  10423. /**
  10424. * Internet Protocol Version 4 (IPv4).
  10425. * @link http://php.net/manual/en/stream.constants.php
  10426. */
  10427. define ('STREAM_PF_INET', 2);
  10428. /**
  10429. * Internet Protocol Version 6 (IPv6).
  10430. * @link http://php.net/manual/en/stream.constants.php
  10431. */
  10432. define ('STREAM_PF_INET6', 10);
  10433. /**
  10434. * Unix system internal protocols.
  10435. * @link http://php.net/manual/en/stream.constants.php
  10436. */
  10437. define ('STREAM_PF_UNIX', 1);
  10438. /**
  10439. * Provides a IP socket.
  10440. * @link http://php.net/manual/en/stream.constants.php
  10441. */
  10442. define ('STREAM_IPPROTO_IP', 0);
  10443. /**
  10444. * Provides a TCP socket.
  10445. * @link http://php.net/manual/en/stream.constants.php
  10446. */
  10447. define ('STREAM_IPPROTO_TCP', 6);
  10448. /**
  10449. * Provides a UDP socket.
  10450. * @link http://php.net/manual/en/stream.constants.php
  10451. */
  10452. define ('STREAM_IPPROTO_UDP', 17);
  10453. /**
  10454. * Provides a ICMP socket.
  10455. * @link http://php.net/manual/en/stream.constants.php
  10456. */
  10457. define ('STREAM_IPPROTO_ICMP', 1);
  10458. /**
  10459. * Provides a RAW socket.
  10460. * @link http://php.net/manual/en/stream.constants.php
  10461. */
  10462. define ('STREAM_IPPROTO_RAW', 255);
  10463. /**
  10464. * Provides sequenced, two-way byte streams with a transmission mechanism
  10465. * for out-of-band data (TCP, for example).
  10466. * @link http://php.net/manual/en/stream.constants.php
  10467. */
  10468. define ('STREAM_SOCK_STREAM', 1);
  10469. /**
  10470. * Provides datagrams, which are connectionless messages (UDP, for
  10471. * example).
  10472. * @link http://php.net/manual/en/stream.constants.php
  10473. */
  10474. define ('STREAM_SOCK_DGRAM', 2);
  10475. /**
  10476. * Provides a raw socket, which provides access to internal network
  10477. * protocols and interfaces. Usually this type of socket is just available
  10478. * to the root user.
  10479. * @link http://php.net/manual/en/stream.constants.php
  10480. */
  10481. define ('STREAM_SOCK_RAW', 3);
  10482. /**
  10483. * Provides a sequenced packet stream socket.
  10484. * @link http://php.net/manual/en/stream.constants.php
  10485. */
  10486. define ('STREAM_SOCK_SEQPACKET', 5);
  10487. /**
  10488. * Provides a RDM (Reliably-delivered messages) socket.
  10489. * @link http://php.net/manual/en/stream.constants.php
  10490. */
  10491. define ('STREAM_SOCK_RDM', 4);
  10492. define ('STREAM_PEEK', 2);
  10493. define ('STREAM_OOB', 1);
  10494. /**
  10495. * Tells a stream created with stream_socket_server
  10496. * to bind to the specified target. Server sockets should always include this flag.
  10497. * @link http://php.net/manual/en/stream.constants.php
  10498. */
  10499. define ('STREAM_SERVER_BIND', 4);
  10500. /**
  10501. * Tells a stream created with stream_socket_server
  10502. * and bound using the STREAM_SERVER_BIND flag to start
  10503. * listening on the socket. Connection-orientated transports (such as TCP)
  10504. * must use this flag, otherwise the server socket will not be enabled.
  10505. * Using this flag for connect-less transports (such as UDP) is an error.
  10506. * @link http://php.net/manual/en/stream.constants.php
  10507. */
  10508. define ('STREAM_SERVER_LISTEN', 8);
  10509. /**
  10510. * Search for filename in
  10511. * include_path (since PHP 5).
  10512. * @link http://php.net/manual/en/filesystem.constants.php
  10513. */
  10514. define ('FILE_USE_INCLUDE_PATH', 1);
  10515. /**
  10516. * Strip EOL characters (since PHP 5).
  10517. * @link http://php.net/manual/en/filesystem.constants.php
  10518. */
  10519. define ('FILE_IGNORE_NEW_LINES', 2);
  10520. /**
  10521. * Skip empty lines (since PHP 5).
  10522. * @link http://php.net/manual/en/filesystem.constants.php
  10523. */
  10524. define ('FILE_SKIP_EMPTY_LINES', 4);
  10525. /**
  10526. * Append content to existing file.
  10527. * @link http://php.net/manual/en/filesystem.constants.php
  10528. */
  10529. define ('FILE_APPEND', 8);
  10530. define ('FILE_NO_DEFAULT_CONTEXT', 16);
  10531. /**
  10532. * <p>
  10533. * Text mode (since PHP 5.2.7).
  10534. * <p>
  10535. * This constant has no effect prior to PHP 6. It is only available for
  10536. * forward compatibility.
  10537. * </p>
  10538. * </p>
  10539. * @link http://php.net/manual/en/filesystem.constants.php
  10540. */
  10541. define ('FILE_TEXT', 0);
  10542. /**
  10543. * <p>
  10544. * Binary mode (since PHP 5.2.7).
  10545. * <p>
  10546. * This constant has no effect prior to PHP 6. It is only available for
  10547. * forward compatibility.
  10548. * </p>
  10549. * </p>
  10550. * @link http://php.net/manual/en/filesystem.constants.php
  10551. */
  10552. define ('FILE_BINARY', 0);
  10553. /**
  10554. * Disable backslash escaping.
  10555. * @link http://php.net/manual/en/filesystem.constants.php
  10556. */
  10557. define ('FNM_NOESCAPE', 2);
  10558. /**
  10559. * Slash in string only matches slash in the given pattern.
  10560. * @link http://php.net/manual/en/filesystem.constants.php
  10561. */
  10562. define ('FNM_PATHNAME', 1);
  10563. /**
  10564. * Leading period in string must be exactly matched by period in the given pattern.
  10565. * @link http://php.net/manual/en/filesystem.constants.php
  10566. */
  10567. define ('FNM_PERIOD', 4);
  10568. /**
  10569. * Caseless match. Part of the GNU extension.
  10570. * @link http://php.net/manual/en/filesystem.constants.php
  10571. */
  10572. define ('FNM_CASEFOLD', 16);
  10573. /**
  10574. * Return Code indicating that the
  10575. * userspace filter returned buckets in $out.
  10576. * @link http://php.net/manual/en/stream.constants.php
  10577. */
  10578. define ('PSFS_PASS_ON', 2);
  10579. /**
  10580. * Return Code indicating that the
  10581. * userspace filter did not return buckets in $out
  10582. * (i.e. No data available).
  10583. * @link http://php.net/manual/en/stream.constants.php
  10584. */
  10585. define ('PSFS_FEED_ME', 1);
  10586. /**
  10587. * Return Code indicating that the
  10588. * userspace filter encountered an unrecoverable error
  10589. * (i.e. Invalid data received).
  10590. * @link http://php.net/manual/en/stream.constants.php
  10591. */
  10592. define ('PSFS_ERR_FATAL', 0);
  10593. /**
  10594. * Regular read/write.
  10595. * @link http://php.net/manual/en/stream.constants.php
  10596. */
  10597. define ('PSFS_FLAG_NORMAL', 0);
  10598. /**
  10599. * An incremental flush.
  10600. * @link http://php.net/manual/en/stream.constants.php
  10601. */
  10602. define ('PSFS_FLAG_FLUSH_INC', 1);
  10603. /**
  10604. * Final flush prior to closing.
  10605. * @link http://php.net/manual/en/stream.constants.php
  10606. */
  10607. define ('PSFS_FLAG_FLUSH_CLOSE', 2);
  10608. define ('ABDAY_1', 131072);
  10609. define ('ABDAY_2', 131073);
  10610. define ('ABDAY_3', 131074);
  10611. define ('ABDAY_4', 131075);
  10612. define ('ABDAY_5', 131076);
  10613. define ('ABDAY_6', 131077);
  10614. define ('ABDAY_7', 131078);
  10615. define ('DAY_1', 131079);
  10616. define ('DAY_2', 131080);
  10617. define ('DAY_3', 131081);
  10618. define ('DAY_4', 131082);
  10619. define ('DAY_5', 131083);
  10620. define ('DAY_6', 131084);
  10621. define ('DAY_7', 131085);
  10622. define ('ABMON_1', 131086);
  10623. define ('ABMON_2', 131087);
  10624. define ('ABMON_3', 131088);
  10625. define ('ABMON_4', 131089);
  10626. define ('ABMON_5', 131090);
  10627. define ('ABMON_6', 131091);
  10628. define ('ABMON_7', 131092);
  10629. define ('ABMON_8', 131093);
  10630. define ('ABMON_9', 131094);
  10631. define ('ABMON_10', 131095);
  10632. define ('ABMON_11', 131096);
  10633. define ('ABMON_12', 131097);
  10634. define ('MON_1', 131098);
  10635. define ('MON_2', 131099);
  10636. define ('MON_3', 131100);
  10637. define ('MON_4', 131101);
  10638. define ('MON_5', 131102);
  10639. define ('MON_6', 131103);
  10640. define ('MON_7', 131104);
  10641. define ('MON_8', 131105);
  10642. define ('MON_9', 131106);
  10643. define ('MON_10', 131107);
  10644. define ('MON_11', 131108);
  10645. define ('MON_12', 131109);
  10646. define ('AM_STR', 131110);
  10647. define ('PM_STR', 131111);
  10648. define ('D_T_FMT', 131112);
  10649. define ('D_FMT', 131113);
  10650. define ('T_FMT', 131114);
  10651. define ('T_FMT_AMPM', 131115);
  10652. define ('ERA', 131116);
  10653. define ('ERA_D_T_FMT', 131120);
  10654. define ('ERA_D_FMT', 131118);
  10655. define ('ERA_T_FMT', 131121);
  10656. define ('ALT_DIGITS', 131119);
  10657. define ('CRNCYSTR', 262159);
  10658. define ('RADIXCHAR', 65536);
  10659. define ('THOUSEP', 65537);
  10660. define ('YESEXPR', 327680);
  10661. define ('NOEXPR', 327681);
  10662. define ('CODESET', 14);
  10663. define ('CRYPT_SALT_LENGTH', 123);
  10664. define ('CRYPT_STD_DES', 1);
  10665. define ('CRYPT_EXT_DES', 1);
  10666. define ('CRYPT_MD5', 1);
  10667. define ('CRYPT_BLOWFISH', 1);
  10668. define ('CRYPT_SHA256', 1);
  10669. define ('CRYPT_SHA512', 1);
  10670. define ('DIRECTORY_SEPARATOR', "/");
  10671. define ('PATH_SEPARATOR', ":");
  10672. define ('GLOB_BRACE', 1024);
  10673. define ('GLOB_MARK', 2);
  10674. define ('GLOB_NOSORT', 4);
  10675. define ('GLOB_NOCHECK', 16);
  10676. define ('GLOB_NOESCAPE', 64);
  10677. define ('GLOB_ERR', 1);
  10678. define ('GLOB_ONLYDIR', 8192);
  10679. define ('GLOB_AVAILABLE_FLAGS', 9303);
  10680. define ('EXTR_OVERWRITE', 0);
  10681. define ('EXTR_SKIP', 1);
  10682. define ('EXTR_PREFIX_SAME', 2);
  10683. define ('EXTR_PREFIX_ALL', 3);
  10684. define ('EXTR_PREFIX_INVALID', 4);
  10685. define ('EXTR_PREFIX_IF_EXISTS', 5);
  10686. define ('EXTR_IF_EXISTS', 6);
  10687. define ('EXTR_REFS', 256);
  10688. /**
  10689. * SORT_ASC is used with
  10690. * array_multisort to sort in ascending order.
  10691. * @link http://php.net/manual/en/array.constants.php
  10692. */
  10693. define ('SORT_ASC', 4);
  10694. /**
  10695. * SORT_DESC is used with
  10696. * array_multisort to sort in descending order.
  10697. * @link http://php.net/manual/en/array.constants.php
  10698. */
  10699. define ('SORT_DESC', 3);
  10700. /**
  10701. * SORT_REGULAR is used to compare items normally.
  10702. * @link http://php.net/manual/en/array.constants.php
  10703. */
  10704. define ('SORT_REGULAR', 0);
  10705. /**
  10706. * SORT_NUMERIC is used to compare items numerically.
  10707. * @link http://php.net/manual/en/array.constants.php
  10708. */
  10709. define ('SORT_NUMERIC', 1);
  10710. /**
  10711. * SORT_STRING is used to compare items as strings.
  10712. * @link http://php.net/manual/en/array.constants.php
  10713. */
  10714. define ('SORT_STRING', 2);
  10715. /**
  10716. * SORT_LOCALE_STRING is used to compare items as
  10717. * strings, based on the current locale. Added in PHP 4.4.0 and 5.0.2.
  10718. * @link http://php.net/manual/en/array.constants.php
  10719. */
  10720. define ('SORT_LOCALE_STRING', 5);
  10721. /**
  10722. * CASE_LOWER is used with
  10723. * array_change_key_case and is used to convert array
  10724. * keys to lower case. This is also the default case for
  10725. * array_change_key_case.
  10726. * @link http://php.net/manual/en/array.constants.php
  10727. */
  10728. define ('CASE_LOWER', 0);
  10729. /**
  10730. * CASE_UPPER is used with
  10731. * array_change_key_case and is used to convert array
  10732. * keys to upper case.
  10733. * @link http://php.net/manual/en/array.constants.php
  10734. */
  10735. define ('CASE_UPPER', 1);
  10736. define ('COUNT_NORMAL', 0);
  10737. define ('COUNT_RECURSIVE', 1);
  10738. define ('ASSERT_ACTIVE', 1);
  10739. define ('ASSERT_CALLBACK', 2);
  10740. define ('ASSERT_BAIL', 3);
  10741. define ('ASSERT_WARNING', 4);
  10742. define ('ASSERT_QUIET_EVAL', 5);
  10743. /**
  10744. * Flag indicating if the stream
  10745. * used the include path.
  10746. * @link http://php.net/manual/en/stream.constants.php
  10747. */
  10748. define ('STREAM_USE_PATH', 1);
  10749. define ('STREAM_IGNORE_URL', 2);
  10750. define ('STREAM_ENFORCE_SAFE_MODE', 4);
  10751. /**
  10752. * Flag indicating if the wrapper
  10753. * is responsible for raising errors using trigger_error
  10754. * during opening of the stream. If this flag is not set, you
  10755. * should not raise any errors.
  10756. * @link http://php.net/manual/en/stream.constants.php
  10757. */
  10758. define ('STREAM_REPORT_ERRORS', 8);
  10759. /**
  10760. * This flag is useful when your extension really must be able to randomly
  10761. * seek around in a stream. Some streams may not be seekable in their
  10762. * native form, so this flag asks the streams API to check to see if the
  10763. * stream does support seeking. If it does not, it will copy the stream
  10764. * into temporary storage (which may be a temporary file or a memory
  10765. * stream) which does support seeking.
  10766. * Please note that this flag is not useful when you want to seek the
  10767. * stream and write to it, because the stream you are accessing might
  10768. * not be bound to the actual resource you requested.
  10769. * If the requested resource is network based, this flag will cause the
  10770. * opener to block until the whole contents have been downloaded.
  10771. * @link http://php.net/manual/en/internals2.ze1.streams.constants.php
  10772. */
  10773. define ('STREAM_MUST_SEEK', 16);
  10774. define ('STREAM_URL_STAT_LINK', 1);
  10775. define ('STREAM_URL_STAT_QUIET', 2);
  10776. define ('STREAM_MKDIR_RECURSIVE', 1);
  10777. define ('STREAM_IS_URL', 1);
  10778. define ('STREAM_OPTION_BLOCKING', 1);
  10779. define ('STREAM_OPTION_READ_TIMEOUT', 4);
  10780. define ('STREAM_OPTION_READ_BUFFER', 2);
  10781. define ('STREAM_OPTION_WRITE_BUFFER', 3);
  10782. define ('STREAM_BUFFER_NONE', 0);
  10783. define ('STREAM_BUFFER_LINE', 1);
  10784. define ('STREAM_BUFFER_FULL', 2);
  10785. /**
  10786. * Stream casting, when stream_cast is called
  10787. * otherwise (see above).
  10788. * @link http://php.net/manual/en/stream.constants.php
  10789. */
  10790. define ('STREAM_CAST_AS_STREAM', 0);
  10791. /**
  10792. * Stream casting, for when stream_select is
  10793. * calling stream_cast.
  10794. * @link http://php.net/manual/en/stream.constants.php
  10795. */
  10796. define ('STREAM_CAST_FOR_SELECT', 3);
  10797. /**
  10798. * Image type constant used by the
  10799. * image_type_to_mime_type and
  10800. * image_type_to_extension functions.
  10801. * @link http://php.net/manual/en/image.constants.php
  10802. */
  10803. define ('IMAGETYPE_GIF', 1);
  10804. /**
  10805. * Image type constant used by the
  10806. * image_type_to_mime_type and
  10807. * image_type_to_extension functions.
  10808. * @link http://php.net/manual/en/image.constants.php
  10809. */
  10810. define ('IMAGETYPE_JPEG', 2);
  10811. /**
  10812. * Image type constant used by the
  10813. * image_type_to_mime_type and
  10814. * image_type_to_extension functions.
  10815. * @link http://php.net/manual/en/image.constants.php
  10816. */
  10817. define ('IMAGETYPE_PNG', 3);
  10818. /**
  10819. * Image type constant used by the
  10820. * image_type_to_mime_type and
  10821. * image_type_to_extension functions.
  10822. * @link http://php.net/manual/en/image.constants.php
  10823. */
  10824. define ('IMAGETYPE_SWF', 4);
  10825. /**
  10826. * Image type constant used by the
  10827. * image_type_to_mime_type and
  10828. * image_type_to_extension functions.
  10829. * @link http://php.net/manual/en/image.constants.php
  10830. */
  10831. define ('IMAGETYPE_PSD', 5);
  10832. /**
  10833. * Image type constant used by the
  10834. * image_type_to_mime_type and
  10835. * image_type_to_extension functions.
  10836. * @link http://php.net/manual/en/image.constants.php
  10837. */
  10838. define ('IMAGETYPE_BMP', 6);
  10839. /**
  10840. * Image type constant used by the
  10841. * image_type_to_mime_type and
  10842. * image_type_to_extension functions.
  10843. * @link http://php.net/manual/en/image.constants.php
  10844. */
  10845. define ('IMAGETYPE_TIFF_II', 7);
  10846. /**
  10847. * Image type constant used by the
  10848. * image_type_to_mime_type and
  10849. * image_type_to_extension functions.
  10850. * @link http://php.net/manual/en/image.constants.php
  10851. */
  10852. define ('IMAGETYPE_TIFF_MM', 8);
  10853. /**
  10854. * Image type constant used by the
  10855. * image_type_to_mime_type and
  10856. * image_type_to_extension functions.
  10857. * @link http://php.net/manual/en/image.constants.php
  10858. */
  10859. define ('IMAGETYPE_JPC', 9);
  10860. /**
  10861. * Image type constant used by the
  10862. * image_type_to_mime_type and
  10863. * image_type_to_extension functions.
  10864. * @link http://php.net/manual/en/image.constants.php
  10865. */
  10866. define ('IMAGETYPE_JP2', 10);
  10867. /**
  10868. * Image type constant used by the
  10869. * image_type_to_mime_type and
  10870. * image_type_to_extension functions.
  10871. * @link http://php.net/manual/en/image.constants.php
  10872. */
  10873. define ('IMAGETYPE_JPX', 11);
  10874. /**
  10875. * Image type constant used by the
  10876. * image_type_to_mime_type and
  10877. * image_type_to_extension functions.
  10878. * @link http://php.net/manual/en/image.constants.php
  10879. */
  10880. define ('IMAGETYPE_JB2', 12);
  10881. /**
  10882. * Image type constant used by the
  10883. * image_type_to_mime_type and
  10884. * image_type_to_extension functions.
  10885. * @link http://php.net/manual/en/image.constants.php
  10886. */
  10887. define ('IMAGETYPE_SWC', 13);
  10888. /**
  10889. * Image type constant used by the
  10890. * image_type_to_mime_type and
  10891. * image_type_to_extension functions.
  10892. * @link http://php.net/manual/en/image.constants.php
  10893. */
  10894. define ('IMAGETYPE_IFF', 14);
  10895. /**
  10896. * Image type constant used by the
  10897. * image_type_to_mime_type and
  10898. * image_type_to_extension functions.
  10899. * @link http://php.net/manual/en/image.constants.php
  10900. */
  10901. define ('IMAGETYPE_WBMP', 15);
  10902. /**
  10903. * Image type constant used by the
  10904. * image_type_to_mime_type and
  10905. * image_type_to_extension functions.
  10906. * @link http://php.net/manual/en/image.constants.php
  10907. */
  10908. define ('IMAGETYPE_JPEG2000', 9);
  10909. /**
  10910. * Image type constant used by the
  10911. * image_type_to_mime_type and
  10912. * image_type_to_extension functions.
  10913. * @link http://php.net/manual/en/image.constants.php
  10914. */
  10915. define ('IMAGETYPE_XBM', 16);
  10916. /**
  10917. * Image type constant used by the
  10918. * image_type_to_mime_type and
  10919. * image_type_to_extension functions.
  10920. * (Available as of PHP 5.3.0)
  10921. * @link http://php.net/manual/en/image.constants.php
  10922. */
  10923. define ('IMAGETYPE_ICO', 17);
  10924. define ('IMAGETYPE_UNKNOWN', 0);
  10925. define ('IMAGETYPE_COUNT', 18);
  10926. /**
  10927. * IPv4 Address Resource
  10928. * @link http://php.net/manual/en/network.constants.php
  10929. */
  10930. define ('DNS_A', 1);
  10931. /**
  10932. * Authoritative Name Server Resource
  10933. * @link http://php.net/manual/en/network.constants.php
  10934. */
  10935. define ('DNS_NS', 2);
  10936. /**
  10937. * Alias (Canonical Name) Resource
  10938. * @link http://php.net/manual/en/network.constants.php
  10939. */
  10940. define ('DNS_CNAME', 16);
  10941. /**
  10942. * Start of Authority Resource
  10943. * @link http://php.net/manual/en/network.constants.php
  10944. */
  10945. define ('DNS_SOA', 32);
  10946. /**
  10947. * Pointer Resource
  10948. * @link http://php.net/manual/en/network.constants.php
  10949. */
  10950. define ('DNS_PTR', 2048);
  10951. /**
  10952. * Host Info Resource (See IANA's
  10953. * Operating System Names
  10954. * for the meaning of these values)
  10955. * @link http://php.net/manual/en/network.constants.php
  10956. */
  10957. define ('DNS_HINFO', 4096);
  10958. /**
  10959. * Mail Exchanger Resource
  10960. * @link http://php.net/manual/en/network.constants.php
  10961. */
  10962. define ('DNS_MX', 16384);
  10963. /**
  10964. * Text Resource
  10965. * @link http://php.net/manual/en/network.constants.php
  10966. */
  10967. define ('DNS_TXT', 32768);
  10968. define ('DNS_SRV', 33554432);
  10969. define ('DNS_NAPTR', 67108864);
  10970. /**
  10971. * IPv6 Address Resource
  10972. * @link http://php.net/manual/en/network.constants.php
  10973. */
  10974. define ('DNS_AAAA', 134217728);
  10975. define ('DNS_A6', 16777216);
  10976. /**
  10977. * Any Resource Record. On most systems
  10978. * this returns all resource records, however
  10979. * it should not be counted upon for critical
  10980. * uses. Try DNS_ALL instead.
  10981. * @link http://php.net/manual/en/network.constants.php
  10982. */
  10983. define ('DNS_ANY', 268435456);
  10984. /**
  10985. * Iteratively query the name server for
  10986. * each available record type.
  10987. * @link http://php.net/manual/en/network.constants.php
  10988. */
  10989. define ('DNS_ALL', 251713587);
  10990. // End of standard v.5.3.2-0.dotdeb.1
  10991. ?>