Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:56526 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 76623 invoked from network); 23 Nov 2011 19:13:51 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 23 Nov 2011 19:13:51 -0000 Authentication-Results: pb1.pair.com smtp.mail=tyra3l@gmail.com; spf=pass; sender-id=pass Authentication-Results: pb1.pair.com header.from=tyra3l@gmail.com; sender-id=pass Received-SPF: pass (pb1.pair.com: domain gmail.com designates 209.85.216.170 as permitted sender) X-PHP-List-Original-Sender: tyra3l@gmail.com X-Host-Fingerprint: 209.85.216.170 mail-qy0-f170.google.com Received: from [209.85.216.170] ([209.85.216.170:56640] helo=mail-qy0-f170.google.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id 35/C4-47904-EE54DCE4 for ; Wed, 23 Nov 2011 14:13:51 -0500 Received: by qyk33 with SMTP id 33so1673665qyk.29 for ; Wed, 23 Nov 2011 11:13:48 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type; bh=vxDJFZ/502/fpUq1MWB2io7nVMQvEMY93Dx5jiJAAvE=; b=aojhOxVQucUIgGcz9zXwq3E0FylTVaLd2MfztCrcvCCUnQe/v1iXVMCH+xhABZXgLU H11526wRd1TAld2/+nKNdRum8Iv2bAf6Hb8KV7tKf5jbf+ugNR+kTtW5A36oabcRyTgz xHtOyGfP8L1u0RqHDeC0D6VZZcGNQhCC8wRQA= MIME-Version: 1.0 Received: by 10.229.183.145 with SMTP id cg17mr2068970qcb.34.1322075628100; Wed, 23 Nov 2011 11:13:48 -0800 (PST) Received: by 10.229.38.134 with HTTP; Wed, 23 Nov 2011 11:13:48 -0800 (PST) In-Reply-To: <4ECD4231.7070306@sugarcrm.com> References: <20111123015008.GA12933@panix.com> <20111123023108.GA172@panix.com> <4ECCB549.904@lsces.co.uk> <4ECCBC56.3050602@sugarcrm.com> <20111123141408.GA11940@panix.com> <20111123153100.GB13420@panix.com> <4ECD4231.7070306@sugarcrm.com> Date: Wed, 23 Nov 2011 20:13:48 +0100 Message-ID: To: Stas Malyshev Cc: Pierre Joye , "RQuadling@gmail.com" , Daniel Convissor , PHP internals Content-Type: multipart/alternative; boundary=0016364d2a6d2dddec04b26bb8bf Subject: Re: [PHP-DEV] 5.4 regression: non-existent sub-sub keys now have values From: tyra3l@gmail.com (Ferenc Kovacs) --0016364d2a6d2dddec04b26bb8bf Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable On Wed, Nov 23, 2011 at 7:57 PM, Stas Malyshev wrot= e: > Hi! > > > Unless I'm mistaken it seems that we have a clear and vicious BC break >> here, the kind of changes that are annoying to catch and does not >> > > No, we do not have a BC break here, we have a bugfix here that makes > string ops work consistently and only has a problem with completely broke= n > code. I am 100% opposed to changing anything there and re-breaking string > offsets because somebody uses string indexes to operate on strings and > expect them to work in weird ways that makes $a[0][0] work differently fr= om > $b =3D $a[0]; $b[0]. If you use string offsets on strings, expect them to= be > converted to numbers, it has been there since forever and only didn't wor= k > on chained offsets because of a bug. duh, you are right. my simplified example: $foo =3D 'string'; echo isset($foo['bar']); wouldn't trigger the new behavior, it is required to be a chained reference. sorry for the noise. --=20 Ferenc Kov=C3=A1cs @Tyr43l - http://tyrael.hu --0016364d2a6d2dddec04b26bb8bf--