@@ 338-344 (lines=7) @@ | ||
335 | ||
336 | public function setErrorHandling($mode = null, $options = null) |
|
337 | { |
|
338 | if (isset($this) && is_a($this, 'PEAR')) { |
|
339 | $setmode = &$this->_default_error_mode; |
|
340 | $setoptions = &$this->_default_error_options; |
|
341 | } else { |
|
342 | $setmode = &$GLOBALS['_PEAR_default_error_mode']; |
|
343 | $setoptions = &$GLOBALS['_PEAR_default_error_options']; |
|
344 | } |
|
345 | ||
346 | switch ($mode) { |
|
347 | case references_PEAR_ERROR_EXCEPTION: |
|
@@ 693-699 (lines=7) @@ | ||
690 | public function pushErrorHandling($mode, $options = null) |
|
691 | { |
|
692 | $stack = &$GLOBALS['_PEAR_error_handler_stack']; |
|
693 | if (isset($this) && is_a($this, 'PEAR')) { |
|
694 | $def_mode = &$this->_default_error_mode; |
|
695 | $def_options = &$this->_default_error_options; |
|
696 | } else { |
|
697 | $def_mode = &$GLOBALS['_PEAR_default_error_mode']; |
|
698 | $def_options = &$GLOBALS['_PEAR_default_error_options']; |
|
699 | } |
|
700 | $stack[] = array($def_mode, $def_options); |
|
701 | ||
702 | if (isset($this) && is_a($this, 'PEAR')) { |