From: Stig Bakken Date: Fri, 14 Dec 2001 07:47:41 +0000 (+0000) Subject: * update to new overload api X-Git-Tag: PRE_ISSET_PATCH~553 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=7ea3d574627ec02fa8d0f054c318cf3dae3ae2a4;p=php * update to new overload api --- diff --git a/pear/PEAR/Autoloader.php b/pear/PEAR/Autoloader.php index 2e18148af2..bc24dbb470 100644 --- a/pear/PEAR/Autoloader.php +++ b/pear/PEAR/Autoloader.php @@ -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; } }