Re: reference issue

From: Date: Thu, 17 Mar 2005 12:25:10 +0000
Subject: Re: reference issue
References: 1  Groups: php.internals 
Request: Send a blank email to internals+get-15474@lists.php.net to get a copy of this message
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


« previous php.internals (#15474) next »