summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTomas V.V.Cox <cox@php.net>2001-08-31 16:12:33 +0000
committerTomas V.V.Cox <cox@php.net>2001-08-31 16:12:33 +0000
commit4861c0cf99f77289fb60f45aabcf8d43e911ec5f (patch)
tree7b96e48d2fd8b677eccafa0097d8f0f17653e37d
parent357dfd5f1455dacb0112cd91349826023e357b1a (diff)
downloadphp-git-4861c0cf99f77289fb60f45aabcf8d43e911ec5f.tar.gz
Use _default_error_options as the options for PEAR_ERROR_CALLBACK.
Depreciate the use of _default_error_callback
-rw-r--r--pear/PEAR.php12
1 files changed, 6 insertions, 6 deletions
diff --git a/pear/PEAR.php b/pear/PEAR.php
index d0e3ddffc1..8ca8b81a72 100644
--- a/pear/PEAR.php
+++ b/pear/PEAR.php
@@ -234,11 +234,11 @@ class PEAR
if (isset($this)) {
$setmode = &$this->_default_error_mode;
$setoptions = &$this->_default_error_options;
- $setcallback = &$this->_default_error_callback;
+ //$setcallback = &$this->_default_error_callback;
} else {
$setmode = &$GLOBALS['_PEAR_default_error_mode'];
$setoptions = &$GLOBALS['_PEAR_default_error_options'];
- $setcallback = &$GLOBALS['_PEAR_default_error_callback'];
+ //$setcallback = &$GLOBALS['_PEAR_default_error_callback'];
}
switch ($mode) {
@@ -256,7 +256,7 @@ class PEAR
if ((is_string($options) && function_exists($options)) ||
(is_array($options) && method_exists(@$options[0], @$options[1])))
{
- $setcallback = $options;
+ $setoptions = $options;
} else {
trigger_error("invalid error callback", E_USER_WARNING);
}
@@ -389,10 +389,10 @@ class PEAR
!(is_array($options) && sizeof($options) == 2 &&
is_object($options[0]) && is_string($options[1])))
{
- if (isset($this) && isset($this->_default_error_callback)) {
- $options = $this->_default_error_callback;
+ if (isset($this) && isset($this->_default_error_options)) {
+ $options = $this->_default_error_options;
} else {
- $options = $GLOBALS['_PEAR_default_error_callback'];
+ $options = $GLOBALS['_PEAR_default_error_options'];
}
}
} else {