From: Stig Bakken Date: Sun, 31 Mar 2002 01:45:36 +0000 (+0000) Subject: * oops, config object was copied X-Git-Tag: php-4.3.0dev-ZendEngine2-Preview1~950 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=5e13ee14285dcb9a34e16af85c31a9d042abbff1;p=php * oops, config object was copied * call parameters were not passed on to xmlrpc_encode_request() --- diff --git a/pear/PEAR/Remote.php b/pear/PEAR/Remote.php index 1f20db6508..482ff88dde 100644 --- a/pear/PEAR/Remote.php +++ b/pear/PEAR/Remote.php @@ -38,7 +38,7 @@ class PEAR_Remote extends PEAR function PEAR_Remote(&$config) { $this->PEAR(); - $this->config = $config; + $this->config = &$config; } // }}} @@ -50,6 +50,8 @@ class PEAR_Remote extends PEAR if (!extension_loaded("xmlrpc")) { return $this->raiseError("xmlrpc support not loaded"); } + $params = func_get_args(); + array_shift($params); $method = str_replace("_", ".", $method); $request = xmlrpc_encode_request($method, $params); $server_host = $this->config->get("master_server");