Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:56478 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 30310 invoked from network); 23 Nov 2011 02:26:12 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 23 Nov 2011 02:26:12 -0000 Authentication-Results: pb1.pair.com smtp.mail=ekneuss@gmail.com; spf=pass; sender-id=pass Authentication-Results: pb1.pair.com header.from=ekneuss@gmail.com; sender-id=pass Received-SPF: pass (pb1.pair.com: domain gmail.com designates 209.85.214.42 as permitted sender) X-PHP-List-Original-Sender: ekneuss@gmail.com X-Host-Fingerprint: 209.85.214.42 mail-bw0-f42.google.com Received: from [209.85.214.42] ([209.85.214.42:51561] helo=mail-bw0-f42.google.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id 54/00-30018-3C95CCE4 for ; Tue, 22 Nov 2011 21:26:12 -0500 Received: by bkbzt4 with SMTP id zt4so1027520bkb.29 for ; Tue, 22 Nov 2011 18:26:08 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=mime-version:sender:in-reply-to:references:date :x-google-sender-auth:message-id:subject:from:to:cc:content-type :content-transfer-encoding; bh=PImQbWIfjLQx6iOt546cW39W+JV8A8BrB3nmDPajSpI=; b=K+uRRo5QyW7oroQbaggiSdFudPJUuN63XHxdT0kbZI3S9V0quk04709+MUEny2ewmt J5Ia9dciPE+m5Ygg6+ZOKMijrfbIKCis5GtsLKcIAxTluvfOOUUz5cHFryayuIJystBf 6EZmE2jkZGvZ59x4GLeJiuAmmqJGJtyF3JPHQ= MIME-Version: 1.0 Received: by 10.204.155.152 with SMTP id s24mr21953367bkw.5.1322015168053; Tue, 22 Nov 2011 18:26:08 -0800 (PST) Sender: ekneuss@gmail.com Received: by 10.205.82.2 with HTTP; Tue, 22 Nov 2011 18:26:07 -0800 (PST) In-Reply-To: <20111123015008.GA12933@panix.com> References: <20111123015008.GA12933@panix.com> Date: Wed, 23 Nov 2011 03:26:07 +0100 X-Google-Sender-Auth: eE-LxwLi7lOcq5JNUJ3-_h3xISw Message-ID: To: Daniel Convissor Cc: PHP Internals List Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable Subject: Re: [PHP-DEV] 5.4 regression: non-existent sub-sub keys now have values From: colder@php.net (Etienne Kneuss) Hi, AFAIK this is one of the change that was explicitly put in to make it more consistent. Before, you had: $string =3D "asd"; $string[0] =3D=3D "a" but: $string[0][0] =3D=3D Fatal: cannot use string offset as an array while $string[0] =3D=3D "a", it makes no sense for $string[0][0] not to return "a" again, since $str =3D "a"; $str[0] =3D=3D "a"; Best Regards, On Wed, Nov 23, 2011 at 02:50, Daniel Convissor wrote: > Hi Folks: > > I just stumbled upon a regression in 5.4. =C2=A0In an array, a sub-sub-ke= y of > an existing key is now returning a letter of the value indexed by the > main key. =C2=A0I'm raising it here so it doesn't get lost. > > https://bugs.php.net/bug.php?id=3D60362 > > Thanks, > > --Dan > > -- > =C2=A0T H E =C2=A0 A N A L Y S I S =C2=A0 A N D =C2=A0 S O L U T I O N S = =C2=A0 C O M P A N Y > =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0data intensive web and database = programming > =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0http://www.Analysi= sAndSolutions.com/ > =C2=A04015 7th Ave #4, Brooklyn NY 11232 =C2=A0v: 718-854-0335 f: 718-854= -0409 > > -- > PHP Internals - PHP Runtime Development Mailing List > To unsubscribe, visit: http://www.php.net/unsub.php > > --=20 Etienne Kneuss http://www.colder.ch