That's expected behaviour. Have a look at http://bugs.php.net/20993 .

The problem can also be prevented by the following hack:

// modifying and assining branch causes unexpexted results to $this->tree
$metatree[$object_id] = (array)unserialize(serialize($branch));


Regards,
Moriyoshi


On 2005/03/17, at 21:04, Lukas Smith wrote:

Hi,

I have encountered yet another reference issue. I tested this on PHP 4.3.10 and 4.3.11RC1 on both windows and linux.

Here is a script that reproduces the issue:
http://www.backendmedia.com/PHP/reference_bug.phps

In the comments at the top you can also see my "hack" which fixes the problem for me.

I have also tried Derick's patch on the 4.3.11RC1 install on linux, but this didnt change the situation at all.

regards,
Lukas

-- PHP Internals - PHP Runtime Development Mailing List To unsubscribe, visit: http://www.php.net/unsub.php



Reply via email to