ILIAS  Release_4_0_x_branch Revision 61816
 All Data Structures Namespaces Files Functions Variables Groups Pages
PEAR.php File Reference

Go to the source code of this file.

Data Structures

class  PEAR
class  PEAR_Error

Namespaces

namespace  PEAR

Functions

 _PEAR_call_destructors ()

Variables

const PEAR_ERROR_RETURN = 1
 #@+ ERROR constants
const PEAR_ERROR_PRINT = 2
const PEAR_ERROR_TRIGGER = 4
const PEAR_ERROR_DIE = 8
const PEAR_ERROR_CALLBACK = 16
const PEAR_ERROR_EXCEPTION = 32
 WARNING: obsolete.
const PEAR_ZE2 = (function_exists('version_compare') && version_compare(zend_version(), "2-dev", "ge"))
 #@-
 $GLOBALS ['_PEAR_default_error_options'] = E_USER_NOTICE
 $GLOBALS ['_PEAR_destructor_object_list'] = array()
 $GLOBALS ['_PEAR_shutdown_funcs'] = array()
 $GLOBALS ['_PEAR_error_handler_stack'] = array()

Function Documentation

_PEAR_call_destructors ( )

Definition at line 773 of file PEAR.php.

References $GLOBALS, and PEAR\getStaticProperty().

{
global $_PEAR_destructor_object_list;
if (is_array($_PEAR_destructor_object_list) &&
sizeof($_PEAR_destructor_object_list))
{
reset($_PEAR_destructor_object_list);
if (PEAR::getStaticProperty('PEAR', 'destructlifo')) {
$_PEAR_destructor_object_list = array_reverse($_PEAR_destructor_object_list);
}
while (list($k, $objref) = each($_PEAR_destructor_object_list)) {
$classname = get_class($objref);
while ($classname) {
$destructor = "_$classname";
if (method_exists($objref, $destructor)) {
$objref->$destructor();
break;
} else {
$classname = get_parent_class($classname);
}
}
}
// Empty the object list to ensure that destructors are
// not called more than once.
$_PEAR_destructor_object_list = array();
}
// Now call the shutdown functions
if (is_array($GLOBALS['_PEAR_shutdown_funcs']) AND !empty($GLOBALS['_PEAR_shutdown_funcs'])) {
foreach ($GLOBALS['_PEAR_shutdown_funcs'] as $value) {
call_user_func_array($value[0], $value[1]);
}
}
}

+ Here is the call graph for this function:

Variable Documentation

$GLOBALS['_PEAR_default_error_options'] = E_USER_NOTICE

Definition at line 65 of file PEAR.php.

$GLOBALS['_PEAR_destructor_object_list'] = array()

Definition at line 66 of file PEAR.php.

$GLOBALS['_PEAR_shutdown_funcs'] = array()

Definition at line 67 of file PEAR.php.

$GLOBALS['_PEAR_error_handler_stack'] = array()

Definition at line 68 of file PEAR.php.

const PEAR_ERROR_EXCEPTION = 32
const PEAR_ZE2 = (function_exists('version_compare') && version_compare(zend_version(), "2-dev", "ge"))

#@-

Definition at line 42 of file PEAR.php.