Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:18939 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 9430 invoked by uid 1010); 14 Sep 2005 22:37:29 -0000 Delivered-To: ezmlm-scan-internals@lists.php.net Delivered-To: ezmlm-internals@lists.php.net Received: (qmail 9414 invoked from network); 14 Sep 2005 22:37:29 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 14 Sep 2005 22:37:29 -0000 X-Host-Fingerprint: 220.245.213.234 220-245-213-234-act.tpgi.com.au Received: from ([220.245.213.234:25757] helo=localhost.localdomain) by pb1.pair.com (ecelerity 2.0 beta r(6323M)) with SMTP id 49/18-41173-926A8234 for ; Wed, 14 Sep 2005 18:37:29 -0400 Message-ID: <49.18.41173.926A8234@pb1.pair.com> To: internals@lists.php.net Date: Thu, 15 Sep 2005 08:37:22 +1000 User-Agent: Mozilla Thunderbird 1.0.2 (Windows/20050317) X-Accept-Language: en-us, en MIME-Version: 1.0 References: <43276022.6020702@encode.net.au> <7C.1C.41173.4D828234@pb1.pair.com> In-Reply-To: Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Posted-By: 220.245.213.234 Subject: Re: [PHP-DEV] Reference handling change and PHP 4.4.0 From: colin@encode.net.au (Colin Tucker) Derick Rethans wrote: > But it just could as well have been because he was relying on the memory > corruptions. Hard to tell without code. > > Derick As I mentioned in my reply to Rasmus above, the problem seems to be stemming from a class that acts like a map of objects. Most of my PHP4 code would pass objects around by reference to ensure operations were working on the original object, thus avoiding the creation of copies. After the upgrade to 4.4.0, the map lost integrity in that returning any object within the map by key would return the object last added to the map. I may not have provided any code, but this problem description was enough for Todd Ruth to send me a very helpful and informative e-mail on the matter (i.e. "everything the same as the last added" bugs), which shall help me greatly in tracking it down (thanks again, Todd!). Regards, Colin.