Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:56480 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 33606 invoked from network); 23 Nov 2011 02:36:39 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 23 Nov 2011 02:36:39 -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:45275] helo=mail-bw0-f42.google.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id F4/A0-30018-63C5CCE4 for ; Tue, 22 Nov 2011 21:36:39 -0500 Received: by bkbzt4 with SMTP id zt4so1036591bkb.29 for ; Tue, 22 Nov 2011 18:36:35 -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=CHQawPvyxEYnyLrxndWc2NVzSsoNS7LhFrgF0bhgefI=; b=C5pYj15gSUnk5FZ9Xq8vrLvL3/jMXMjIUwycdBmPJ/7qkQtbeJeRgIjXjpTxu3f3X4 EXL/+RaKJf7eDJ7csWvGc/Tk/8ituigbHshGTZaurtO+mv3rk6n1Nd6RTEJtloKiW+pO Wx5cI/ZFgbpKH2Ql5L4HQds/Weyk9ZgDe3b1A= MIME-Version: 1.0 Received: by 10.204.131.88 with SMTP id w24mr21723778bks.113.1322015794848; Tue, 22 Nov 2011 18:36:34 -0800 (PST) Sender: ekneuss@gmail.com Received: by 10.205.82.2 with HTTP; Tue, 22 Nov 2011 18:36:34 -0800 (PST) In-Reply-To: <20111123023108.GA172@panix.com> References: <20111123015008.GA12933@panix.com> <20111123023108.GA172@panix.com> Date: Wed, 23 Nov 2011 03:36:34 +0100 X-Google-Sender-Auth: Mm6opaJJ2-O9E86f21zM_9BvJq4 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) On Wed, Nov 23, 2011 at 03:31, Daniel Convissor wrote: > Hi Etienne: > >> AFAIK this is one of the change that was explicitly put in to make it >> more consistent. > > But now it breaks code in the wild. =C2=A0I came across this due to an > isset() in PEAR now passing when it didn't before. PEAR is definitely doing some strange things :) Is it checking indices of a variables without checking first if it's an array? Sounds like the comeback of "Please don't break bad code!" seen with is_a := ) IMO it still makes sense to make that change for 5_4, makes everything less magic and more consistent. > > 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 > --=20 Etienne Kneuss http://www.colder.ch