Re: cvs: php4(NEW_UI_API) /pear/PEAR Remote.php

From: Date: Fri, 14 Jun 2002 22:41:51 +0000
Subject: Re: cvs: php4(NEW_UI_API) /pear/PEAR Remote.php
References: 1  Groups: php.pear.cvs 
Request: Send a blank email to pear-cvs+get-4627@lists.php.net to get a copy of this message
Hi Alan, Did you intend to commit this in the NEW_UI_API branch? - Stig On Fri, 2002-06-14 at 16:51, Alan Knowles wrote: > alan_k Fri Jun 14 10:51:36 2002 EDT > > Modified files: (Branch: NEW_UI_API) > /php4/pear/PEAR Remote.php > Log: > Fixed XML RPC sending of args > > Index: php4/pear/PEAR/Remote.php > diff -u php4/pear/PEAR/Remote.php:1.24 php4/pear/PEAR/Remote.php:1.24.2.1 > --- php4/pear/PEAR/Remote.php:1.24 Sun May 26 08:52:16 2002 > +++ php4/pear/PEAR/Remote.php Fri Jun 14 10:51:35 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.24.2.1 2002/06/14 14:51:35 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); > @@ -203,7 +205,7 @@ > > $type = gettype($php_val); > $xmlrpcval = new XML_RPC_Value; > - > + > switch($type) { > case "array": > reset($php_val); > @@ -262,4 +264,4 @@ > > } > > -?> > \ No newline at end of file > +?> > > > > -- > PEAR CVS Mailing List (http://pear.php.net/) > To unsubscribe, visit: http://www.php.net/unsub.php -- Stig Sæther Bakken, Fast Search & Transfer ASA, Trondheim, Norway http://pear.php.net/wishlist.php/ssb

« previous php.pear.cvs (#4627) next »