Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:56562 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 77773 invoked from network); 24 Nov 2011 10:31:57 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 24 Nov 2011 10:31:57 -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:43148] helo=mail-qy0-f170.google.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id 54/14-46656-81D1ECE4 for ; Thu, 24 Nov 2011 05:31:54 -0500 Received: by qyk33 with SMTP id 33so2167637qyk.29 for ; Thu, 24 Nov 2011 02:31:47 -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=jMHwryrapPkDppykNbVecor5U7ATdpA7QZDeHzQf22c=; b=vdZy4BQbjJZocoMd1IDIOEW5Q4OxNYsqIFfDERa9rvJ5J3G3pxzG1WPlieYcDU9vM3 YgyCQMLnpei9hra4NvLdOaMOgMVZTFa2ZSQ2E6Ui40iUZXva+5y++eQxeqYtyiAaa/zA YD6/2rlgVRKU2bFYmLJn3+H8ZJogGQ02zSX68= MIME-Version: 1.0 Received: by 10.229.67.5 with SMTP id p5mr3242652qci.148.1322130707203; Thu, 24 Nov 2011 02:31:47 -0800 (PST) Received: by 10.229.38.134 with HTTP; Thu, 24 Nov 2011 02:31:47 -0800 (PST) In-Reply-To: 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> <4ECD48AD.1020207@sugarcrm.com> <4ECD91F4.5040303@gmail.com> <4ECDAEE5.7020205@gmail.com> Date: Thu, 24 Nov 2011 11:31:47 +0100 Message-ID: To: David Muir Cc: Stas Malyshev , Daniel Convissor , Lester Caine , PHP internals Content-Type: multipart/alternative; boundary=0016e64bff5a26485c04b2788b32 Subject: Re: [PHP-DEV] 5.4 regression: non-existent sub-sub keys now have values From: tyra3l@gmail.com (Ferenc Kovacs) --0016e64bff5a26485c04b2788b32 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable > > >> It gives me false in 5.3.6. Using it outside of isset() results in the >> fatal error. >> > > hm. > > tyrael@thor:~$ php -r '$string =3D > "foo";isset($string["foo"]["bar"]["baz"]["0"]);'; > PHP Fatal error: Cannot use string offset as an array in Command line > code on line 1 > tyrael@thor:~$ php -v > PHP 5.3.8-1~dotdeb.2 with Suhosin-Patch (cli) (built: Aug 25 2011 13:30:4= 6) > Copyright (c) 1997-2011 The PHP Group > Zend Engine v2.3.0, Copyright (c) 1998-2011 Zend Technologies > with Suhosin v0.9.32.1, Copyright (c) 2007-2010, by SektionEins GmbH > > I will check this against a vanilla version, as there is a chance that > either dotdeb(less likely) or suhosin patched something. > I just remembered that there is http://codepad.viper-7.com/ so: 5.3 - fatal error: http://codepad.viper-7.com/GGhoSn 5.4 - works: http://codepad.viper-7.com/WRdyni --=20 Ferenc Kov=C3=A1cs @Tyr43l - http://tyrael.hu --0016e64bff5a26485c04b2788b32--