Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:56527 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 78721 invoked from network); 23 Nov 2011 19:25:38 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 23 Nov 2011 19:25:38 -0000 Authentication-Results: pb1.pair.com header.from=smalyshev@sugarcrm.com; sender-id=pass Authentication-Results: pb1.pair.com smtp.mail=smalyshev@sugarcrm.com; spf=pass; sender-id=pass Received-SPF: pass (pb1.pair.com: domain sugarcrm.com designates 67.192.241.203 as permitted sender) X-PHP-List-Original-Sender: smalyshev@sugarcrm.com X-Host-Fingerprint: 67.192.241.203 smtp203.dfw.emailsrvr.com Linux 2.6 Received: from [67.192.241.203] ([67.192.241.203:59746] helo=smtp203.dfw.emailsrvr.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id 35/25-47904-1B84DCE4 for ; Wed, 23 Nov 2011 14:25:37 -0500 Received: from localhost (localhost.localdomain [127.0.0.1]) by smtp20.relay.dfw1a.emailsrvr.com (SMTP Server) with ESMTP id A43812586F9; Wed, 23 Nov 2011 14:25:34 -0500 (EST) X-Virus-Scanned: OK Received: by smtp20.relay.dfw1a.emailsrvr.com (Authenticated sender: smalyshev-AT-sugarcrm.com) with ESMTPSA id 41B1B2586FD; Wed, 23 Nov 2011 14:25:34 -0500 (EST) Message-ID: <4ECD48AD.1020207@sugarcrm.com> Date: Wed, 23 Nov 2011 11:25:33 -0800 Organization: SugarCRM User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.6; rv:8.0) Gecko/20111105 Thunderbird/8.0 MIME-Version: 1.0 To: Ferenc Kovacs CC: Daniel Convissor , Lester Caine , PHP internals References: <20111123015008.GA12933@panix.com> <20111123023108.GA172@panix.com> <4ECCB549.904@lsces.co.uk> <4ECCBC56.3050602@sugarcrm.com> <20111123141408.GA11940@panix.com> <4ECD40E2.1000601@sugarcrm.com> In-Reply-To: Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit Subject: Re: [PHP-DEV] 5.4 regression: non-existent sub-sub keys now have values From: smalyshev@sugarcrm.com (Stas Malyshev) Hi! > The only case where the 5.4 branch works differently as before if you > reference a string type(int, float, etc. won't trigger this) variable > using an associative index and you expect it that to be undefined > variable even though that the documentation explicitly states that the Actually, the only change 5.4 did was to make $a['foo']['bar'] work like ($a['foo'])['bar'] - i.e. chained offsets work the same way as if they were applied separately. That's it. All the rest has been there since forever. I can't see how one could argue it should stay this way. Now I'm sorry somebody used the fact that chained offsets didn't work to do a check "do we have any strings there" but that's not how PHP is supposed to work and it's clearly a side-effect of a bug. -- Stanislav Malyshev, Software Architect SugarCRM: http://www.sugarcrm.com/ (408)454-6900 ext. 227