ILIAS  release_5-3 Revision v5.3.23-19-g915713cf615
PEAR.php File Reference

Go to the source code of this file.

Data Structures

class  PEAR
 
class  PEAR_Error
 

Namespaces

 PEAR
 

Functions

 _PEAR_call_destructors ()
 

Variables

const PEAR_ERROR_RETURN 1
 #+ ERROR constants More...
 
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. More...
 
const PEAR_ZE2 (function_exists('version_compare') && version_compare(zend_version(), "2-dev", "ge"))
 #- More...
 
if(substr(PHP_OS, 0, 3)=='WIN') else
 
const OS_UNIX true
 
const PEAR_OS 'Unix'
 
if(!defined('PATH_SEPARATOR')) $GLOBALS ['_PEAR_default_error_mode'] = PEAR_ERROR_RETURN
 
 $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()

_PEAR_call_destructors ( )

Definition at line 777 of file PEAR.php.

References $GLOBALS, array, and PEAR\getStaticProperty().

778 {
779  global $_PEAR_destructor_object_list;
780  if (is_array($_PEAR_destructor_object_list) &&
781  sizeof($_PEAR_destructor_object_list))
782  {
783  reset($_PEAR_destructor_object_list);
784  if (PEAR::getStaticProperty('PEAR', 'destructlifo')) {
785  $_PEAR_destructor_object_list = array_reverse($_PEAR_destructor_object_list);
786  }
787  while (list($k, $objref) = each($_PEAR_destructor_object_list)) {
788  $classname = get_class($objref);
789  while ($classname) {
790  $destructor = "_$classname";
791  if (method_exists($objref, $destructor)) {
792  $objref->$destructor();
793  break;
794  } else {
795  $classname = get_parent_class($classname);
796  }
797  }
798  }
799  // Empty the object list to ensure that destructors are
800  // not called more than once.
801  $_PEAR_destructor_object_list = array();
802  }
803 
804  // Now call the shutdown functions
805  if (is_array($GLOBALS['_PEAR_shutdown_funcs']) AND !empty($GLOBALS['_PEAR_shutdown_funcs'])) {
806  foreach ($GLOBALS['_PEAR_shutdown_funcs'] as $value) {
807  call_user_func_array($value[0], $value[1]);
808  }
809  }
810 }
static & getStaticProperty($class, $var)
If you have a class that's mostly/entirely static, and you need static properties, you can use this method to simulate them.
Definition: PEAR.php:231
if(!defined('PATH_SEPARATOR')) $GLOBALS['_PEAR_default_error_mode']
Definition: PEAR.php:64
Create styles array
The data for the language used.
+ Here is the call graph for this function:

Variable Documentation

◆ $GLOBALS [1/5]

◆ $GLOBALS [2/5]

$GLOBALS[ '_PEAR_default_error_options'] = E_USER_NOTICE

Definition at line 65 of file PEAR.php.

◆ $GLOBALS [3/5]

$GLOBALS[ '_PEAR_destructor_object_list'] = array()

Definition at line 66 of file PEAR.php.

◆ $GLOBALS [4/5]

$GLOBALS[ '_PEAR_shutdown_funcs'] = array()

Definition at line 67 of file PEAR.php.

◆ $GLOBALS [5/5]

$GLOBALS[ '_PEAR_error_handler_stack'] = array()

Definition at line 68 of file PEAR.php.

◆ else

if (substr(PHP_OS, 0, 3)=='WIN') else
Initial value:
{
define('OS_WINDOWS', false)

Definition at line 49 of file PEAR.php.

◆ OS_UNIX

const OS_UNIX true

Definition at line 51 of file PEAR.php.

◆ PEAR_ERROR_CALLBACK

◆ PEAR_ERROR_DIE

◆ PEAR_ERROR_EXCEPTION

const PEAR_ERROR_EXCEPTION 32

◆ PEAR_ERROR_PRINT

◆ PEAR_ERROR_RETURN

◆ PEAR_ERROR_TRIGGER

◆ PEAR_OS

const PEAR_OS 'Unix'

Definition at line 52 of file PEAR.php.

◆ PEAR_ZE2

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

#-

Definition at line 42 of file PEAR.php.