]> granicus.if.org Git - php/commitdiff
* update to new overload api
authorStig Bakken <ssb@php.net>
Fri, 14 Dec 2001 07:47:41 +0000 (07:47 +0000)
committerStig Bakken <ssb@php.net>
Fri, 14 Dec 2001 07:47:41 +0000 (07:47 +0000)
pear/PEAR/Autoloader.php

index 2e18148af25f3111baeb539e969f89b3c3914de4..bc24dbb470f9c47871cc299e35b72fb322d93d1e 100644 (file)
@@ -149,15 +149,16 @@ class PEAR_Autoloader extends PEAR
      * @return mixed  The return value from the aggregated method, or a PEAR
      *                error if the called method was unknown.
      */
-    function __call($method, $args)
+    function __call($method, $args, &$retval)
     {
         if (empty($this->_method_map[$method]) && isset($this->_autoload_map[$method])) {
             $this->addAggregateObject($this->_autoload_map[$method]);
         }
         if (isset($this->_method_map[$method])) {
-            return call_user_func_array(array($this->_method_map[$method], $method), $args);
+            $retval = call_user_func_array(array($this->_method_map[$method], $method), $args);
+            return true;
         }
-        return $this->raiseError("undefined method: $method");
+        return false;
     }
 }