require_once 'PEAR/ErrorStack.php'; |
PEAR_ErrorStack& PEAR_ErrorStack::singleton
(string $package [, callback $msgCallback = FALSE [, callback $contextCallback = FALSE [, boolean $throwPEAR_Error = FALSE [, string $exceptionClass = NULL [, string $stackClass = 'PEAR_ErrorStack']]]]])
Note that all parameters are ignored if the stack for package $package has already been instantiated
name of the package this error stack represents
callback used for error message generation
callback used for context generation, defaults to getFileLine()
If TRUE, then PEAR::raiseError() will be called and a PEAR_Error object will be returned from calls to PEAR_ErrorStack::push()
exception class to instantiate if running in PHP 5
class to instantiate