NAME ^

php_builtin.pir - PHP builtin Library

DESCRIPTION ^

Functions ^

bool class_exists(string classname [, bool autoload])

Checks if the class exists

NOT IMPLEMENTED.

string create_function(string args, string code)

Creates an anonymous function, and returns its name (funny, eh?)

NOT IMPLEMENTED.

array debug_backtrace([bool provide_object])

Return backtrace as array

NOT IMPLEMENTED.

void debug_print_backtrace(void)

NOT IMPLEMENTED.

bool define(string constant_name, mixed value, boolean case_sensitive=true)

Define a new constant

STILL INCOMPLETE.

bool defined(string constant_name)

Check whether a constant exists

array each(array arr)

Return the currently pointed key..value pair in the passed array, and advance the pointer to the next element

NOT IMPLEMENTED.

int error_reporting(int new_error_level=null)

Return the current error_reporting level, and if an argument was passed - change to the new level

DUMMY IMPLEMENTATION.

bool extension_loaded(string extension_name)

Returns true if the named extension is loaded. As currently no extensions are supported, this function always returns false.

mixed func_get_arg(int arg_num)

Get the $arg_num'th argument that was passed to the function

NOT IMPLEMENTED.

array func_get_args()

Get an array of the arguments that were passed to the function

NOT IMPLEMENTED.

int func_num_args(void)

Get the number of arguments that were passed to the function

NOT IMPLEMENTED.

bool function_exists(string function_name)

Checks if the function exists

NOT IMPLEMENTED.

string get_class([object object])

Retrieves the class name

NOT IMPLEMENTED.

array get_class_methods(mixed class)

Returns an array of method names for class or class instance.

NOT IMPLEMENTED.

array get_class_vars(string class_name)

Returns an array of default properties of the class.

NOT IMPLEMENTED.

array get_declared_classes()

Returns an array of all declared classes.

NOT IMPLEMENTED.

array get_declared_interfaces()

Returns an array of all declared interfaces.

NOT IMPLEMENTED.

array get_defined_constants([mixed categorize])

Return an array containing the names and values of all defined constants

NOT IMPLEMENTED.

array get_defined_functions(void)

Returns an array of all defined functions

NOT IMPLEMENTED.

array get_defined_vars(void)

Returns an associative array of names and values of all currently defined variable names (variables in the current scope)

NOT IMPLEMENTED.

array get_extension_funcs(string extension_name)

Returns an array with the names of functions belonging to the named extension

NOT IMPLEMENTED.

array get_included_files(void)

Returns an array with the file names that were include_once()'d

NOT IMPLEMENTED.

array get_loaded_extensions([bool zend_extensions])

Return an array containing names of loaded extensions

NOT IMPLEMENTED.

array get_object_vars(object obj)

Returns an array of object properties

NOT IMPLEMENTED.

string get_parent_class([mixed object])

Retrieves the parent class name for object or class or current scope.

NOT IMPLEMENTED.

string get_resource_type(resource res)

Get the resource type name for a given resource

bool interface_exists(string classname [, bool autoload])

Checks if the class exists

NOT IMPLEMENTED.

bool is_a(object object, string class_name)

Returns true if the object is of this class or has this class as one of its parents

NOT IMPLEMENTED.

bool is_subclass_of(object object, string class_name)

Returns true if the object has this class as one of its parents

NOT IMPLEMENTED.

void leak(int num_bytes=3)

Cause an intentional memory leak, for testing/debugging purposes

NOT IMPLEMENTED.

bool method_exists(object object, string method)

Checks if the class method exists

NOT IMPLEMENTED.

bool property_exists(mixed object_or_class, string property_name)

Checks if the object or class has a property

NOT IMPLEMENTED.

void restore_error_handler(void)

Restores the previously defined error handler function

NOT IMPLEMENTED.

void restore_exception_handler(void)

Restores the previously defined exception handler function

NOT IMPLEMENTED.

string set_error_handler(string error_handler [, int error_types])

Sets a user-defined error handler function. Returns the previously defined error handler, or false on error

NOT IMPLEMENTED.

string set_exception_handler(callable exception_handler)

Sets a user-defined exception handler function. Returns the previously defined exception handler, or false on error

NOT IMPLEMENTED.

int strcasecmp(string str1, string str2)

Binary safe case-insensitive string comparison

NOT IMPLEMENTED.

int strcmp(string str1, string str2)

Binary safe string comparison

int strlen(string str)

Get string length

int strncasecmp(string str1, string str2, int len)

Binary safe string comparison

NOT IMPLEMENTED.

int strncmp(string str1, string str2, int len)

Binary safe string comparison

NOT IMPLEMENTED.

void trigger_error(string messsage [, int error_type])

Generates a user-level error/warning/notice message

NOT IMPLEMENTED.

string zend_version(void)

Get the version of the Zend Engine

NOT IMPLEMENTED.


parrot