![]() |
Bearsampp 2026.9.23
|
Go to the source code of this file.
Data Structures | |
| class | PEAR_ErrorStack |
Namespaces | |
| namespace | PEAR_ErrorStack |
Variables | |
| $GLOBALS ['_PEAR_ERRORSTACK_DEFAULT_CALLBACK'] | |
| $GLOBALS ['_PEAR_ERRORSTACK_DEFAULT_LOGGER'] = false | |
| $GLOBALS ['_PEAR_ERRORSTACK_OVERRIDE_CALLBACK'] = array() | |
| $GLOBALS ['_PEAR_ERRORSTACK_SINGLETON'] = array() | |
| $stack = &PEAR_ErrorStack::singleton('PEAR_ErrorStack') | |
| const | PEAR_ERRORSTACK_DIE 5 |
| const | PEAR_ERRORSTACK_ERR_NONCLASS 1 |
| const | PEAR_ERRORSTACK_ERR_OBJTOSTRING 2 |
| const | PEAR_ERRORSTACK_IGNORE 4 |
| const | PEAR_ERRORSTACK_LOG 3 |
| const | PEAR_ERRORSTACK_PUSH 2 |
| const | PEAR_ERRORSTACK_PUSHANDLOG 1 |
| $GLOBALS[ '_PEAR_ERRORSTACK_DEFAULT_CALLBACK'] |
Global error callback (default)
This is only used if set to non-false. * is the default callback for all packages, whereas specific packages may set a default callback for all instances, regardless of whether they are a singleton or not.
To exclude non-singletons, only set the local callback for the singleton
Definition at line 57 of file ErrorStack.php.
| $GLOBALS[ '_PEAR_ERRORSTACK_DEFAULT_LOGGER'] = false |
Global Log object (default)
This is only used if set to non-false. Use to set a default log object for all stacks, regardless of instantiation order or location
Definition at line 70 of file ErrorStack.php.
| $GLOBALS[ '_PEAR_ERRORSTACK_OVERRIDE_CALLBACK'] = array() |
Global Overriding Callback
This callback will override any error callbacks that specific loggers have set. Use with EXTREME caution
Definition at line 81 of file ErrorStack.php.
| $GLOBALS[ '_PEAR_ERRORSTACK_SINGLETON'] = array() |
Singleton storage
Format:
array( 'package1' => PEAR_ErrorStack object, 'package2' => PEAR_ErrorStack object, ... )
@access private @global array $GLOBALS['_PEAR_ERRORSTACK_SINGLETON']
Definition at line 43 of file ErrorStack.php.
Referenced by PEAR_ErrorStack\_log(), PEAR_ErrorStack\push(), PEAR_ErrorStack\setDefaultCallback(), PEAR_ErrorStack\setDefaultLogger(), PEAR_ErrorStack\singleton(), PEAR_ErrorStack\staticGetErrors(), PEAR_ErrorStack\staticHasErrors(), PEAR_ErrorStack\staticPop(), PEAR_ErrorStack\staticPopCallback(), and PEAR_ErrorStack\staticPushCallback().
| $stack = &PEAR_ErrorStack::singleton('PEAR_ErrorStack') |
Definition at line 977 of file ErrorStack.php.
Referenced by PEAR\_popErrorHandling(), PEAR\_pushErrorHandling(), PEAR_ErrorStack\getErrorMessage(), PEAR\staticPopErrorHandling(), and PEAR\staticPushErrorHandling().
| const PEAR_ERRORSTACK_DIE 5 |
If this is returned, then the error is logged and die() is called.
Definition at line 109 of file ErrorStack.php.
Referenced by PEAR_ErrorStack\push().
| const PEAR_ERRORSTACK_ERR_NONCLASS 1 |
#- Error code for an attempt to instantiate a non-class as a PEAR_ErrorStack in the singleton method.
Definition at line 116 of file ErrorStack.php.
Referenced by PEAR_ErrorStack\singleton().
| const PEAR_ERRORSTACK_ERR_OBJTOSTRING 2 |
Error code for an attempt to pass an object into PEAR_ErrorStack::getMessage() that has no __toString() method
Definition at line 122 of file ErrorStack.php.
Referenced by PEAR_ErrorStack\getErrorMessage().
| const PEAR_ERRORSTACK_IGNORE 4 |
If this is returned, then the error is completely ignored.
Definition at line 105 of file ErrorStack.php.
Referenced by PEAR_ErrorStack\push().
| const PEAR_ERRORSTACK_LOG 3 |
If this is returned, then the error will only be logged, but not pushed onto the error stack.
Definition at line 101 of file ErrorStack.php.
Referenced by PEAR_ErrorStack\push().
| const PEAR_ERRORSTACK_PUSH 2 |
If this is returned, then the error will only be pushed onto the stack, and not logged.
Definition at line 96 of file ErrorStack.php.
Referenced by PEAR_ErrorStack\push().
| const PEAR_ERRORSTACK_PUSHANDLOG 1 |
#+ One of four possible return values from the error Callback
Definition at line 91 of file ErrorStack.php.