diff options
author | Alan Knowles <alan_k@php.net> | 2002-06-14 14:51:35 +0000 |
---|---|---|
committer | Alan Knowles <alan_k@php.net> | 2002-06-14 14:51:35 +0000 |
commit | 7455ded099d1ff638b878b1c85188f1562c90b6a (patch) | |
tree | 2b0ebd840cf50661c10cec9f41653959af942139 | |
parent | 45401d43dc737c1fdda130c38fcb6384dbd49428 (diff) | |
download | php-git-7455ded099d1ff638b878b1c85188f1562c90b6a.tar.gz |
Fixed XML RPC sending of args
-rw-r--r-- | pear/PEAR/Remote.php | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/pear/PEAR/Remote.php b/pear/PEAR/Remote.php index 43a5af8618..cb53031b84 100644 --- a/pear/PEAR/Remote.php +++ b/pear/PEAR/Remote.php @@ -63,7 +63,9 @@ class PEAR_Remote extends PEAR $server_host = $this->config->get('master_server'); $username = $this->config->get('username'); $password = $this->config->get('password'); - $f = new XML_RPC_Message($method, $this->_encode($args)); + $eargs = array(); + foreach($args as $arg) $eargs[] = $this->_encode($arg); + $f = new XML_RPC_Message($method, $eargs); $c = new XML_RPC_Client('/xmlrpc.php', $server_host, 80); if ($username && $password) { $c->setCredentials($username, $password); @@ -203,7 +205,7 @@ class PEAR_Remote extends PEAR $type = gettype($php_val); $xmlrpcval = new XML_RPC_Value; - + switch($type) { case "array": reset($php_val); @@ -262,4 +264,4 @@ class PEAR_Remote extends PEAR } -?>
\ No newline at end of file +?> |