PageRenderTime 131ms CodeModel.GetById 61ms app.highlight 21ms RepoModel.GetById 39ms app.codeStats 0ms

/configuration/org.eclipse.osgi/bundles/322/1/.cp/Resources/language/php5.4/Core.php

https://bitbucket.org/2GAndre/myeclipse4php
PHP | 1188 lines | 197 code | 126 blank | 865 comment | 0 complexity | 1108206b186447731355ce02f379e673 MD5 | raw file
   1<?php
   2
   3// Start of Core v.5.4.0RC6
   4
   5class stdClass  {
   6}
   7
   8interface Traversable  {
   9}
  10
  11interface IteratorAggregate extends Traversable {
  12
  13	abstract public function getIterator () {}
  14
  15}
  16
  17interface Iterator extends Traversable {
  18
  19	abstract public function current () {}
  20
  21	abstract public function next () {}
  22
  23	abstract public function key () {}
  24
  25	abstract public function valid () {}
  26
  27	abstract public function rewind () {}
  28
  29}
  30
  31interface ArrayAccess  {
  32
  33	/**
  34	 * @param offset
  35	 */
  36	abstract public function offsetExists ($offset) {}
  37
  38	/**
  39	 * @param offset
  40	 */
  41	abstract public function offsetGet ($offset) {}
  42
  43	/**
  44	 * @param offset
  45	 * @param value
  46	 */
  47	abstract public function offsetSet ($offset, $value) {}
  48
  49	/**
  50	 * @param offset
  51	 */
  52	abstract public function offsetUnset ($offset) {}
  53
  54}
  55
  56interface Serializable  {
  57
  58	abstract public function serialize () {}
  59
  60	/**
  61	 * @param serialized
  62	 */
  63	abstract public function unserialize ($serialized) {}
  64
  65}
  66
  67class Exception  {
  68	protected $message;
  69	private $string;
  70	protected $code;
  71	protected $file;
  72	protected $line;
  73	private $trace;
  74	private $previous;
  75
  76
  77	final private function __clone () {}
  78
  79	/**
  80	 * @param message[optional]
  81	 * @param code[optional]
  82	 * @param previous[optional]
  83	 */
  84	public function __construct ($message = null, $code = null, $previous = null) {}
  85
  86	final public function getMessage () {}
  87
  88	final public function getCode () {}
  89
  90	final public function getFile () {}
  91
  92	final public function getLine () {}
  93
  94	final public function getTrace () {}
  95
  96	final public function getPrevious () {}
  97
  98	final public function getTraceAsString () {}
  99
 100	public function __toString () {}
 101
 102}
 103
 104class ErrorException extends Exception  {
 105	protected $message;
 106	protected $code;
 107	protected $file;
 108	protected $line;
 109	protected $severity;
 110
 111
 112	/**
 113	 * @param message[optional]
 114	 * @param code[optional]
 115	 * @param severity[optional]
 116	 * @param filename[optional]
 117	 * @param lineno[optional]
 118	 * @param previous[optional]
 119	 */
 120	public function __construct ($message = null, $code = null, $severity = null, $filename = null, $lineno = null, $previous = null) {}
 121
 122	final public function getSeverity () {}
 123
 124	final private function __clone () {}
 125
 126	final public function getMessage () {}
 127
 128	final public function getCode () {}
 129
 130	final public function getFile () {}
 131
 132	final public function getLine () {}
 133
 134	final public function getTrace () {}
 135
 136	final public function getPrevious () {}
 137
 138	final public function getTraceAsString () {}
 139
 140	public function __toString () {}
 141
 142}
 143
 144final class Closure  {
 145
 146	private function __construct () {}
 147
 148	/**
 149	 * @param closure
 150	 * @param newthis
 151	 * @param newscope[optional]
 152	 */
 153	public static function bind ($closure, $newthis, $newscope = null) {}
 154
 155	/**
 156	 * @param newthis
 157	 * @param newscope[optional]
 158	 */
 159	public function bindTo ($newthis, $newscope) {}
 160
 161}
 162
 163/**
 164 * Gets the version of the current Zend engine
 165 * @link http://www.php.net/manual/en/function.zend-version.php
 166 * @return string the Zend Engine version number, as a string.
 167 */
 168function zend_version () {}
 169
 170/**
 171 * Returns the number of arguments passed to the function
 172 * @link http://www.php.net/manual/en/function.func-num-args.php
 173 * @return int the number of arguments passed into the current user-defined
 174 * function.
 175 */
 176function func_num_args () {}
 177
 178/**
 179 * Return an item from the argument list
 180 * @link http://www.php.net/manual/en/function.func-get-arg.php
 181 * @param arg_num int <p>
 182 * The argument offset. Function arguments are counted starting from
 183 * zero.
 184 * </p>
 185 * @return mixed the specified argument, or false on error.
 186 */
 187function func_get_arg ($arg_num) {}
 188
 189/**
 190 * Returns an array comprising a function's argument list
 191 * @link http://www.php.net/manual/en/function.func-get-args.php
 192 * @return array an array in which each element is a copy of the corresponding
 193 * member of the current user-defined function's argument list.
 194 */
 195function func_get_args () {}
 196
 197/**
 198 * Get string length
 199 * @link http://www.php.net/manual/en/function.strlen.php
 200 * @param string string <p>
 201 * The string being measured for length.
 202 * </p>
 203 * @return int The length of the string on success, 
 204 * and 0 if the string is empty.
 205 */
 206function strlen ($string) {}
 207
 208/**
 209 * Binary safe string comparison
 210 * @link http://www.php.net/manual/en/function.strcmp.php
 211 * @param str1 string <p>
 212 * The first string.
 213 * </p>
 214 * @param str2 string <p>
 215 * The second string.
 216 * </p>
 217 * @return int &lt; 0 if str1 is less than
 218 * str2; &gt; 0 if str1
 219 * is greater than str2, and 0 if they are
 220 * equal.
 221 */
 222function strcmp ($str1, $str2) {}
 223
 224/**
 225 * Binary safe string comparison of the first n characters
 226 * @link http://www.php.net/manual/en/function.strncmp.php
 227 * @param str1 string <p>
 228 * The first string.
 229 * </p>
 230 * @param str2 string <p>
 231 * The second string.
 232 * </p>
 233 * @param len int <p>
 234 * Number of characters to use in the comparison.
 235 * </p>
 236 * @return int &lt; 0 if str1 is less than
 237 * str2; &gt; 0 if str1
 238 * is greater than str2, and 0 if they are
 239 * equal.
 240 */
 241function strncmp ($str1, $str2, $len) {}
 242
 243/**
 244 * Binary safe case-insensitive string comparison
 245 * @link http://www.php.net/manual/en/function.strcasecmp.php
 246 * @param str1 string <p>
 247 * The first string
 248 * </p>
 249 * @param str2 string <p>
 250 * The second string
 251 * </p>
 252 * @return int &lt; 0 if str1 is less than
 253 * str2; &gt; 0 if str1
 254 * is greater than str2, and 0 if they are
 255 * equal.
 256 */
 257function strcasecmp ($str1, $str2) {}
 258
 259/**
 260 * Binary safe case-insensitive string comparison of the first n characters
 261 * @link http://www.php.net/manual/en/function.strncasecmp.php
 262 * @param str1 string <p>
 263 * The first string.
 264 * </p>
 265 * @param str2 string <p>
 266 * The second string.
 267 * </p>
 268 * @param len int <p>
 269 * The length of strings to be used in the comparison.
 270 * </p>
 271 * @return int &lt; 0 if str1 is less than
 272 * str2; &gt; 0 if str1 is
 273 * greater than str2, and 0 if they are equal.
 274 */
 275function strncasecmp ($str1, $str2, $len) {}
 276
 277/**
 278 * Return the current key and value pair from an array and advance the array cursor
 279 * @link http://www.php.net/manual/en/function.each.php
 280 * @param array array <p>
 281 * The input array.
 282 * </p>
 283 * @return array the current key and value pair from the array
 284 * array. This pair is returned in a four-element
 285 * array, with the keys 0, 1,
 286 * key, and value. Elements
 287 * 0 and key contain the key name of
 288 * the array element, and 1 and value
 289 * contain the data.
 290 * </p>
 291 * <p>
 292 * If the internal pointer for the array points past the end of the
 293 * array contents, each returns
 294 * false.
 295 */
 296function each (array &$array) {}
 297
 298/**
 299 * Sets which PHP errors are reported
 300 * @link http://www.php.net/manual/en/function.error-reporting.php
 301 * @param level int[optional] <p>
 302 * The new error_reporting
 303 * level. It takes on either a bitmask, or named constants. Using named 
 304 * constants is strongly encouraged to ensure compatibility for future 
 305 * versions. As error levels are added, the range of integers increases, 
 306 * so older integer-based error levels will not always behave as expected.
 307 * </p>
 308 * <p>
 309 * The available error level constants and the actual
 310 * meanings of these error levels are described in the
 311 * predefined constants.
 312 * </p>
 313 * @return int the old error_reporting
 314 * level or the current level if no level parameter is
 315 * given.
 316 */
 317function error_reporting ($level = null) {}
 318
 319/**
 320 * Defines a named constant
 321 * @link http://www.php.net/manual/en/function.define.php
 322 * @param name string <p>
 323 * The name of the constant.
 324 * </p>
 325 * @param value mixed <p>
 326 * The value of the constant; only scalar and null values are allowed. 
 327 * Scalar values are integer, 
 328 * float, string or boolean values. It is 
 329 * possible to define resource constants, however it is not recommended 
 330 * and may cause unpredictable behavior.
 331 * </p>
 332 * @param case_insensitive bool[optional] <p>
 333 * If set to true, the constant will be defined case-insensitive. 
 334 * The default behavior is case-sensitive; i.e. 
 335 * CONSTANT and Constant represent
 336 * different values.
 337 * </p>
 338 * <p>
 339 * Case-insensitive constants are stored as lower-case.
 340 * </p>
 341 * @return bool Returns true on success or false on failure.
 342 */
 343function define ($name, $value, $case_insensitive = null) {}
 344
 345/**
 346 * Checks whether a given named constant exists
 347 * @link http://www.php.net/manual/en/function.defined.php
 348 * @param name string <p>
 349 * The constant name.
 350 * </p>
 351 * @return bool true if the named constant given by name
 352 * has been defined, false otherwise.
 353 */
 354function defined ($name) {}
 355
 356/**
 357 * Returns the name of the class of an object
 358 * @link http://www.php.net/manual/en/function.get-class.php
 359 * @param object object[optional] <p>
 360 * The tested object. This parameter may be omitted when inside a class.
 361 * </p>
 362 * @return string the name of the class of which object is an
 363 * instance. Returns false if object is not an 
 364 * object.
 365 * </p>
 366 * <p>
 367 * If object is omitted when inside a class, the
 368 * name of that class is returned.
 369 */
 370function get_class ($object = null) {}
 371
 372/**
 373 * the "Late Static Binding" class name
 374 * @link http://www.php.net/manual/en/function.get-called-class.php
 375 * @return string the class name. Returns false if called from outside a class.
 376 */
 377function get_called_class () {}
 378
 379/**
 380 * Retrieves the parent class name for object or class
 381 * @link http://www.php.net/manual/en/function.get-parent-class.php
 382 * @param object mixed[optional] <p>
 383 * The tested object or class name
 384 * </p>
 385 * @return string the name of the parent class of the class of which
 386 * object is an instance or the name.
 387 * </p>
 388 * <p>
 389 * If the object does not have a parent or a non-existent class name is
 390 * given, false will be returned.
 391 * </p>
 392 * <p>
 393 * If called without parameter outside object, this function returns false.
 394 */
 395function get_parent_class ($object = null) {}
 396
 397/**
 398 * Checks if the class method exists
 399 * @link http://www.php.net/manual/en/function.method-exists.php
 400 * @param object mixed <p>
 401 * An object instance or a class name
 402 * </p>
 403 * @param method_name string <p>
 404 * The method name
 405 * </p>
 406 * @return bool true if the method given by method_name
 407 * has been defined for the given object, false 
 408 * otherwise.
 409 */
 410function method_exists ($object, $method_name) {}
 411
 412/**
 413 * Checks if the object or class has a property
 414 * @link http://www.php.net/manual/en/function.property-exists.php
 415 * @param class mixed <p>
 416 * The class name or an object of the class to test for
 417 * </p>
 418 * @param property string <p>
 419 * The name of the property
 420 * </p>
 421 * @return bool true if the property exists, false if it doesn't exist or
 422 * &null; in case of an error.
 423 */
 424function property_exists ($class, $property) {}
 425
 426/**
 427 * Checks if the class has been defined
 428 * @link http://www.php.net/manual/en/function.class-exists.php
 429 * @param class_name string <p>
 430 * The class name. The name is matched in a case-insensitive manner.
 431 * </p>
 432 * @param autoload bool[optional] <p>
 433 * Whether or not to call &link.autoload; by default.
 434 * </p>
 435 * @return bool true if class_name is a defined class,
 436 * false otherwise.
 437 */
 438function class_exists ($class_name, $autoload = null) {}
 439
 440/**
 441 * Checks if the interface has been defined
 442 * @link http://www.php.net/manual/en/function.interface-exists.php
 443 * @param interface_name string <p>
 444 * The interface name
 445 * </p>
 446 * @param autoload bool[optional] <p>
 447 * Whether to call &link.autoload; or not by default.
 448 * </p>
 449 * @return bool true if the interface given by 
 450 * interface_name has been defined, false otherwise.
 451 */
 452function interface_exists ($interface_name, $autoload = null) {}
 453
 454/**
 455 * Checks if the trait exists
 456 * @link http://www.php.net/manual/en/function.trait-exists.php
 457 * @param traitname string <p>
 458 * Name of the trait to check
 459 * </p>
 460 * @param autoload bool[optional] <p>
 461 * Whether to autoload if not already loaded.
 462 * </p>
 463 * @return bool true if trait exists, false if not, &null; in case of an error.
 464 */
 465function trait_exists ($traitname, $autoload = null) {}
 466
 467/**
 468 * Return &true; if the given function has been defined
 469 * @link http://www.php.net/manual/en/function.function-exists.php
 470 * @param function_name string <p>
 471 * The function name, as a string.
 472 * </p>
 473 * @return bool true if function_name exists and is a
 474 * function, false otherwise.
 475 * </p>
 476 * <p>
 477 * This function will return false for constructs, such as 
 478 * include_once and echo.
 479 */
 480function function_exists ($function_name) {}
 481
 482/**
 483 * Creates an alias for a class
 484 * @link http://www.php.net/manual/en/function.class-alias.php
 485 * @param original string[optional] <p>
 486 * The original class.
 487 * </p>
 488 * @param alias string[optional] <p>
 489 * The alias name for the class.
 490 * </p>
 491 * @return bool Returns true on success or false on failure.
 492 */
 493function class_alias ($original = null, $alias = null) {}
 494
 495/**
 496 * Returns an array with the names of included or required files
 497 * @link http://www.php.net/manual/en/function.get-included-files.php
 498 * @return array an array of the names of all files.
 499 * </p>
 500 * <p>
 501 * The script originally called is considered an "included file," so it will
 502 * be listed together with the files referenced by 
 503 * include and family.
 504 * </p>
 505 * <p>
 506 * Files that are included or required multiple times only show up once in
 507 * the returned array.
 508 */
 509function get_included_files () {}
 510
 511/**
 512 * &Alias; <function>get_included_files</function>
 513 * @link http://www.php.net/manual/en/function.get-required-files.php
 514 */
 515function get_required_files () {}
 516
 517/**
 518 * Checks if the object has this class as one of its parents
 519 * @link http://www.php.net/manual/en/function.is-subclass-of.php
 520 * @param object mixed <p>
 521 * A class name or an object instance
 522 * </p>
 523 * @param class_name string <p>
 524 * The class name
 525 * </p>
 526 * @param allow_string bool[optional] <p>
 527 * Whether to call autoloader if the class doesn't exist.
 528 * </p>
 529 * @return bool This function returns true if the object object,
 530 * belongs to a class which is a subclass of 
 531 * class_name, false otherwise.
 532 */
 533function is_subclass_of ($object, $class_name, $allow_string = null) {}
 534
 535/**
 536 * Checks if the object is of this class or has this class as one of its parents
 537 * @link http://www.php.net/manual/en/function.is-a.php
 538 * @param object object <p>
 539 * The tested object
 540 * </p>
 541 * @param class_name string <p>
 542 * The class name
 543 * </p>
 544 * @param allow_string bool[optional] <p>
 545 * Whether to call autoloader if the class doesn't exist.
 546 * </p>
 547 * @return bool true if the object is of this class or has this class as one of
 548 * its parents, false otherwise.
 549 */
 550function is_a ($object, $class_name, $allow_string = null) {}
 551
 552/**
 553 * Get the default properties of the class
 554 * @link http://www.php.net/manual/en/function.get-class-vars.php
 555 * @param class_name string <p>
 556 * The class name
 557 * </p>
 558 * @return array an associative array of declared properties visible from the
 559 * current scope, with their default value, or false if the
 560 * class_name refers to a non-existent class.
 561 * The resulting array elements are in the form of 
 562 * varname => value.
 563 */
 564function get_class_vars ($class_name) {}
 565
 566/**
 567 * Gets the properties of the given object
 568 * @link http://www.php.net/manual/en/function.get-object-vars.php
 569 * @param object object <p>
 570 * An object instance.
 571 * </p>
 572 * @return array an associative array of defined object accessible non-static properties 
 573 * for the specified object in scope. If a property have 
 574 * not been assigned a value, it will be returned with a &null; value.
 575 */
 576function get_object_vars ($object) {}
 577
 578/**
 579 * Gets the class methods' names
 580 * @link http://www.php.net/manual/en/function.get-class-methods.php
 581 * @param class_name mixed <p>
 582 * The class name or an object instance
 583 * </p>
 584 * @return array an array of method names defined for the class specified by
 585 * class_name. In case of an error, it returns &null;.
 586 */
 587function get_class_methods ($class_name) {}
 588
 589/**
 590 * Generates a user-level error/warning/notice message
 591 * @link http://www.php.net/manual/en/function.trigger-error.php
 592 * @param error_msg string <p>
 593 * The designated error message for this error. It's limited to 1024 
 594 * characters in length. Any additional characters beyond 1024 will be 
 595 * truncated.
 596 * </p>
 597 * @param error_type int[optional] <p>
 598 * The designated error type for this error. It only works with the E_USER
 599 * family of constants, and will default to E_USER_NOTICE.
 600 * </p>
 601 * @return bool This function returns false if wrong error_type is
 602 * specified, true otherwise.
 603 */
 604function trigger_error ($error_msg, $error_type = null) {}
 605
 606/**
 607 * Alias of <function>trigger_error</function>
 608 * @link http://www.php.net/manual/en/function.user-error.php
 609 * @param message
 610 * @param error_type[optional]
 611 */
 612function user_error ($message, $error_type) {}
 613
 614/**
 615 * Sets a user-defined error handler function
 616 * @link http://www.php.net/manual/en/function.set-error-handler.php
 617 * @param error_handler callback <p>
 618 * The user function needs to accept two parameters: the error code, and a
 619 * string describing the error. Then there are three optional parameters 
 620 * that may be supplied: the filename in which the error occurred, the
 621 * line number in which the error occurred, and the context in which the
 622 * error occurred (an array that points to the active symbol table at the
 623 * point the error occurred). The function can be shown as:
 624 * </p>
 625 * <p>
 626 * handler
 627 * interrno
 628 * stringerrstr
 629 * stringerrfile
 630 * interrline
 631 * arrayerrcontext
 632 * errno
 633 * The first parameter, errno, contains the
 634 * level of the error raised, as an integer.
 635 * @param error_types int[optional] <p>
 636 * Can be used to mask the triggering of the
 637 * error_handler function just like the error_reporting ini setting 
 638 * controls which errors are shown. Without this mask set the
 639 * error_handler will be called for every error
 640 * regardless to the setting of the error_reporting setting.
 641 * </p>
 642 * @return mixed a string containing the previously defined error handler (if any). If
 643 * the built-in error handler is used &null; is returned. &null; is also returned
 644 * in case of an error such as an invalid callback. If the previous error handler
 645 * was a class method, this function will return an indexed array with the class
 646 * and the method name.
 647 */
 648function set_error_handler ($error_handler, $error_types = null) {}
 649
 650/**
 651 * Restores the previous error handler function
 652 * @link http://www.php.net/manual/en/function.restore-error-handler.php
 653 * @return bool This function always returns true.
 654 */
 655function restore_error_handler () {}
 656
 657/**
 658 * Sets a user-defined exception handler function
 659 * @link http://www.php.net/manual/en/function.set-exception-handler.php
 660 * @param exception_handler callback <p>
 661 * Name of the function to be called when an uncaught exception occurs.
 662 * This function must be defined before calling
 663 * set_exception_handler. This handler function
 664 * needs to accept one parameter, which will be the exception object that
 665 * was thrown.
 666 * </p>
 667 * <p>
 668 * &null; may be passed instead, to reset this handler to its 
 669 * default state.
 670 * </p>
 671 * @return callback the name of the previously defined exception handler, or &null; on error. If
 672 * no previous handler was defined, &null; is also returned. If &null; is passed,
 673 * resetting the handler to its default state, true is returned.
 674 */
 675function set_exception_handler ($exception_handler) {}
 676
 677/**
 678 * Restores the previously defined exception handler function
 679 * @link http://www.php.net/manual/en/function.restore-exception-handler.php
 680 * @return bool This function always returns true.
 681 */
 682function restore_exception_handler () {}
 683
 684/**
 685 * Returns an array with the name of the defined classes
 686 * @link http://www.php.net/manual/en/function.get-declared-classes.php
 687 * @return array an array of the names of the declared classes in the current
 688 * script.
 689 * </p>
 690 * <p>
 691 * Note that depending on what extensions you have compiled or
 692 * loaded into PHP, additional classes could be present. This means that
 693 * you will not be able to define your own classes using these
 694 * names. There is a list of predefined classes in the Predefined Classes section of
 695 * the appendices.
 696 */
 697function get_declared_classes () {}
 698
 699/**
 700 * Returns an array of all declared traits
 701 * @link http://www.php.net/manual/en/function.get-declared-traits.php
 702 * @return array an array with names of all declared traits in values.
 703 * Returns &null; in case of a failure.
 704 */
 705function get_declared_traits () {}
 706
 707/**
 708 * Returns an array of all declared interfaces
 709 * @link http://www.php.net/manual/en/function.get-declared-interfaces.php
 710 * @return array an array of the names of the declared interfaces in the current
 711 * script.
 712 */
 713function get_declared_interfaces () {}
 714
 715/**
 716 * Returns an array of all defined functions
 717 * @link http://www.php.net/manual/en/function.get-defined-functions.php
 718 * @return array an multidimensional array containing a list of all defined
 719 * functions, both built-in (internal) and user-defined. The internal
 720 * functions will be accessible via $arr["internal"], and
 721 * the user defined ones using $arr["user"] (see example
 722 * below).
 723 */
 724function get_defined_functions () {}
 725
 726/**
 727 * Returns an array of all defined variables
 728 * @link http://www.php.net/manual/en/function.get-defined-vars.php
 729 * @return array A multidimensional array with all the variables.
 730 */
 731function get_defined_vars () {}
 732
 733/**
 734 * Create an anonymous (lambda-style) function
 735 * @link http://www.php.net/manual/en/function.create-function.php
 736 * @param args string <p>
 737 * The function arguments.
 738 * </p>
 739 * @param code string <p>
 740 * The function code.
 741 * </p>
 742 * @return string a unique function name as a string, or false on error.
 743 */
 744function create_function ($args, $code) {}
 745
 746/**
 747 * Returns the resource type
 748 * @link http://www.php.net/manual/en/function.get-resource-type.php
 749 * @param handle resource <p>
 750 * The evaluated resource handle.
 751 * </p>
 752 * @return string If the given handle is a resource, this function
 753 * will return a string representing its type. If the type is not identified
 754 * by this function, the return value will be the string 
 755 * Unknown.
 756 * </p>
 757 * <p>
 758 * This function will return false and generate an error if 
 759 * handle is not a resource.
 760 */
 761function get_resource_type ($handle) {}
 762
 763/**
 764 * Returns an array with the names of all modules compiled and loaded
 765 * @link http://www.php.net/manual/en/function.get-loaded-extensions.php
 766 * @param zend_extensions bool[optional] <p>
 767 * Only return Zend extensions, if not then regular extensions, like 
 768 * mysqli are listed. Defaults to false (return regular extensions).
 769 * </p>
 770 * @return array an indexed array of all the modules names.
 771 */
 772function get_loaded_extensions ($zend_extensions = null) {}
 773
 774/**
 775 * Find out whether an extension is loaded
 776 * @link http://www.php.net/manual/en/function.extension-loaded.php
 777 * @param name string <p>
 778 * The extension name.
 779 * </p>
 780 * <p>
 781 * You can see the names of various extensions by using
 782 * phpinfo or if you're using the
 783 * CGI or CLI version of
 784 * PHP you can use the -m switch to
 785 * list all available extensions:
 786 * </p>
 787 * @return bool true if the extension identified by name
 788 * is loaded, false otherwise.
 789 */
 790function extension_loaded ($name) {}
 791
 792/**
 793 * Returns an array with the names of the functions of a module
 794 * @link http://www.php.net/manual/en/function.get-extension-funcs.php
 795 * @param module_name string <p>
 796 * The module name.
 797 * </p>
 798 * <p>
 799 * This parameter must be in lowercase.
 800 * </p>
 801 * @return array an array with all the functions, or false if 
 802 * module_name is not a valid extension.
 803 */
 804function get_extension_funcs ($module_name) {}
 805
 806/**
 807 * Returns an associative array with the names of all the constants and their values
 808 * @link http://www.php.net/manual/en/function.get-defined-constants.php
 809 * @param categorize bool[optional] <p>
 810 * Causing this function to return a multi-dimensional
 811 * array with categories in the keys of the first dimension and constants
 812 * and their values in the second dimension.
 813 * ]]>
 814 * &example.outputs.similar;
 815 * Array
 816 * (
 817 * [E_ERROR] => 1
 818 * [E_WARNING] => 2
 819 * [E_PARSE] => 4
 820 * [E_NOTICE] => 8
 821 * [E_CORE_ERROR] => 16
 822 * [E_CORE_WARNING] => 32
 823 * [E_COMPILE_ERROR] => 64
 824 * [E_COMPILE_WARNING] => 128
 825 * [E_USER_ERROR] => 256
 826 * [E_USER_WARNING] => 512
 827 * [E_USER_NOTICE] => 1024
 828 * [E_ALL] => 2047
 829 * [TRUE] => 1
 830 * )
 831 * [pcre] => Array
 832 * (
 833 * [PREG_PATTERN_ORDER] => 1
 834 * [PREG_SET_ORDER] => 2
 835 * [PREG_OFFSET_CAPTURE] => 256
 836 * [PREG_SPLIT_NO_EMPTY] => 1
 837 * [PREG_SPLIT_DELIM_CAPTURE] => 2
 838 * [PREG_SPLIT_OFFSET_CAPTURE] => 4
 839 * [PREG_GREP_INVERT] => 1
 840 * )
 841 * [user] => Array
 842 * (
 843 * [MY_CONSTANT] => 1
 844 * )
 845 * )
 846 * ]]>
 847 * </p>
 848 * @return array 
 849 */
 850function get_defined_constants ($categorize = null) {}
 851
 852/**
 853 * Generates a backtrace
 854 * @link http://www.php.net/manual/en/function.debug-backtrace.php
 855 * @param options int[optional] <p>
 856 * As of 5.3.6, this parameter is a bitmask for the following options:
 857 * <table>
 858 * debug_backtrace options
 859 * <tr valign="top">
 860 * <td>DEBUG_BACKTRACE_PROVIDE_OBJECT</td>
 861 * <td>
 862 * Whether or not to populate the "object" index.
 863 * </td>
 864 * </tr>
 865 * <tr valign="top">
 866 * <td>DEBUG_BACKTRACE_IGNORE_ARGS</td>
 867 * <td>
 868 * Whether or not to omit the "args" index, and thus all the function/method arguments,
 869 * to save memory.
 870 * </td>
 871 * </tr>
 872 * </table>
 873 * Before 5.3.6, the only values recognized are true or false, which are the same as 
 874 * setting or not setting the DEBUG_BACKTRACE_PROVIDE_OBJECT option respectively.
 875 * </p>
 876 * @param limit int[optional] <p>
 877 * As of 5.4.0, this parameter can be used to limit the number of stack frames returned.
 878 * By default (limit=0) it returns all stack frames.
 879 * </p>
 880 * @return array an array of associative arrays. The possible returned elements
 881 * are as follows:
 882 * </p>
 883 * <p>
 884 * <table>
 885 * Possible returned elements from debug_backtrace
 886 * <tr valign="top">
 887 * <td>&Name;</td>
 888 * <td>&Type;</td>
 889 * <td>&Description;</td>
 890 * </tr>
 891 * <tr valign="top">
 892 * <td>function</td>
 893 * <td>string</td>
 894 * <td>
 895 * The current function name. See also
 896 * __FUNCTION__.
 897 * </td>
 898 * </tr>
 899 * <tr valign="top">
 900 * <td>line</td>
 901 * <td>integer</td>
 902 * <td>
 903 * The current line number. See also
 904 * __LINE__.
 905 * </td>
 906 * </tr>
 907 * <tr valign="top">
 908 * <td>file</td>
 909 * <td>string</td>
 910 * <td>
 911 * The current file name. See also
 912 * __FILE__.
 913 * </td>
 914 * </tr>
 915 * <tr valign="top">
 916 * <td>class</td>
 917 * <td>string</td>
 918 * <td>
 919 * The current class name. See also
 920 * __CLASS__
 921 * </td>
 922 * </tr>
 923 * <tr valign="top">
 924 * <td>object</td>
 925 * <td>object</td>
 926 * <td>
 927 * The current object.
 928 * </td>
 929 * </tr>
 930 * <tr valign="top">
 931 * <td>type</td>
 932 * <td>string</td>
 933 * <td>
 934 * The current call type. If a method call, "->" is returned. If a static
 935 * method call, "::" is returned. If a function call, nothing is returned.
 936 * </td>
 937 * </tr>
 938 * <tr valign="top">
 939 * <td>args</td>
 940 * <td>array</td>
 941 * <td>
 942 * If inside a function, this lists the functions arguments. If
 943 * inside an included file, this lists the included file name(s).
 944 * </td>
 945 * </tr>
 946 * </table>
 947 */
 948function debug_backtrace ($options = null, $limit = null) {}
 949
 950/**
 951 * Prints a backtrace
 952 * @link http://www.php.net/manual/en/function.debug-print-backtrace.php
 953 * @param options int[optional] <p>
 954 * As of 5.3.6, this parameter is a bitmask for the following options:
 955 * <table>
 956 * debug_print_backtrace options
 957 * <tr valign="top">
 958 * <td>DEBUG_BACKTRACE_IGNORE_ARGS</td>
 959 * <td>
 960 * Whether or not to omit the "args" index, and thus all the function/method arguments,
 961 * to save memory.
 962 * </td>
 963 * </tr>
 964 * </table>
 965 * </p>
 966 * @param limit int[optional] <p>
 967 * As of 5.4.0, this parameter can be used to limit the number of stack frames printed.
 968 * By default (limit=0) it prints all stack frames.
 969 * </p>
 970 * @return void 
 971 */
 972function debug_print_backtrace ($options = null, $limit = null) {}
 973
 974/**
 975 * Forces collection of any existing garbage cycles
 976 * @link http://www.php.net/manual/en/function.gc-collect-cycles.php
 977 * @return int number of collected cycles.
 978 */
 979function gc_collect_cycles () {}
 980
 981/**
 982 * Returns status of the circular reference collector
 983 * @link http://www.php.net/manual/en/function.gc-enabled.php
 984 * @return bool true if the garbage collector is enabled, false otherwise.
 985 */
 986function gc_enabled () {}
 987
 988/**
 989 * Activates the circular reference collector
 990 * @link http://www.php.net/manual/en/function.gc-enable.php
 991 * @return void 
 992 */
 993function gc_enable () {}
 994
 995/**
 996 * Deactivates the circular reference collector
 997 * @link http://www.php.net/manual/en/function.gc-disable.php
 998 * @return void 
 999 */
1000function gc_disable () {}
1001
1002
1003/**
1004 * Fatal run-time errors. These indicate errors that can not be
1005 * recovered from, such as a memory allocation problem.
1006 * Execution of the script is halted.
1007 * @link http://www.php.net/manual/en/errorfunc.constants.php
1008 */
1009define ('E_ERROR', 1);
1010
1011/**
1012 * Catchable fatal error. It indicates that a probably dangerous error
1013 * occured, but did not leave the Engine in an unstable state. If the error
1014 * is not caught by a user defined handle (see also
1015 * set_error_handler), the application aborts as it
1016 * was an E_ERROR.
1017 * @link http://www.php.net/manual/en/errorfunc.constants.php
1018 */
1019define ('E_RECOVERABLE_ERROR', 4096);
1020
1021/**
1022 * Run-time warnings (non-fatal errors). Execution of the script is not
1023 * halted.
1024 * @link http://www.php.net/manual/en/errorfunc.constants.php
1025 */
1026define ('E_WARNING', 2);
1027
1028/**
1029 * Compile-time parse errors. Parse errors should only be generated by
1030 * the parser.
1031 * @link http://www.php.net/manual/en/errorfunc.constants.php
1032 */
1033define ('E_PARSE', 4);
1034
1035/**
1036 * Run-time notices. Indicate that the script encountered something that
1037 * could indicate an error, but could also happen in the normal course of
1038 * running a script.
1039 * @link http://www.php.net/manual/en/errorfunc.constants.php
1040 */
1041define ('E_NOTICE', 8);
1042
1043/**
1044 * Enable to have PHP suggest changes
1045 * to your code which will ensure the best interoperability
1046 * and forward compatibility of your code.
1047 * @link http://www.php.net/manual/en/errorfunc.constants.php
1048 */
1049define ('E_STRICT', 2048);
1050
1051/**
1052 * Run-time notices. Enable this to receive warnings about code
1053 * that will not work in future versions.
1054 * @link http://www.php.net/manual/en/errorfunc.constants.php
1055 */
1056define ('E_DEPRECATED', 8192);
1057
1058/**
1059 * Fatal errors that occur during PHP's initial startup. This is like an
1060 * E_ERROR, except it is generated by the core of PHP.
1061 * @link http://www.php.net/manual/en/errorfunc.constants.php
1062 */
1063define ('E_CORE_ERROR', 16);
1064
1065/**
1066 * Warnings (non-fatal errors) that occur during PHP's initial startup.
1067 * This is like an E_WARNING, except it is generated
1068 * by the core of PHP.
1069 * @link http://www.php.net/manual/en/errorfunc.constants.php
1070 */
1071define ('E_CORE_WARNING', 32);
1072
1073/**
1074 * Fatal compile-time errors. This is like an E_ERROR,
1075 * except it is generated by the Zend Scripting Engine.
1076 * @link http://www.php.net/manual/en/errorfunc.constants.php
1077 */
1078define ('E_COMPILE_ERROR', 64);
1079
1080/**
1081 * Compile-time warnings (non-fatal errors). This is like an
1082 * E_WARNING, except it is generated by the Zend
1083 * Scripting Engine.
1084 * @link http://www.php.net/manual/en/errorfunc.constants.php
1085 */
1086define ('E_COMPILE_WARNING', 128);
1087
1088/**
1089 * User-generated error message. This is like an
1090 * E_ERROR, except it is generated in PHP code by
1091 * using the PHP function trigger_error.
1092 * @link http://www.php.net/manual/en/errorfunc.constants.php
1093 */
1094define ('E_USER_ERROR', 256);
1095
1096/**
1097 * User-generated warning message. This is like an
1098 * E_WARNING, except it is generated in PHP code by
1099 * using the PHP function trigger_error.
1100 * @link http://www.php.net/manual/en/errorfunc.constants.php
1101 */
1102define ('E_USER_WARNING', 512);
1103
1104/**
1105 * User-generated notice message. This is like an
1106 * E_NOTICE, except it is generated in PHP code by
1107 * using the PHP function trigger_error.
1108 * @link http://www.php.net/manual/en/errorfunc.constants.php
1109 */
1110define ('E_USER_NOTICE', 1024);
1111
1112/**
1113 * User-generated warning message. This is like an
1114 * E_DEPRECATED, except it is generated in PHP code by
1115 * using the PHP function trigger_error.
1116 * @link http://www.php.net/manual/en/errorfunc.constants.php
1117 */
1118define ('E_USER_DEPRECATED', 16384);
1119
1120/**
1121 * All errors and warnings, as supported, except of level
1122 * E_STRICT prior to PHP 5.4.0.
1123 * @link http://www.php.net/manual/en/errorfunc.constants.php
1124 */
1125define ('E_ALL', 32767);
1126define ('DEBUG_BACKTRACE_PROVIDE_OBJECT', 1);
1127define ('DEBUG_BACKTRACE_IGNORE_ARGS', 2);
1128define ('TRUE', true);
1129define ('FALSE', false);
1130define ('NULL', null);
1131define ('ZEND_THREAD_SAFE', false);
1132define ('ZEND_DEBUG_BUILD', false);
1133define ('PHP_VERSION', "5.4.0RC6");
1134define ('PHP_MAJOR_VERSION', 5);
1135define ('PHP_MINOR_VERSION', 4);
1136define ('PHP_RELEASE_VERSION', 0);
1137define ('PHP_EXTRA_VERSION', "RC6");
1138define ('PHP_VERSION_ID', 50400);
1139define ('PHP_ZTS', 0);
1140define ('PHP_DEBUG', 0);
1141define ('PHP_OS', "Linux");
1142define ('PHP_SAPI', "cli");
1143define ('DEFAULT_INCLUDE_PATH', ".:/usr/local/zend/share/pear");
1144define ('PEAR_INSTALL_DIR', "/usr/local/zend/share/pear");
1145define ('PEAR_EXTENSION_DIR', "/usr/local/zend/lib/php/20100525");
1146define ('PHP_EXTENSION_DIR', "/usr/local/zend/lib/php/20100525");
1147define ('PHP_PREFIX', "/usr/local/zend");
1148define ('PHP_BINDIR', "/usr/local/zend/bin");
1149define ('PHP_MANDIR', "/usr/local/zend/man");
1150define ('PHP_LIBDIR', "/usr/local/zend/lib/php");
1151define ('PHP_DATADIR', "/usr/local/zend/share/php");
1152define ('PHP_SYSCONFDIR', "/usr/local/zend/etc");
1153define ('PHP_LOCALSTATEDIR', "/usr/local/zend/var");
1154define ('PHP_CONFIG_FILE_PATH', "/usr/local/zend/etc");
1155define ('PHP_CONFIG_FILE_SCAN_DIR', "/usr/local/zend/etc/conf.d");
1156define ('PHP_SHLIB_SUFFIX', "so");
1157define ('PHP_EOL', "\n");
1158define ('PHP_MAXPATHLEN', 4096);
1159define ('PHP_INT_MAX', 2147483647);
1160define ('PHP_INT_SIZE', 4);
1161define ('PHP_BINARY', "/usr/local/zend/bin/php");
1162define ('PHP_OUTPUT_HANDLER_START', 1);
1163define ('PHP_OUTPUT_HANDLER_WRITE', 0);
1164define ('PHP_OUTPUT_HANDLER_FLUSH', 4);
1165define ('PHP_OUTPUT_HANDLER_CLEAN', 2);
1166define ('PHP_OUTPUT_HANDLER_FINAL', 8);
1167define ('PHP_OUTPUT_HANDLER_CONT', 0);
1168define ('PHP_OUTPUT_HANDLER_END', 8);
1169define ('PHP_OUTPUT_HANDLER_CLEANABLE', 16);
1170define ('PHP_OUTPUT_HANDLER_FLUSHABLE', 32);
1171define ('PHP_OUTPUT_HANDLER_REMOVABLE', 64);
1172define ('PHP_OUTPUT_HANDLER_STDFLAGS', 112);
1173define ('PHP_OUTPUT_HANDLER_STARTED', 4096);
1174define ('PHP_OUTPUT_HANDLER_DISABLED', 8192);
1175define ('UPLOAD_ERR_OK', 0);
1176define ('UPLOAD_ERR_INI_SIZE', 1);
1177define ('UPLOAD_ERR_FORM_SIZE', 2);
1178define ('UPLOAD_ERR_PARTIAL', 3);
1179define ('UPLOAD_ERR_NO_FILE', 4);
1180define ('UPLOAD_ERR_NO_TMP_DIR', 6);
1181define ('UPLOAD_ERR_CANT_WRITE', 7);
1182define ('UPLOAD_ERR_EXTENSION', 8);
1183define ('STDIN', "Resource id #1");
1184define ('STDOUT', "Resource id #2");
1185define ('STDERR', "Resource id #3");
1186
1187// End of Core v.5.4.0RC6
1188?>