]> granicus.if.org Git - php/commitdiff
verified unit test pear2.phpt works with changes, removing old code
authorGreg Beaver <cellog@php.net>
Thu, 11 Sep 2003 16:45:03 +0000 (16:45 +0000)
committerGreg Beaver <cellog@php.net>
Thu, 11 Sep 2003 16:45:03 +0000 (16:45 +0000)
pear/PEAR.php

index 06e63f6ac62602194f1205c327728cad484ad49a..da400826049ee07ffe8eab2e8cb181e25569158c 100644 (file)
@@ -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: