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.