PEAR_ErrorStack
&
PEAR_ErrorStack::singleton
(
string
$package
,
callback
$msgCallback
= false
,
callback
$contextCallback
= false
,
boolean
$throwPEAR_Error
= false
,
string
$stackClass = 'PEAR_ErrorStack'
)
As of PEAR 1.3.2, PEAR_ErrorStack no longer instantiates and returns an Exception object in PHP5, and the second-to-last parameter has been removed. Code that relies upon this behavior will break.
Note that all parameters are ignored if the stack for package $package has already been instantiated
$package
name of the package this error stack represents
$msgCallback
callback used for error message generation
$contextCallback
callback used for context generation, defaults to getFileLine()
$throwPEAR_Error
If TRUE, then PEAR::raiseError() will be called and a PEAR_Error object will be returned from calls to PEAR_ErrorStack::push()
$stackClass
class to instantiate
No exceptions thrown.
This function should be called statically.