PageRenderTime 73ms CodeModel.GetById 58ms app.highlight 7ms RepoModel.GetById 1ms app.codeStats 1ms

/stubs/standard_4.php

http://github.com/nnmatveev/php-stubs
PHP | 1082 lines | 54 code | 52 blank | 976 comment | 0 complexity | 9c880018d0f0b28c9bb74ddfe71f1c9e MD5 | raw file
   1<?php
   2
   3/**
   4 * (PHP 5 &gt;= 5.2.0)<br/>
   5 * Get the last occurred error
   6 * @link http://php.net/manual/en/function.error-get-last.php
   7 * @return array an associative array describing the last error with keys "type",
   8 * "message", "file" and "line". Returns &null; if there hasn't been an error
   9 * yet.
  10 */
  11function error_get_last () {}
  12
  13/**
  14 * (PHP 4, PHP 5)<br/>
  15 * Call a user function given by the first parameter
  16 * @link http://php.net/manual/en/function.call-user-func.php
  17 * @param callback $function <p>
  18 * The function to be called. Class methods may also be invoked
  19 * statically using this function by passing
  20 * array($classname, $methodname) to this parameter.
  21 * Additionally class methods of an object instance may be called by passing
  22 * array($objectinstance, $methodname) to this parameter.
  23 * </p>
  24 * @param mixed $parameter [optional] <p>
  25 * Zero or more parameters to be passed to the function.
  26 * </p>
  27 * <p>
  28 * Note that the parameters for call_user_func are
  29 * not passed by reference.
  30 * call_user_func example and references
  31 * ]]>
  32 * &example.outputs;
  33 * </p>
  34 * @param mixed $_ [optional] 
  35 * @return mixed the function result, or false on error.
  36 */
  37function call_user_func ($function, $parameter = null, $_ = null) {}
  38
  39/**
  40 * (PHP 4 &gt;= 4.0.4, PHP 5)<br/>
  41 * Call a user function given with an array of parameters
  42 * @link http://php.net/manual/en/function.call-user-func-array.php
  43 * @param callback $function <p>
  44 * The function to be called.
  45 * </p>
  46 * @param array $param_arr <p>
  47 * The parameters to be passed to the function, as an indexed array.
  48 * </p>
  49 * @return mixed the function result, or false on error.
  50 */
  51function call_user_func_array ($function, array $param_arr) {}
  52
  53/**
  54 * (PHP 4, PHP 5)<br/>
  55 * Call a user method on an specific object
  56 * @link http://php.net/manual/en/function.call-user-method.php
  57 * @deprecated since 5.3.0, use call_user_func() instead
  58 * @param string $method_name
  59 * @param object $obj 
  60 * @param mixed $parameter [optional] 
  61 * @param mixed $_ [optional] 
  62 * @return mixed 
  63 */
  64function call_user_method ($method_name, &$obj, $parameter = null, $_ = null) {}
  65
  66/**
  67 * (PHP 4 &gt;= 4.0.5, PHP 5)<br/>
  68 * Call a user method given with an array of parameters
  69 * @link http://php.net/manual/en/function.call-user-method-array.php
  70 * @deprecated since 5.3.0, use call_user_func_array() instead
  71 * @param string $method_name
  72 * @param object $obj 
  73 * @param array $params 
  74 * @return mixed 
  75 */
  76function call_user_method_array ($method_name, &$obj, array $params) {}
  77
  78/**
  79 * (PHP 5 &gt;= 5.3.0)<br/>
  80 * Call a static method
  81 * @link http://php.net/manual/en/function.forward-static-call.php
  82 * @param callback $function <p>
  83 * The function or method to be called. This parameter may be an array,
  84 * with the name of the class, and the method, or a string, with a function
  85 * name.
  86 * </p>
  87 * @param mixed $parameter [optional] <p>
  88 * Zero or more parameters to be passed to the function.
  89 * </p>
  90 * @param mixed $_ [optional] 
  91 * @return mixed the function result, or false on error.
  92 */
  93function forward_static_call ($function, $parameter = null, $_ = null) {}
  94
  95/**
  96 * (PHP 5 &gt;= 5.3.0)<br/>
  97 * Call a static method and pass the arguments as array
  98 * @link http://php.net/manual/en/function.forward-static-call-array.php
  99 * @param callback $function <p>
 100 * The function or method to be called. This parameter may be an &array;,
 101 * with the name of the class, and the method, or a &string;, with a function
 102 * name.
 103 * </p>
 104 * @param array $parameters [optional] 
 105 * @return mixed the function result, or false on error.
 106 */
 107function forward_static_call_array ($function, array $parameters = null) {}
 108
 109/**
 110 * (PHP 4, PHP 5)<br/>
 111 * Generates a storable representation of a value
 112 * @link http://php.net/manual/en/function.serialize.php
 113 * @param mixed $value <p>
 114 * The value to be serialized. serialize
 115 * handles all types, except the resource-type.
 116 * You can even serialize arrays that contain
 117 * references to itself. Circular references inside the array/object you 
 118 * are serializing will also be stored. Any other 
 119 * reference will be lost.
 120 * </p>
 121 * <p>
 122 * When serializing objects, PHP will attempt to call the member function
 123 * __sleep prior to serialization. 
 124 * This is to allow the object to do any last minute clean-up, etc. prior 
 125 * to being serialized. Likewise, when the object is restored using 
 126 * unserialize the __wakeup member function is called.
 127 * </p>
 128 * <p>
 129 * Object's private members have the class name prepended to the member
 130 * name; protected members have a '*' prepended to the member name.
 131 * These prepended values have null bytes on either side.
 132 * </p>
 133 * @return string a string containing a byte-stream representation of 
 134 * value that can be stored anywhere.
 135 */
 136function serialize ($value) {}
 137
 138/**
 139 * (PHP 4, PHP 5)<br/>
 140 * Creates a PHP value from a stored representation
 141 * @link http://php.net/manual/en/function.unserialize.php
 142 * @param string $str <p>
 143 * The serialized string.
 144 * </p>
 145 * <p>
 146 * If the variable being unserialized is an object, after successfully 
 147 * reconstructing the object PHP will automatically attempt to call the
 148 * __wakeup member function (if it exists).
 149 * </p>
 150 * <p>
 151 * unserialize_callback_func directive
 152 * <p>
 153 * It's possible to set a callback-function which will be called,
 154 * if an undefined class should be instantiated during unserializing.
 155 * (to prevent getting an incomplete object "__PHP_Incomplete_Class".)
 156 * Use your &php.ini;, ini_set or &htaccess; 
 157 * to define 'unserialize_callback_func'. Everytime an undefined class
 158 * should be instantiated, it'll be called. To disable this feature just
 159 * empty this setting.
 160 * </p>
 161 * </p>
 162 * @return mixed The converted value is returned, and can be a boolean,
 163 * integer, float, string,
 164 * array or object.
 165 * </p>
 166 * <p>
 167 * In case the passed string is not unserializeable, false is returned and
 168 * E_NOTICE is issued.
 169 */
 170function unserialize ($str) {}
 171
 172/**
 173 * (PHP 4, PHP 5)<br/>
 174 * Dumps information about a variable
 175 * @link http://php.net/manual/en/function.var-dump.php
 176 * @param mixed $expression <p>
 177 * The variable you want to export.
 178 * </p>
 179 * @param mixed $expression [optional] 
 180 * @return void 
 181 */
 182function var_dump ($expression, $expression = null) {}
 183
 184/**
 185 * (PHP 4 &gt;= 4.2.0, PHP 5)<br/>
 186 * Outputs or returns a parsable string representation of a variable
 187 * @link http://php.net/manual/en/function.var-export.php
 188 * @param mixed $expression <p>
 189 * The variable you want to export.
 190 * </p>
 191 * @param bool $return [optional] <p>
 192 * If used and set to true, var_export will return
 193 * the variable representation instead of outputing it.
 194 * </p>
 195 * &note.uses-ob;
 196 * @return mixed the variable representation when the return 
 197 * parameter is used and evaluates to true. Otherwise, this function will
 198 * return &null;.
 199 */
 200function var_export ($expression, $return = null) {}
 201
 202/**
 203 * (PHP 4 &gt;= 4.2.0, PHP 5)<br/>
 204 * Dumps a string representation of an internal zend value to output
 205 * @link http://php.net/manual/en/function.debug-zval-dump.php
 206 * @param mixed $variable <p>
 207 * The variable being evaluated.
 208 * </p>
 209 * @return void 
 210 */
 211function debug_zval_dump ($variable) {}
 212
 213/**
 214 * (PHP 4, PHP 5)<br/>
 215 * Prints human-readable information about a variable
 216 * @link http://php.net/manual/en/function.print-r.php
 217 * @param mixed $expression <p>
 218 * The expression to be printed.
 219 * </p>
 220 * @param bool $return [optional] <p>
 221 * If you would like to capture the output of print_r, 
 222 * use the return parameter. If this parameter is set
 223 * to true, print_r will return its output, instead of
 224 * printing it (which it does by default).
 225 * </p>
 226 * @return mixed If given a string, integer or float,
 227 * the value itself will be printed. If given an array, values
 228 * will be presented in a format that shows keys and elements. Similar
 229 * notation is used for objects.
 230 */
 231function print_r ($expression, $return = null) {}
 232
 233/**
 234 * (PHP 4 &gt;= 4.3.2, PHP 5)<br/>
 235 * Returns the amount of memory allocated to PHP
 236 * @link http://php.net/manual/en/function.memory-get-usage.php
 237 * @param bool $real_usage [optional] <p>
 238 * Set this to true to get the real size of memory allocated from
 239 * system. If not set or false only the memory used by
 240 * emalloc() is reported.
 241 * </p>
 242 * @return int the memory amount in bytes.
 243 */
 244function memory_get_usage ($real_usage = null) {}
 245
 246/**
 247 * (PHP 5 &gt;= 5.2.0)<br/>
 248 * Returns the peak of memory allocated by PHP
 249 * @link http://php.net/manual/en/function.memory-get-peak-usage.php
 250 * @param bool $real_usage [optional] <p>
 251 * Set this to true to get the real size of memory allocated from
 252 * system. If not set or false only the memory used by
 253 * emalloc() is reported.
 254 * </p>
 255 * @return int the memory peak in bytes.
 256 */
 257function memory_get_peak_usage ($real_usage = null) {}
 258
 259/**
 260 * (PHP 4, PHP 5)<br/>
 261 * Register a function for execution on shutdown
 262 * @link http://php.net/manual/en/function.register-shutdown-function.php
 263 * @param callback $function <p>
 264 * The shutdown function to register.
 265 * </p>
 266 * <p>
 267 * The shutdown functions are called as the part of the request so that 
 268 * it's possible to send the output from them. There is currently no way
 269 * to process the data with output buffering functions in the shutdown
 270 * function.
 271 * </p>
 272 * <p>
 273 * Shutdown functions are called after closing all opened output buffers
 274 * thus, for example, its output will not be compressed if zlib.output_compression is
 275 * enabled.
 276 * </p>
 277 * @param mixed $parameter [optional] <p>
 278 * It is possible to pass parameters to the shutdown function by passing
 279 * additional parameters.
 280 * </p>
 281 * @param mixed $_ [optional] 
 282 * @return void 
 283 */
 284function register_shutdown_function ($function, $parameter = null, $_ = null) {}
 285
 286/**
 287 * (PHP 4 &gt;= 4.0.3, PHP 5)<br/>
 288 * Register a function for execution on each tick
 289 * @link http://php.net/manual/en/function.register-tick-function.php
 290 * @param callback $function <p>
 291 * The function name as a string, or an array consisting of an object and
 292 * a method.
 293 * </p>
 294 * @param mixed $arg [optional] <p>
 295 * </p>
 296 * @param mixed $_ [optional] 
 297 * @return bool Returns true on success or false on failure.
 298 */
 299function register_tick_function ($function, $arg = null, $_ = null) {}
 300
 301/**
 302 * (PHP 4 &gt;= 4.0.3, PHP 5)<br/>
 303 * De-register a function for execution on each tick
 304 * @link http://php.net/manual/en/function.unregister-tick-function.php
 305 * @param string $function_name <p>
 306 * The function name, as a string.
 307 * </p>
 308 * @return void 
 309 */
 310function unregister_tick_function ($function_name) {}
 311
 312/**
 313 * (PHP 4, PHP 5)<br/>
 314 * Syntax highlighting of a file
 315 * @link http://php.net/manual/en/function.highlight-file.php
 316 * @param string $filename <p>
 317 * Path to the PHP file to be highlighted.
 318 * </p>
 319 * @param bool $return [optional] <p>
 320 * Set this parameter to true to make this function return the
 321 * highlighted code.
 322 * </p>
 323 * @return mixed If return is set to true, returns the highlighted
 324 * code as a string instead of printing it out. Otherwise, it will return
 325 * true on success, false on failure.
 326 */
 327function highlight_file ($filename, $return = null) {}
 328
 329/**
 330 * (PHP 4, PHP 5)<br/>
 331 * &Alias; <function>highlight_file</function>
 332 * @link http://php.net/manual/en/function.show-source.php
 333 * @param $file_name
 334 * @param $return [optional]
 335 */
 336function show_source ($file_name, $return) {}
 337
 338/**
 339 * (PHP 4, PHP 5)<br/>
 340 * Syntax highlighting of a string
 341 * @link http://php.net/manual/en/function.highlight-string.php
 342 * @param string $str <p>
 343 * The PHP code to be highlighted. This should include the opening tag.
 344 * </p>
 345 * @param bool $return [optional] <p>
 346 * Set this parameter to true to make this function return the
 347 * highlighted code.
 348 * </p>
 349 * @return mixed If return is set to true, returns the highlighted
 350 * code as a string instead of printing it out. Otherwise, it will return
 351 * true on success, false on failure.
 352 */
 353function highlight_string ($str, $return = null) {}
 354
 355/**
 356 * (PHP 5)<br/>
 357 * Return source with stripped comments and whitespace
 358 * @link http://php.net/manual/en/function.php-strip-whitespace.php
 359 * @param string $filename <p>
 360 * Path to the PHP file.
 361 * </p>
 362 * @return string The stripped source code will be returned on success, or an empty string
 363 * on failure.
 364 * </p>
 365 * <p>
 366 * This function works as described as of PHP 5.0.1. Before this it would
 367 * only return an empty string. For more information on this bug and its
 368 * prior behavior, see bug report
 369 * #29606.
 370 */
 371function php_strip_whitespace ($filename) {}
 372
 373/**
 374 * (PHP 4, PHP 5)<br/>
 375 * Gets the value of a configuration option
 376 * @link http://php.net/manual/en/function.ini-get.php
 377 * @param string $varname <p>
 378 * The configuration option name.
 379 * </p>
 380 * @return string the value of the configuration option as a string on success, or
 381 * an empty string on failure or for null values.
 382 */
 383function ini_get ($varname) {}
 384
 385/**
 386 * (PHP 4 &gt;= 4.2.0, PHP 5)<br/>
 387 * Gets all configuration options
 388 * @link http://php.net/manual/en/function.ini-get-all.php
 389 * @param string $extension [optional] <p>
 390 * An optional extension name. If set, the function return only options
 391 * specific for that extension.
 392 * </p>
 393 * @param bool $details [optional] <p>
 394 * Retrieve details settings or only the current value for each setting.
 395 * Default is true (retrieve details).
 396 * </p>
 397 * @return array an associative array with directive name as the array key.
 398 * </p>
 399 * <p>
 400 * When details is true (default) the array will
 401 * contain global_value (set in
 402 * &php.ini;), local_value (perhaps set with
 403 * ini_set or &htaccess;), and
 404 * access (the access level).
 405 * </p>
 406 * <p>
 407 * When details is false the value will be the
 408 * current value of the option.
 409 * </p>
 410 * <p>
 411 * See the manual section
 412 * for information on what access levels mean.
 413 * </p>
 414 * <p>
 415 * It's possible for a directive to have multiple access levels, which is
 416 * why access shows the appropriate bitmask values.
 417 */
 418function ini_get_all ($extension = null, $details = null) {}
 419
 420/**
 421 * (PHP 4, PHP 5)<br/>
 422 * Sets the value of a configuration option
 423 * @link http://php.net/manual/en/function.ini-set.php
 424 * @param string $varname <p>
 425 * </p>
 426 * <p>
 427 * Not all the available options can be changed using
 428 * ini_set. There is a list of all available options
 429 * in the appendix.
 430 * </p>
 431 * @param string $newvalue <p>
 432 * The new value for the option.
 433 * </p>
 434 * @return string the old value on success, false on failure.
 435 */
 436function ini_set ($varname, $newvalue) {}
 437
 438/**
 439 * (PHP 4, PHP 5)<br/>
 440 * &Alias; <function>ini_set</function>
 441 * @link http://php.net/manual/en/function.ini-alter.php
 442 * @param $varname
 443 * @param $newvalue
 444 */
 445function ini_alter ($varname, $newvalue) {}
 446
 447/**
 448 * (PHP 4, PHP 5)<br/>
 449 * Restores the value of a configuration option
 450 * @link http://php.net/manual/en/function.ini-restore.php
 451 * @param string $varname <p>
 452 * The configuration option name.
 453 * </p>
 454 * @return void 
 455 */
 456function ini_restore ($varname) {}
 457
 458/**
 459 * (PHP 4 &gt;= 4.3.0, PHP 5)<br/>
 460 * Gets the current include_path configuration option
 461 * @link http://php.net/manual/en/function.get-include-path.php
 462 * @return string the path, as a string.
 463 */
 464function get_include_path () {}
 465
 466/**
 467 * (PHP 4 &gt;= 4.3.0, PHP 5)<br/>
 468 * Sets the include_path configuration option
 469 * @link http://php.net/manual/en/function.set-include-path.php
 470 * @param string $new_include_path <p>
 471 * The new value for the include_path
 472 * </p>
 473 * @return string the old include_path on
 474 * success&return.falseforfailure;.
 475 */
 476function set_include_path ($new_include_path) {}
 477
 478/**
 479 * (PHP 4 &gt;= 4.3.0, PHP 5)<br/>
 480 * Restores the value of the include_path configuration option
 481 * @link http://php.net/manual/en/function.restore-include-path.php
 482 * @return void 
 483 */
 484function restore_include_path () {}
 485
 486/**
 487 * (PHP 4, PHP 5)<br/>
 488 * Send a cookie
 489 * @link http://php.net/manual/en/function.setcookie.php
 490 * @param string $name <p>
 491 * The name of the cookie.
 492 * </p>
 493 * @param string $value [optional] <p>
 494 * The value of the cookie. This value is stored on the clients
 495 * computer; do not store sensitive information.
 496 * Assuming the name is 'cookiename', this
 497 * value is retrieved through $_COOKIE['cookiename']
 498 * </p>
 499 * @param int $expire [optional] <p>
 500 * The time the cookie expires. This is a Unix timestamp so is
 501 * in number of seconds since the epoch. In other words, you'll
 502 * most likely set this with the time function
 503 * plus the number of seconds before you want it to expire. Or
 504 * you might use mktime.
 505 * time()+60*60*24*30 will set the cookie to
 506 * expire in 30 days. If set to 0, or omitted, the cookie will expire at
 507 * the end of the session (when the browser closes).
 508 * </p>
 509 * <p>
 510 * <p>
 511 * You may notice the expire parameter takes on a
 512 * Unix timestamp, as opposed to the date format Wdy, DD-Mon-YYYY
 513 * HH:MM:SS GMT, this is because PHP does this conversion
 514 * internally.
 515 * </p>
 516 * <p>
 517 * expire is compared to the client's time which can
 518 * differ from server's time.
 519 * </p>
 520 * </p>
 521 * @param string $path [optional] <p>
 522 * The path on the server in which the cookie will be available on.
 523 * If set to '/', the cookie will be available
 524 * within the entire domain. If set to
 525 * '/foo/', the cookie will only be available
 526 * within the /foo/ directory and all
 527 * sub-directories such as /foo/bar/ of
 528 * domain. The default value is the
 529 * current directory that the cookie is being set in.
 530 * </p>
 531 * @param string $domain [optional] <p>
 532 * The domain that the cookie is available.
 533 * To make the cookie available on all subdomains of example.com
 534 * then you'd set it to '.example.com'. The
 535 * . is not required but makes it compatible
 536 * with more browsers. Setting it to www.example.com
 537 * will make the cookie only available in the www
 538 * subdomain. Refer to tail matching in the
 539 * spec for details.
 540 * </p>
 541 * @param bool $secure [optional] <p>
 542 * Indicates that the cookie should only be transmitted over a
 543 * secure HTTPS connection from the client. When set to true, the
 544 * cookie will only be set if a secure connection exists.
 545 * On the server-side, it's on the programmer to send this
 546 * kind of cookie only on secure connection (e.g. with respect to
 547 * $_SERVER["HTTPS"]).
 548 * </p>
 549 * @param bool $httponly [optional] <p>
 550 * When true the cookie will be made accessible only through the HTTP
 551 * protocol. This means that the cookie won't be accessible by
 552 * scripting languages, such as JavaScript. This setting can effectively
 553 * help to reduce identity theft through XSS attacks (although it is
 554 * not supported by all browsers). Added in PHP 5.2.0.
 555 * true or false
 556 * </p>
 557 * @return bool If output exists prior to calling this function,
 558 * setcookie will fail and return false. If
 559 * setcookie successfully runs, it will return true.
 560 * This does not indicate whether the user accepted the cookie.
 561 */
 562function setcookie ($name, $value = null, $expire = null, $path = null, $domain = null, $secure = null, $httponly = null) {}
 563
 564/**
 565 * (PHP 5)<br/>
 566 * Send a cookie without urlencoding the cookie value
 567 * @link http://php.net/manual/en/function.setrawcookie.php
 568 * @param string $name 
 569 * @param string $value [optional] 
 570 * @param int $expire [optional] 
 571 * @param string $path [optional] 
 572 * @param string $domain [optional] 
 573 * @param bool $secure [optional] 
 574 * @param bool $httponly [optional] 
 575 * @return bool Returns true on success or false on failure.
 576 */
 577function setrawcookie ($name, $value = null, $expire = null, $path = null, $domain = null, $secure = null, $httponly = null) {}
 578
 579/**
 580 * (PHP 4, PHP 5)<br/>
 581 * Send a raw HTTP header
 582 * @link http://php.net/manual/en/function.header.php
 583 * @param string $string <p>
 584 * The header string.
 585 * </p>
 586 * <p>
 587 * There are two special-case header calls. The first is a header
 588 * that starts with the string "HTTP/" (case is not
 589 * significant), which will be used to figure out the HTTP status
 590 * code to send. For example, if you have configured Apache to
 591 * use a PHP script to handle requests for missing files (using
 592 * the ErrorDocument directive), you may want to
 593 * make sure that your script generates the proper status code.
 594 * </p>
 595 * <p>
 596 * ]]>
 597 * </p>
 598 * <p>
 599 * The second special case is the "Location:" header. Not only does
 600 * it send this header back to the browser, but it also returns a
 601 * REDIRECT (302) status code to the browser
 602 * unless the 201 or
 603 * a 3xx status code has already been set.
 604 * </p>
 605 * <p>
 606 * ]]>
 607 * </p>
 608 * @param bool $replace [optional] <p>
 609 * The optional replace parameter indicates
 610 * whether the header should replace a previous similar header, or
 611 * add a second header of the same type. By default it will replace,
 612 * but if you pass in false as the second argument you can force
 613 * multiple headers of the same type. For example:
 614 * </p>
 615 * <p>
 616 * ]]>
 617 * </p>
 618 * @param int $http_response_code [optional] <p>
 619 * Forces the HTTP response code to the specified value.
 620 * </p>
 621 * @return void 
 622 */
 623function header ($string, $replace = null, $http_response_code = null) {}
 624
 625/**
 626 * (PHP 5 &gt;= 5.3.0)<br/>
 627 * Remove previously set headers
 628 * @link http://php.net/manual/en/function.header-remove.php
 629 * @param string $name [optional] <p>
 630 * The header name to be removed.
 631 * </p>
 632 * This parameter is case-insensitive.
 633 * @return void 
 634 */
 635function header_remove ($name = null) {}
 636
 637/**
 638 * (PHP 4, PHP 5)<br/>
 639 * Checks if or where headers have been sent
 640 * @link http://php.net/manual/en/function.headers-sent.php
 641 * @param string $file [optional] <p>
 642 * If the optional file and
 643 * line parameters are set, 
 644 * headers_sent will put the PHP source file name
 645 * and line number where output started in the file
 646 * and line variables.
 647 * </p>
 648 * @param int $line [optional] <p>
 649 * The line number where the output started.
 650 * </p>
 651 * @return bool headers_sent will return false if no HTTP headers
 652 * have already been sent or true otherwise.
 653 */
 654function headers_sent (&$file = null, &$line = null) {}
 655
 656/**
 657 * (PHP 5)<br/>
 658 * Returns a list of response headers sent (or ready to send)
 659 * @link http://php.net/manual/en/function.headers-list.php
 660 * @return array a numerically indexed array of headers.
 661 */
 662function headers_list () {}
 663
 664/**
 665 * (PHP 4, PHP 5)<br/>
 666 * Check whether client disconnected
 667 * @link http://php.net/manual/en/function.connection-aborted.php
 668 * @return int 1 if client disconnected, 0 otherwise.
 669 */
 670function connection_aborted () {}
 671
 672/**
 673 * (PHP 4, PHP 5)<br/>
 674 * Returns connection status bitfield
 675 * @link http://php.net/manual/en/function.connection-status.php
 676 * @return int the connection status bitfield, which can be used against the
 677 * CONNECTION_XXX constants to determine the connection
 678 * status.
 679 */
 680function connection_status () {}
 681
 682/**
 683 * (PHP 4, PHP 5)<br/>
 684 * Set whether a client disconnect should abort script execution
 685 * @link http://php.net/manual/en/function.ignore-user-abort.php
 686 * @param string $value [optional] <p>
 687 * If set, this function will set the ignore_user_abort ini setting
 688 * to the given value. If not, this function will
 689 * only return the previous setting without changing it.
 690 * </p>
 691 * @return int the previous setting, as an integer.
 692 */
 693function ignore_user_abort ($value = null) {}
 694
 695/**
 696 * (PHP 4, PHP 5)<br/>
 697 * Parse a configuration file
 698 * @link http://php.net/manual/en/function.parse-ini-file.php
 699 * @param string $filename <p>
 700 * The filename of the ini file being parsed.
 701 * </p>
 702 * @param bool $process_sections [optional] <p>
 703 * By setting the process_sections
 704 * parameter to true, you get a multidimensional array, with
 705 * the section names and settings included. The default
 706 * for process_sections is false 
 707 * </p>
 708 * @param int $scanner_mode [optional] <p>
 709 * Can either be INI_SCANNER_NORMAL (default) or 
 710 * INI_SCANNER_RAW. If INI_SCANNER_RAW 
 711 * is supplied, then option values will not be parsed.
 712 * </p>
 713 * @return array The settings are returned as an associative array on success,
 714 * and false on failure.
 715 */
 716function parse_ini_file ($filename, $process_sections = null, $scanner_mode = null) {}
 717
 718/**
 719 * (PHP 5 &gt;= 5.3.0)<br/>
 720 * Parse a configuration string
 721 * @link http://php.net/manual/en/function.parse-ini-string.php
 722 * @param string $ini <p>
 723 * The contents of the ini file being parsed.
 724 * </p>
 725 * @param bool $process_sections [optional] <p>
 726 * By setting the process_sections
 727 * parameter to true, you get a multidimensional array, with
 728 * the section names and settings included. The default
 729 * for process_sections is false 
 730 * </p>
 731 * @param int $scanner_mode [optional] <p>
 732 * Can either be INI_SCANNER_NORMAL (default) or 
 733 * INI_SCANNER_RAW. If INI_SCANNER_RAW 
 734 * is supplied, then option values will not be parsed.
 735 * </p>
 736 * @return array The settings are returned as an associative array on success,
 737 * and false on failure.
 738 */
 739function parse_ini_string ($ini, $process_sections = null, $scanner_mode = null) {}
 740
 741/**
 742 * (PHP 4 &gt;= 4.0.3, PHP 5)<br/>
 743 * Tells whether the file was uploaded via HTTP POST
 744 * @link http://php.net/manual/en/function.is-uploaded-file.php
 745 * @param string $filename <p>
 746 * The filename being checked.
 747 * </p>
 748 * @return bool Returns true on success or false on failure.
 749 */
 750function is_uploaded_file ($filename) {}
 751
 752/**
 753 * (PHP 4 &gt;= 4.0.3, PHP 5)<br/>
 754 * Moves an uploaded file to a new location
 755 * @link http://php.net/manual/en/function.move-uploaded-file.php
 756 * @param string $filename <p>
 757 * The filename of the uploaded file.
 758 * </p>
 759 * @param string $destination <p>
 760 * The destination of the moved file.
 761 * </p>
 762 * @return bool If filename is not a valid upload file,
 763 * then no action will occur, and
 764 * move_uploaded_file will return
 765 * false.
 766 * </p>
 767 * <p>
 768 * If filename is a valid upload file, but
 769 * cannot be moved for some reason, no action will occur, and
 770 * move_uploaded_file will return
 771 * false. Additionally, a warning will be issued.
 772 */
 773function move_uploaded_file ($filename, $destination) {}
 774
 775/**
 776 * (PHP 4, PHP 5)<br/>
 777 * Get the Internet host name corresponding to a given IP address
 778 * @link http://php.net/manual/en/function.gethostbyaddr.php
 779 * @param string $ip_address <p>
 780 * The host IP address.
 781 * </p>
 782 * @return string the host name or the unmodified ip_address
 783 * on failure.
 784 */
 785function gethostbyaddr ($ip_address) {}
 786
 787/**
 788 * (PHP 4, PHP 5)<br/>
 789 * Get the IPv4 address corresponding to a given Internet host name
 790 * @link http://php.net/manual/en/function.gethostbyname.php
 791 * @param string $hostname <p>
 792 * The host name.
 793 * </p>
 794 * @return string the IPv4 address or a string containing the unmodified
 795 * hostname on failure.
 796 */
 797function gethostbyname ($hostname) {}
 798
 799/**
 800 * (PHP 4, PHP 5)<br/>
 801 * Get a list of IPv4 addresses corresponding to a given Internet host
 802   name
 803 * @link http://php.net/manual/en/function.gethostbynamel.php
 804 * @param string $hostname <p>
 805 * The host name.
 806 * </p>
 807 * @return array an array of IPv4 addresses or false if
 808 * hostname could not be resolved.
 809 */
 810function gethostbynamel ($hostname) {}
 811
 812/**
 813 * (PHP &gt;= 5.3.0)<br/>
 814 * Gets the host name
 815 * @link http://php.net/manual/en/function.gethostname.php
 816 * @return string a string with the hostname on success, otherwise false is 
 817 * returned.
 818 */
 819function gethostname () {}
 820
 821/**
 822 * (PHP 5)<br/>
 823 * &Alias; <function>checkdnsrr</function>
 824 * @link http://php.net/manual/en/function.dns-check-record.php
 825 * @param $host
 826 * @param $type [optional]
 827 */
 828function dns_check_record ($host, $type) {}
 829
 830/**
 831 * (PHP 4, PHP 5)<br/>
 832 * Check DNS records corresponding to a given Internet host name or IP address
 833 * @link http://php.net/manual/en/function.checkdnsrr.php
 834 * @param string $host <p>
 835 * host may either be the IP address in
 836 * dotted-quad notation or the host name.
 837 * </p>
 838 * @param string $type [optional] <p>
 839 * type may be any one of: A, MX, NS, SOA,
 840 * PTR, CNAME, AAAA, A6, SRV, NAPTR, TXT or ANY.
 841 * </p>
 842 * @return bool true if any records are found; returns false if no records
 843 * were found or if an error occurred.
 844 */
 845function checkdnsrr ($host, $type = null) {}
 846
 847/**
 848 * (PHP 5)<br/>
 849 * &Alias; <function>getmxrr</function>
 850 * @link http://php.net/manual/en/function.dns-get-mx.php
 851 * @param $hostname
 852 * @param $mxhosts
 853 * @param $weight [optional]
 854 */
 855function dns_get_mx ($hostname, &$mxhosts, &$weight) {}
 856
 857/**
 858 * (PHP 4, PHP 5)<br/>
 859 * Get MX records corresponding to a given Internet host name
 860 * @link http://php.net/manual/en/function.getmxrr.php
 861 * @param string $hostname <p>
 862 * The Internet host name.
 863 * </p>
 864 * @param array $mxhosts <p>
 865 * A list of the MX records found is placed into the array
 866 * mxhosts. 
 867 * </p>
 868 * @param array $weight [optional] <p>
 869 * If the weight array is given, it will be filled
 870 * with the weight information gathered.
 871 * </p>
 872 * @return bool true if any records are found; returns false if no records
 873 * were found or if an error occurred.
 874 */
 875function getmxrr ($hostname, array &$mxhosts, array &$weight = null) {}
 876
 877/**
 878 * (PHP 5)<br/>
 879 * Fetch DNS Resource Records associated with a hostname
 880 * @link http://php.net/manual/en/function.dns-get-record.php
 881 * @param string $hostname <p>
 882 * hostname should be a valid DNS hostname such
 883 * as "www.example.com". Reverse lookups can be generated
 884 * using in-addr.arpa notation, but
 885 * gethostbyaddr is more suitable for
 886 * the majority of reverse lookups.
 887 * </p>
 888 * <p>
 889 * Per DNS standards, email addresses are given in user.host format (for
 890 * example: hostmaster.example.com as opposed to hostmaster@example.com),
 891 * be sure to check this value and modify if necessary before using it
 892 * with a functions such as mail.
 893 * </p>
 894 * @param int $type [optional] <p>
 895 * By default, dns_get_record will search for any
 896 * resource records associated with hostname. 
 897 * To limit the query, specify the optional type
 898 * parameter. May be any one of the following:
 899 * DNS_A, DNS_CNAME,
 900 * DNS_HINFO, DNS_MX,
 901 * DNS_NS, DNS_PTR,
 902 * DNS_SOA, DNS_TXT,
 903 * DNS_AAAA, DNS_SRV,
 904 * DNS_NAPTR, DNS_A6,
 905 * DNS_ALL or DNS_ANY.
 906 * </p>
 907 * <p>
 908 * Because of eccentricities in the performance of libresolv
 909 * between platforms, DNS_ANY will not
 910 * always return every record, the slower DNS_ALL
 911 * will collect all records more reliably.
 912 * </p>
 913 * @param array $authns [optional] <p>
 914 * Passed by reference and, if given, will be populated with Resource
 915 * Records for the Authoritative Name Servers.
 916 * </p>
 917 * @param array $addtl [optional] <p>
 918 * Passed by reference and, if given, will be populated with any
 919 * Additional Records.
 920 * </p>
 921 * @return array This function returns an array of associative arrays. Each associative array contains
 922 * at minimum the following keys:
 923 * <table>
 924 * Basic DNS attributes
 925 * <tr valign="top">
 926 * <td>Attribute</td>
 927 * <td>Meaning</td>
 928 * </tr>
 929 * <tr valign="top">
 930 * <td>host</td>
 931 * <td>
 932 * The record in the DNS namespace to which the rest of the associated data refers.
 933 * </td>
 934 * </tr>
 935 * <tr valign="top">
 936 * <td>class</td>
 937 * <td>
 938 * dns_get_record only returns Internet class records and as
 939 * such this parameter will always return IN.
 940 * </td>
 941 * </tr>
 942 * <tr valign="top">
 943 * <td>type</td>
 944 * <td>
 945 * String containing the record type. Additional attributes will also be contained
 946 * in the resulting array dependant on the value of type. See table below.
 947 * </td>
 948 * </tr>
 949 * <tr valign="top">
 950 * <td>ttl</td>
 951 * <td>
 952 * "Time To Live" remaining for this record. This will not equal
 953 * the record's original ttl, but will rather equal the original ttl minus whatever
 954 * length of time has passed since the authoritative name server was queried.
 955 * </td>
 956 * </tr>
 957 * </table>
 958 * </p>
 959 * <p>
 960 * <table>
 961 * Other keys in associative arrays dependant on 'type'
 962 * <tr valign="top">
 963 * <td>Type</td>
 964 * <td>Extra Columns</td>
 965 * </tr>
 966 * <tr valign="top">
 967 * <td>A</td>
 968 * <td>
 969 * ip: An IPv4 addresses in dotted decimal notation.
 970 * </td>
 971 * </tr>
 972 * <tr valign="top">
 973 * <td>MX</td>
 974 * <td>
 975 * pri: Priority of mail exchanger.
 976 * Lower numbers indicate greater priority.
 977 * target: FQDN of the mail exchanger.
 978 * See also dns_get_mx.
 979 * </td>
 980 * </tr>
 981 * <tr valign="top">
 982 * <td>CNAME</td>
 983 * <td>
 984 * target: FQDN of location in DNS namespace to which
 985 * the record is aliased.
 986 * </td>
 987 * </tr>
 988 * <tr valign="top">
 989 * <td>NS</td>
 990 * <td>
 991 * target: FQDN of the name server which is authoritative
 992 * for this hostname.
 993 * </td>
 994 * </tr>
 995 * <tr valign="top">
 996 * <td>PTR</td>
 997 * <td>
 998 * target: Location within the DNS namespace to which
 999 * this record points.
1000 * </td>
1001 * </tr>
1002 * <tr valign="top">
1003 * <td>TXT</td>
1004 * <td>
1005 * txt: Arbitrary string data associated with this record.
1006 * </td>
1007 * </tr>
1008 * <tr valign="top">
1009 * <td>HINFO</td>
1010 * <td>
1011 * cpu: IANA number designating the CPU of the machine
1012 * referenced by this record.
1013 * os: IANA number designating the Operating System on
1014 * the machine referenced by this record.
1015 * See IANA's Operating System
1016 * Names for the meaning of these values.
1017 * </td>
1018 * </tr>
1019 * <tr valign="top">
1020 * <td>SOA</td>
1021 * <td>
1022 * mname: FQDN of the machine from which the resource
1023 * records originated.
1024 * rname: Email address of the administrative contain
1025 * for this domain.
1026 * serial: Serial # of this revision of the requested
1027 * domain.
1028 * refresh: Refresh interval (seconds) secondary name
1029 * servers should use when updating remote copies of this domain.
1030 * retry: Length of time (seconds) to wait after a
1031 * failed refresh before making a second attempt.
1032 * expire: Maximum length of time (seconds) a secondary
1033 * DNS server should retain remote copies of the zone data without a
1034 * successful refresh before discarding.
1035 * minimum-ttl: Minimum length of time (seconds) a
1036 * client can continue to use a DNS resolution before it should request
1037 * a new resolution from the server. Can be overridden by individual
1038 * resource records.
1039 * </td>
1040 * </tr>
1041 * <tr valign="top">
1042 * <td>AAAA</td>
1043 * <td>
1044 * ipv6: IPv6 address
1045 * </td>
1046 * </tr>
1047 * <tr valign="top">
1048 * <td>A6(PHP &gt;= 5.1.0)</td>
1049 * <td>
1050 * masklen: Length (in bits) to inherit from the target
1051 * specified by chain.
1052 * ipv6: Address for this specific record to merge with
1053 * chain.
1054 * chain: Parent record to merge with
1055 * ipv6 data.
1056 * </td>
1057 * </tr>
1058 * <tr valign="top">
1059 * <td>SRV</td>
1060 * <td>
1061 * pri: (Priority) lowest priorities should be used first.
1062 * weight: Ranking to weight which of commonly prioritized
1063 * targets should be chosen at random.
1064 * target and port: hostname and port
1065 * where the requested service can be found.
1066 * For additional information see: RFC 2782
1067 * </td>
1068 * </tr>
1069 * <tr valign="top">
1070 * <td>NAPTR</td>
1071 * <td>
1072 * order and pref: Equivalent to
1073 * pri and weight above.
1074 * flags, services, regex,
1075 * and replacement: Parameters as defined by
1076 * RFC 2915.
1077 * </td>
1078 * </tr>
1079 * </table>
1080 */
1081function dns_get_record ($hostname, $type = null, array &$authns = null, array &$addtl = null) {}
1082?>