Bearsampp 2026.9.23
Loading...
Searching...
No Matches
ErrorStack.php File Reference

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

Variable Documentation

◆ $GLOBALS [1/4]

$GLOBALS[ '_PEAR_ERRORSTACK_DEFAULT_CALLBACK']
Initial value:
= array(
'*' => false,
)

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

See also
PEAR_ErrorStack::setDefaultCallback() @access private @global array $GLOBALS['_PEAR_ERRORSTACK_DEFAULT_CALLBACK']

Definition at line 57 of file ErrorStack.php.

◆ $GLOBALS [2/4]

$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

See also
PEAR_ErrorStack::setDefaultLogger() @access private @global array $GLOBALS['_PEAR_ERRORSTACK_DEFAULT_LOGGER']

Definition at line 70 of file ErrorStack.php.

◆ $GLOBALS [3/4]

$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

See also
PEAR_ErrorStack::staticPushCallback() @access private @global array $GLOBALS['_PEAR_ERRORSTACK_DEFAULT_LOGGER']

Definition at line 81 of file ErrorStack.php.

◆ $GLOBALS [4/4]

$GLOBALS[ '_PEAR_ERRORSTACK_SINGLETON'] = array()

◆ $stack

◆ PEAR_ERRORSTACK_DIE

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().

◆ PEAR_ERRORSTACK_ERR_NONCLASS

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().

◆ PEAR_ERRORSTACK_ERR_OBJTOSTRING

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().

◆ PEAR_ERRORSTACK_IGNORE

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().

◆ PEAR_ERRORSTACK_LOG

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().

◆ 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().

◆ PEAR_ERRORSTACK_PUSHANDLOG

const PEAR_ERRORSTACK_PUSHANDLOG 1

#+ One of four possible return values from the error Callback

See also
PEAR_ErrorStack::_errorCallback() If this is returned, then the error will be both pushed onto the stack and logged.

Definition at line 91 of file ErrorStack.php.