good to see it's in the cvs.  i am using this version now.

as for speed, i guess the difference between a foreach and list() each() is 
negligible given the bottleneck of the network.

cheers,
Jakob.


Quoting Silvio Macedo <[EMAIL PROTECTED]>:

> 
> Hi!
> 
> Actually, although I sent the same patch in June 01(at the time there
> was
> no updates on the distribution of php-xmlrpc code), I would now
> suggest
> that we avoid it if possible (possibly having a optional php3 patch
> available).
> 
> The foreach control loop is much faster than the reset(), list()
> each()
> replacement. Although not available on php3, due to the number of times
> we
> use the cycle, it would probably make a difference. (it's present in
> other
> parts of the code).
> 
> Regards, Silvio
> 
> 
>  On Sat, 26 Jan 2002, Miles Lott wrote:
> 
> > CVS should have an updated version already.  This was modified
> > for php3 compatibility after the release of 1.02.
> >
> > Jakob wrote:
> > >
> > > re: v1.02
> > >
> > > in method getval of class xmlrpcval which contains the following
> comment
> > >
> > > // contributed by I Sofer, 2001-03-24
> > > // add support for nested arrays to scalarval
> > > // i've created a new method here, so as to
> > > // preserve back compatibility
> > >
> > > the control structure "foreach" is used thrice, although not yet
> implemented in php3.  instead,
> > >
> > > line replace with
> > > ---- ------------
> > > 927  while (list($id, $cont) = each ($b)) {
> > > 935  while (list($id, $cont) = each ($t)) {
> > > 938  while (list($id, $cont) = each ($t)) {
> > >
> > > should be used.
> > >
> > > hth,
> > > ------
> > > Jakob.
> > >
> > > --
> > > For information about how to subscribe and unsubscribe from this
> list
> > > visit http://xmlrpc.usefulinc.com/list.html
> >
> >
> 
> -- 
> ````````` Silvio Emanuel Nunes Barbosa de Macedo (PhD Student)
> '''''''''''
> [EMAIL PROTECTED]                                        
> [EMAIL PROTECTED]
> Intelligent and Interactive Systems,EEE-Pg         Telecom. and
> Multimedia
> Imperial College, University of London                         INESC
> Porto
> Exhibition Road,                                       Pc da Republica,
> 93
> London SW7 2BT, England                            4050-497 Porto
> Portugal
> Tel:+44 20 75946323                                    Tel:+351 
> 222094220
> 




------
Jakob.

--
For information about how to subscribe and unsubscribe from this list
visit http://xmlrpc.usefulinc.com/list.html

Reply via email to