Bug->Req #66672 [Opn->Csd]: echo ["a", "b"][0] should be allowed
| From: | requinix@php.net | Date: | Sat, 08 Feb 2014 08:53:24 +0000 |
| Subject: | Bug->Req #66672 [Opn->Csd]: echo ["a", "b"][0] should be allowed | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-184203@lists.php.net to get a copy of this message | ||
Edit report at https://bugs.php.net/bug.php?id=66672&edit=1
ID: 66672
Updated by: requinix@php.net
Reported by: aleemb at gmail dot com
Summary: echo ["a", "b"][0] should be allowed
-Status: Open
+Status: Closed
-Type: Bug
+Type: Feature/Change Request
Package: Arrays related
Operating System: OS X
PHP Version: 5.4.25
-Assigned To:
+Assigned To: requinix
Block user comment: N
Private report: N
New Comment:
Thank you for your bug report. This issue has already been fixed
in the latest released version of PHP, which you can download at
http://www.php.net/downloads.php
Previous Comments:
------------------------------------------------------------------------
[2014-02-08 08:41:28] aleemb at gmail dot com
Description:
------------
<?php assert(["a", "b"][0] == "a"); ?>
Test script:
---------------
<?php assert(["a", "b"][0] == "a"); ?>
Expected result:
----------------
true
Actual result:
--------------
PHP Parse error: syntax error, unexpected '['
------------------------------------------------------------------------
--
Edit this bug report at https://bugs.php.net/bug.php?id=66672&edit=1