From: Greg Beaver Date: Thu, 11 Sep 2003 16:45:03 +0000 (+0000) Subject: verified unit test pear2.phpt works with changes, removing old code X-Git-Tag: RELEASE_0_7~135 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=dcd7f23e6c4ce5ac9bded3fd517a3c66f1664698;p=php verified unit test pear2.phpt works with changes, removing old code --- diff --git a/pear/PEAR.php b/pear/PEAR.php index 06e63f6ac6..da40082604 100644 --- a/pear/PEAR.php +++ b/pear/PEAR.php @@ -311,45 +311,12 @@ class PEAR case PEAR_ERROR_CALLBACK: $setmode = $mode; -/* - $doSet = false; - // function callback - if (is_string($options) && function_exists($options)) { - $doSet = true; - } */ // class/object method callback if (is_callable($options)) { $setoptions = $options; } else { trigger_error("invalid error callback", E_USER_WARNING); } -/* if (is_array($options)) { - if (isset($options[0]) && isset($options[1])) { - $options = array(&$options[0], $options[1]); - if (is_string($options[1])) { - // static method callback - if (is_string($options[0])) { - if (class_exists($options[0]) && - in_array(strtolower($options[1]), - get_class_methods($options[0]))) - { - $doSet = true; - } - } - // object method callback - if (is_object($options[0])) { - if (method_exists($options[0], $options[1])) { - $doSet = true; - } - } - } - } - } - if ($doSet) { - $setoptions = $options; - } else { - trigger_error("invalid error callback", E_USER_WARNING); - } */ break; default: