vrana Wed Aug 22 11:31:40 2007 UTC
Modified files: /phpdoc funcsummary.txt Log: Zend functions (requested by Robert Maslo) http://cvs.php.net/viewvc.cgi/phpdoc/funcsummary.txt?r1=1.30&r2=1.31&diff_format=u Index: phpdoc/funcsummary.txt diff -u phpdoc/funcsummary.txt:1.30 phpdoc/funcsummary.txt:1.31 --- phpdoc/funcsummary.txt:1.30 Thu Jul 12 15:12:36 2007 +++ phpdoc/funcsummary.txt Wed Aug 22 11:31:40 2007 @@ -6188,3 +6188,124 @@ Get all headers from the response bool nsapi_virtual(string uri) Perform an NSAPI sub-request +# Zend/zend_API.c +void display_disabled_function(void) U + Dummy function which displays an error when a disabled function is called. +# Zend/zend_builtin_functions.c +bool class_exists(string classname [, bool autoload]) U + Checks if the class exists +void crash(void) U + Cause the process to crash by copying data to an inaccesible location +string create_function(string args, string code) U + Creates an anonymous function, and returns its name (funny, eh?) +array debug_backtrace(void) U + Return backtrace as array +void debug_print_backtrace(void) U */ + ZEND_FUNCTION(debug_print_backtrace) { zend_execute_data *ptr, *skip; int lineno; zstr function_name; char *filename; zstr class_name; char *call_type; char *include_filename = NULL; zval *arg_array = NULL; void **cur_arg_pos = EG(argument_stack).top_element; void **args = cur_arg_pos; int arg_stack_consistent = 0; int frames_on_stack = 0; int indent = 0; if (ZEND_NUM_ARGS()) { ZEND_WRONG_PARAM_COUNT(); } while (--args > EG(argument_stack).elements) { if (*args--) { break; } args -= *(ulong*)args; frames_on_stack++; /* skip args from incomplete frames +bool define(string constant_name, mixed value, boolean case_sensitive=true) U + Define a new constant +bool defined(string constant_name) U + Check whether a constant exists +array each(array arr) U + Return the currently pointed key..value pair in the passed array, and advance the pointer to the next element +int error_reporting(int new_error_level=null) U + Return the current error_reporting level, and if an argument was passed - change to the new level +bool extension_loaded(string extension_name) U + Returns true if the named extension is loaded +mixed func_get_arg(int arg_num) U + Get the $arg_num'th argument that was passed to the function +array func_get_args() U + Get an array of the arguments that were passed to the function +int func_num_args(void) U + Get the number of arguments that were passed to the function +bool function_exists(string function_name) U + Checks if the function exists +string get_class([object object]) U + Retrieves the class name +array get_class_methods(mixed class) U + Returns an array of method names for class or class instance. +array get_class_vars(string class_name) U + Returns an array of default properties of the class. +array get_declared_classes() U + Returns an array of all declared classes. +array get_declared_interfaces() U + Returns an array of all declared interfaces. +array get_defined_constants([bool categorize]) U + Return an array containing the names and values of all defined constants +array get_defined_functions(void) U + Returns an array of all defined functions +array get_defined_vars(void) U + Returns an associative array of names and values of all currently defined variable names (variables in the current scope) +array get_extension_funcs(string extension_name) U + Returns an array with the names of functions belonging to the named extension +array get_included_files(void) U + Returns an array with the file names that were included (includes require and once varieties) +array get_loaded_extensions([bool zend_extensions]) U + Return an array containing names of loaded extensions +array get_object_vars(object obj) U + Returns an array of object properties +string get_parent_class([mixed object]) U + Retrieves the parent class name for object or class or current scope. +string get_resource_type(resource res) U + Get the resource type name for a given resource +bool interface_exists(string classname [, bool autoload]) U + Checks if the class exists +bool is_a(object object, string class_name) U + Returns true if the object is of this class or has this class as one of its parents +bool is_subclass_of(object object, string class_name) U + Returns true if the object has this class as one of its parents +void leak(int num_bytes=3) U + Cause an intentional memory leak, for testing/debugging purposes +bool method_exists(object object, string method) U + Checks if the class method exists +bool property_exists(mixed object_or_class, string property_name) U + Checks if the object or class has a property +void restore_error_handler(void) U + Restores the previously defined error handler function +void restore_exception_handler(void) U + Restores the previously defined exception handler function +string set_error_handler(string error_handler [, int error_types]) U + Sets a user-defined error handler function. Returns the previously defined error handler, or false on error +string set_exception_handler(callable exception_handler) U + Sets a user-defined exception handler function. Returns the previously defined exception handler, or false on error +int strcasecmp(string str1, string str2) U + Binary safe case-insensitive string comparison +int strcmp(string str1, string str2) U + Binary safe string comparison +int strlen(string str) U + Get string length +int strncasecmp(string str1, string str2, int len) U + Binary safe string comparison +int strncmp(string str1, string str2, int len) U + Binary safe string comparison +void trigger_error(string messsage [, int error_type]) U + Generates a user-level error/warning/notice message +void zend_test_func(mixed arg1, mixed arg2) U + Generic test function +int zend_thread_id(void) U + Returns a unique identifier for the current thread +string zend_version(void) U + Get the version of the Zend Engine +# Zend/zend_exceptions.c +int ErrorException::getSeverity() U + Get the exception severity +Exception Exception::__clone() U + Clone the exception object +string Exception::__toString() U + Obtain the string representation of the Exception object +int Exception::getCode() U + Get the exception code +string Exception::getFile() U + Get the file in which the exception occurred +int Exception::getLine() U + Get the line in which the exception occurred +string Exception::getMessage() U + Get the exception message +array Exception::getTrace() U + Get the stack trace for the location in which the exception occurred +string Exception::getTraceAsString() U + Obtain the backtrace for the exception as a string (instead of an array) +Exception::__construct(string message, int code) U + Exception constructor +ErrorException::__construct(string message, int code, int severity [, string filename [, int lineno]]) U + ErrorException constructor