diff options
author | Stig Bakken <ssb@php.net> | 2001-12-14 07:47:41 +0000 |
---|---|---|
committer | Stig Bakken <ssb@php.net> | 2001-12-14 07:47:41 +0000 |
commit | 7ea3d574627ec02fa8d0f054c318cf3dae3ae2a4 (patch) | |
tree | 90fd5fa9b676736570c21bb2721393f9fd11db75 | |
parent | 2807e1742f1693f86e685ac0d9273806fdc67aaf (diff) | |
download | php-git-7ea3d574627ec02fa8d0f054c318cf3dae3ae2a4.tar.gz |
* update to new overload api
-rw-r--r-- | pear/PEAR/Autoloader.php | 7 |
1 files changed, 4 insertions, 3 deletions
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; } } |