Re: smart_str performance

From: Date: Wed, 21 May 2003 15:55:34 +0000
Subject: Re: smart_str performance
References: 1 2  Groups: php.internals 
Request: Send a blank email to internals+get-1865@lists.php.net to get a copy of this message
On Wed, 2003-05-21 at 13:17, Moriyoshi Koizumi wrote: > Sterling Hughes <sterling@bumblebury.com> wrote: > > > Switched it to avoid a copy on convert_to_string(). Performance in PHP5 > > now beats the previous version. > > Your patch doesn't seem to work for me. > > <?php > $foo = array(); > $array = array(&$foo, &$foo); > > $test = implode("", $array); > var_dump($array); > ?> > > $ php test.php > array(2) { > [0]=> > &string(5) "Array" > [1]=> > &string(5) "Array" > } Well, one shouldn't be passing references, :) but I'll have a quick fix for that, one moment. -Sterling -- "That stuff's easy compared to installing Horde" - Alan Knowles, In response to my applause for creating a LALR parser for PHP.

« previous php.internals (#1865) next »