Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:15474 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 35245 invoked by uid 1010); 17 Mar 2005 12:26:10 -0000 Delivered-To: ezmlm-scan-internals@lists.php.net Delivered-To: ezmlm-internals@lists.php.net Received: (qmail 35230 invoked from network); 17 Mar 2005 12:26:10 -0000 Received: from unknown (HELO at.wakwak.com) (127.0.0.1) by localhost with SMTP; 17 Mar 2005 12:26:10 -0000 X-Host-Fingerprint: 211.9.230.193 mgkyb1.nw.wakwak.com FreeBSD 4.6-4.9 Received: from ([211.9.230.193:3115] helo=mgkyb1.nw.wakwak.com) by pb1.pair.com (ecelerity HEAD r(5268)) with SMTP id 16/57-09621-06779324 for ; Thu, 17 Mar 2005 07:26:09 -0500 Received: from vckyb3.nw.wakwak.com (vckyb3.nw.wakwak.com [211.9.231.144]) by mgkyb1.nw.wakwak.com (8.13.3/8.13.3/2005-01-27) with SMTP id j2HCQ49F014129; Thu, 17 Mar 2005 21:26:04 +0900 (JST) (envelope-from moriyoshi@at.wakwak.com) Received: from at.wakwak.com (at.wakwak.com [211.9.230.135]) by vckyb3.nw.wakwak.com (Postfix) with ESMTP id 86C683FE02; Thu, 17 Mar 2005 21:26:04 +0900 (JST) Received: from [192.168.0.2] (newcycle.as.wakwak.ne.jp [218.225.209.145]) (pbs=ie772t) by at.wakwak.com (8.13.3/8.13.3/2005-01-26) with ESMTP/inet id j2HCQ06P043478; Thu, 17 Mar 2005 21:26:00 +0900 (JST) (envelope-from moriyoshi@at.wakwak.com) In-Reply-To: <42397244.2030806@php.net> References: <42397244.2030806@php.net> Mime-Version: 1.0 (Apple Message framework v619.2) Content-Type: text/plain; charset=US-ASCII; format=flowed Message-ID: <4b3d8a98d330dca4c277c0174003a0c3@at.wakwak.com> Content-Transfer-Encoding: 7bit Cc: internals@lists.php.net Date: Thu, 17 Mar 2005 21:25:10 +0900 To: Lukas Smith X-Mailer: Apple Mail (2.619.2) Subject: Re: [PHP-DEV] reference issue From: moriyoshi@at.wakwak.com (Moriyoshi Koizumi) 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