Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:56511 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 35087 invoked from network); 23 Nov 2011 15:21:14 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 23 Nov 2011 15:21:14 -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.49 as permitted sender) X-PHP-List-Original-Sender: tyra3l@gmail.com X-Host-Fingerprint: 209.85.216.49 mail-qw0-f49.google.com Received: from [209.85.216.49] ([209.85.216.49:62140] helo=mail-qw0-f49.google.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id 96/26-31179-86F0DCE4 for ; Wed, 23 Nov 2011 10:21:13 -0500 Received: by qadc16 with SMTP id c16so1617900qad.8 for ; Wed, 23 Nov 2011 07:21:09 -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=RYoDOQf7xuALRba9fS7JAfhdRllfLQDaaw4jV2Ja7FQ=; b=Q3Qm0dpeiqPjNgxPGoyJOt33Pj8yrttG0ynOUTw3z5Oao2NR+5Q35ljM8n5UR/jDBU 7bt+T2PvXPB6PFz9w2J2qi4a0zCiY+CLXD2kt8oKBJ0vhRTGwR5i0Dsqgidj5i/RADom +ZSxNWpG21/UScjsNVheuhB9S0XdZJLRvMKLM= MIME-Version: 1.0 Received: by 10.224.184.143 with SMTP id ck15mr1373540qab.22.1322061667919; Wed, 23 Nov 2011 07:21:07 -0800 (PST) Received: by 10.229.38.134 with HTTP; Wed, 23 Nov 2011 07:21:07 -0800 (PST) In-Reply-To: <20111123150409.GA13420@panix.com> References: <20111123015008.GA12933@panix.com> <20111123023108.GA172@panix.com> <4ECCB549.904@lsces.co.uk> <4ECCBC56.3050602@sugarcrm.com> <20111123141408.GA11940@panix.com> <20111123150409.GA13420@panix.com> Date: Wed, 23 Nov 2011 16:21:07 +0100 Message-ID: To: Daniel Convissor Cc: PHP Internals List Content-Type: multipart/alternative; boundary=20cf30334fb516656804b26878af Subject: Re: [PHP-DEV] 5.4 regression: non-existent sub-sub keys now have values From: tyra3l@gmail.com (Ferenc Kovacs) --20cf30334fb516656804b26878af Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable On Wed, Nov 23, 2011 at 4:04 PM, Daniel Convissor < danielc@analysisandsolutions.com> wrote: > Hi Ferenc: > > [And the manual saaaays...] > > "Non-integer types are converted to integer." > > So it is a documented behavior, so the current change is just a bugfix > imo. > > Can someone please lend me their time machine so I can go back and tell > folks to just use {} for string offsets and [] for arrays? I'll > only need it for a few minutes. offtopic: I used to preach about using {} for string offsets and that [] is deprecated then we had that reversed in the documentation/5.3 migration guide ("The use of {} to access string offsets is deprecated. Use [] instead.")... Fortunately it turned out to be a mistake, and got fixed in the docs, since then we document both behavior (albeit the [] seems to be preferred way in the docs), and none of them triggers E_DEPRECATED. So I think that it is the reason why people still use [] for string offsets= . --=20 Ferenc Kov=C3=A1cs @Tyr43l - http://tyrael.hu --20cf30334fb516656804b26878af--