From dcd7f23e6c4ce5ac9bded3fd517a3c66f1664698 Mon Sep 17 00:00:00 2001 From: Greg Beaver Date: Thu, 11 Sep 2003 16:45:03 +0000 Subject: [PATCH] verified unit test pear2.phpt works with changes, removing old code --- pear/PEAR.php | 33 --------------------------------- 1 file changed, 33 deletions(-) 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: -- 2.50.1