Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:56593 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 67493 invoked from network); 24 Nov 2011 21:45:14 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 24 Nov 2011 21:45:14 -0000 Authentication-Results: pb1.pair.com header.from=yohgaki@gmail.com; sender-id=pass Authentication-Results: pb1.pair.com smtp.mail=yohgaki@gmail.com; spf=pass; sender-id=pass Received-SPF: pass (pb1.pair.com: domain gmail.com designates 209.85.213.42 as permitted sender) X-PHP-List-Original-Sender: yohgaki@gmail.com X-Host-Fingerprint: 209.85.213.42 mail-yw0-f42.google.com Received: from [209.85.213.42] ([209.85.213.42:58650] helo=mail-yw0-f42.google.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id B6/B6-26290-5EABECE4 for ; Thu, 24 Nov 2011 16:45:12 -0500 Received: by ywt2 with SMTP id 2so2527454ywt.29 for ; Thu, 24 Nov 2011 13:45:05 -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:from:date :x-google-sender-auth:message-id:subject:to:cc:content-type; bh=UiU+UCCHO06n9t84g3bJJTzM250N+Iea6d9Yuxog6SM=; b=QiOuMLF6P70R2rZ/4AP9FNgTPoY+2atlmlNowYjwjsRsOnBZ+iXmdsZ0T/4QZomOz7 jQeQubIns5JbpfX4oF2Q+yRFw7m7eUcQutAwPI8+v3GOCXSYsaCq2Piz3pDQ8TzBj++5 ygKjkXXyAuwvymK85QQ+xBrEhpfkQD0UjCGZ0= Received: by 10.236.180.200 with SMTP id j48mr43920302yhm.26.1322171105072; Thu, 24 Nov 2011 13:45:05 -0800 (PST) MIME-Version: 1.0 Sender: yohgaki@gmail.com Received: by 10.100.127.18 with HTTP; Thu, 24 Nov 2011 13:44:25 -0800 (PST) In-Reply-To: References: <20111123015008.GA12933@panix.com> Date: Fri, 25 Nov 2011 06:44:25 +0900 X-Google-Sender-Auth: ln98LaswhlrXvyicul3mQHMzLxg Message-ID: To: RQuadling@gmail.com Cc: Daniel Convissor , PHP Internals List Content-Type: text/plain; charset=ISO-8859-1 Subject: Re: [PHP-DEV] 5.4 regression: non-existent sub-sub keys now have values From: yohgaki@ohgaki.net (Yasuo Ohgaki) Hi all, I should think twice before seding mail. "abc" as array index is converted to 0 since it's not a integer. So with current code is behave consistently with regards to string to long conversion. However, PHP 5.3 php -r '$s = "abc"; var_dump($s[0]["bar"]);' PHP Fatal error: Cannot use string offset as an array in Command line code on line 1 PHP 5.4 ./php -r '$s = "abc"; var_dump($s[0]["bar"]);' string(1) "a" Isn't it better to raise notice for accessing string by string index? There is no use to allowing string index access to strings. I think raising notice is feasible. Isn't it? Regards, -- Yasuo Ohgaki yohgaki@ohgaki.net