Bug #60405 [Opn]: Array dereferencing support do not work

From: Date: Tue, 29 Nov 2011 10:30:24 +0000
Subject: Bug #60405 [Opn]: Array dereferencing support do not work
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-165545@lists.php.net to get a copy of this message
Edit report at https://bugs.php.net/bug.php?id=60405&edit=1 ID: 60405 User updated by: bugzilla33 at gmail dot com Reported by: bugzilla33 at gmail dot com Summary: Array dereferencing support do not work Status: Open Type: Bug -Package: Compile Failure +Package: Scripting Engine problem Operating System: All PHP Version: 5.4.0RC2 Block user comment: N Private report: N New Comment: Package: Compile failure -> Scripting Engine problem Previous Comments: ------------------------------------------------------------------------ [2011-11-29 10:03:55] bugzilla33 at gmail dot com Description: ------------ Array dereferencing support do not work. Test script: --------------- <?php print(array('pass')[0]); print(['pass'][0]); ?> Expected result: ---------------- passpass Actual result: -------------- Parse error: syntax error, unexpected '[' in C:\htdocs\test.pl\1.php on line 2 ------------------------------------------------------------------------ -- Edit this bug report at https://bugs.php.net/bug.php?id=60405&edit=1

« previous php.bugs (#165545) next »