]> granicus.if.org Git - php/commitdiff
* oops, config object was copied
authorStig Bakken <ssb@php.net>
Sun, 31 Mar 2002 01:45:36 +0000 (01:45 +0000)
committerStig Bakken <ssb@php.net>
Sun, 31 Mar 2002 01:45:36 +0000 (01:45 +0000)
* call parameters were not passed on to xmlrpc_encode_request()

pear/PEAR/Remote.php

index 1f20db6508c6cf07cd54c0ea0cc4b3168fb1cf4a..482ff88dde94453d837b62c7c14aea24e8760b80 100644 (file)
@@ -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");