Bug #51672 [Opn->Bgs]: Parse error when a subscript operator is used after a function call operator
| From: | degeberg@php.net | Date: | Tue, 27 Apr 2010 10:14:52 +0000 |
| Subject: | Bug #51672 [Opn->Bgs]: Parse error when a subscript operator is used after a function call operator | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-149949@lists.php.net to get a copy of this message | ||
Edit report at http://bugs.php.net/bug.php?id=51672&edit=1
ID: 51672
Updated by: degeberg@php.net
Reported by: miklcct at gmail dot com
Summary: Parse error when a subscript operator is used after a
function call operator
-Status: Open
+Status: Bogus
Type: Bug
Package: Compile Failure
Operating System: Ubuntu 9.04
PHP Version: 5.3.2
New Comment:
Sorry, but your problem does not imply a bug in PHP itself. For a
list of more appropriate places to ask for help using PHP, please
visit http://www.php.net/support.php as this bug system
is not the
appropriate forum for asking support questions. Due to the volume
of reports we can not explain in detail here why your report is not
a bug. The support channels will be able to provide an explanation
for you.
Thank you for your interest in PHP.
Previous Comments:
------------------------------------------------------------------------
[2010-04-27 12:11:21] miklcct at gmail dot com
Description:
------------
syntax error when a subscript operator is used with a function call
operator
Test script:
---------------
#!/usr/bin/php
<?php
function test() {
return "foo";
}
echo test()[0];
Expected result:
----------------
f
Actual result:
--------------
Parse error: syntax error, unexpected '[', expecting ',' or ';' in
/home/www/bus/test.php on line 8
------------------------------------------------------------------------
--
Edit this bug report at http://bugs.php.net/bug.php?id=51672&edit=1