cvs: php4 /pear/PEAR Remote.php
| From: | Alan Knowles | Date: | Fri, 14 Jun 2002 14:55:28 +0000 |
| Subject: | cvs: php4 /pear/PEAR Remote.php | ||
| Groups: | php.pear.cvs | ||
| Request: | Send a blank email to pear-cvs+get-4619@lists.php.net to get a copy of this message | ||
alan_k Fri Jun 14 10:55:28 2002 EDT
Modified files:
/php4/pear/PEAR Remote.php
Log:
Fixed XML RPC sending of args - lets try and get the right tag :)
Index: php4/pear/PEAR/Remote.php
diff -u php4/pear/PEAR/Remote.php:1.24 php4/pear/PEAR/Remote.php:1.25
--- php4/pear/PEAR/Remote.php:1.24 Sun May 26 08:52:16 2002
+++ php4/pear/PEAR/Remote.php Fri Jun 14 10:55:28 2002
@@ -16,7 +16,7 @@
// | Author: Stig Bakken <ssb@fast.no> |
// +----------------------------------------------------------------------+
//
-// $Id: Remote.php,v 1.24 2002/05/26 12:52:16 ssb Exp $
+// $Id: Remote.php,v 1.25 2002/06/14 14:55:28 alan_k Exp $
require_once 'PEAR.php';
require_once 'PEAR/Config.php';
@@ -63,7 +63,9 @@
$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);
@@ -262,4 +264,4 @@
}
-?>
\ No newline at end of file
+?>