src/PEAR/ErrorStack.php
function PEAR_ErrorStack($package, $msgCallback = false, $contextCallback = false,
                         $throwPEAR_Error = false)
    {
        $this->_package = $package;
        $this->setMessageCallback($msgCallback);
        $this->setContextCallback($contextCallback);
        $this->_compat = $throwPEAR_Error;
    }
function PEAR_ErrorStack($package, $msgCallback = false, $contextCallback = false,
                         $throwPEAR_Error = false)
    {
        $this->_package = $package;
        $this->setMessageCallback($msgCallback);
        $this->setContextCallback($contextCallback);
        $this->_compat = $throwPEAR_Error;
    }
Set up a new error stack

@param string   $package name of the package this error stack represents
@param callback $msgCallback callback used for error message generation
@param callback $contextCallback callback used for context generation,
defaults to {@link getFileLine()}
@param boolean  $throwPEAR_Error