summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--pear/PEAR/Autoloader.php7
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;
}
}