Bug #60409 [Opn->Bgs]: Hidden because of SPAM
| From: | felipe@php.net | Date: | Tue, 29 Nov 2011 13:22:46 +0000 |
| Subject: | Bug #60409 [Opn->Bgs]: Hidden because of SPAM | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-165554@lists.php.net to get a copy of this message | ||
Edit report at https://bugs.php.net/bug.php?id=60409&edit=1
ID: 60409
Updated by: felipe@php.net
Reported by: bugzilla33 at gmail dot com
Summary: Hidden because of SPAM
-Status: Open
+Status: Bogus
Type: Bug
Package: Arrays related
Operating System: All
PHP Version: 5.4.0RC2
Block user comment: N
Private report: N
New Comment:
,
Previous Comments:
------------------------------------------------------------------------
[2011-11-29 13:21:09] felipe@php.net
Please, stop posting same thing everytime. We already have your feature request at #60408.
Thanks.
------------------------------------------------------------------------
[2011-11-29 13:13:36] bugzilla33 at gmail dot com
Description:
------------
Please add array element access on instantiation
...like JavaScript, C# and all languages excluding PHP 5.4RC
Test script:
---------------
<?php
$i=0;
print(array('pa','th')[$i++]); // pa
print(['wa','ss'][$i++]); // ss
?>
Expected result:
----------------
Parse error: syntax error, unexpected '[' in C:\htdocs\array.php on line 4
Actual result:
--------------
pass
------------------------------------------------------------------------
--
Edit this bug report at https://bugs.php.net/bug.php?id=60409&edit=1