@@ 325-331 (lines=7) @@ | ||
322 | ||
323 | function setErrorHandling($mode = null, $options = null) |
|
324 | { |
|
325 | if (isset($this) && is_a($this, 'PEAR')) { |
|
326 | $setmode = &$this->_default_error_mode; |
|
327 | $setoptions = &$this->_default_error_options; |
|
328 | } else { |
|
329 | $setmode = &$GLOBALS['_PEAR_default_error_mode']; |
|
330 | $setoptions = &$GLOBALS['_PEAR_default_error_options']; |
|
331 | } |
|
332 | ||
333 | switch ($mode) { |
|
334 | case PEAR_ERROR_EXCEPTION: |
|
@@ 678-684 (lines=7) @@ | ||
675 | function pushErrorHandling($mode, $options = null) |
|
676 | { |
|
677 | $stack = &$GLOBALS['_PEAR_error_handler_stack']; |
|
678 | if (isset($this) && is_a($this, 'PEAR')) { |
|
679 | $def_mode = &$this->_default_error_mode; |
|
680 | $def_options = &$this->_default_error_options; |
|
681 | } else { |
|
682 | $def_mode = &$GLOBALS['_PEAR_default_error_mode']; |
|
683 | $def_options = &$GLOBALS['_PEAR_default_error_options']; |
|
684 | } |
|
685 | $stack[] = array($def_mode, $def_options); |
|
686 | ||
687 | if (isset($this) && is_a($this, 'PEAR')) { |