/** * Pop the last error handler used * * @return bool Always true * * @see myshop_PEAR::pushErrorHandling */ function popErrorHandling() { $stack =& $GLOBALS['_PEAR_error_handler_stack']; array_pop($stack); list($mode, $options) = $stack[sizeof($stack) - 1]; array_pop($stack); if (isset($this) && is_a($this, 'PEAR')) { $this->setErrorHandling($mode, $options); } else { myshop_PEAR::setErrorHandling($mode, $options); } return true; }