You are here

function PEAR::popErrorHandling in Calendar Systems 5

Pop the last error handler used

Return value

bool Always true

See also

PEAR::pushErrorHandling

File

calendar/lib/PEAR.php, line 716

Class

PEAR
Base class for other PEAR classes. Provides rudimentary emulation of destructors.

Code

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 {
    PEAR::setErrorHandling($mode, $options);
  }
  return true;
}