PageRenderTime 76ms CodeModel.GetById 31ms RepoModel.GetById 1ms app.codeStats 0ms

/stubs/standard_0.php

http://github.com/nnmatveev/php-stubs
PHP | 1061 lines | 57 code | 56 blank | 948 comment | 0 complexity | 9e9bebf234d50d85c9b7150b4e823437 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, array &$imageinfo = null) {}
  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. * Note that only the first call to strtok uses the string argument.
  990. * Every subsequent call to strtok only needs the token to use, as it keeps track of where it is in the current string.
  991. * To start over, or to tokenize a new string you simply call strtok with the string argument again to initialize it.
  992. * Note that you may put multiple tokens in the token parameter.
  993. * The string will be tokenized when any one of the characters in the argument are found.
  994. * @link http://php.net/manual/en/function.strtok.php
  995. * @param string $str [optional] <p>
  996. * The string being split up into smaller strings (tokens).
  997. * </p>
  998. * @param string $token <p>
  999. * The delimiter used when splitting up str.
  1000. * </p>
  1001. * @return string A string token.
  1002. */
  1003. function strtok ($str = null, $token) {}
  1004. // End of standard v.5.3.1-0.dotdeb.1
  1005. ?>