Edit report at https://bugs.php.net/bug.php?id=62932&edit=1

 ID:                 62932
 Updated by:         fel...@php.net
 Reported by:        bobwei9 at hotmail dot com
 Summary:            Not understandable Fatal error
-Status:             Open
+Status:             Assigned
 Type:               Bug
 Package:            Scripting Engine problem
 Operating System:   Irrelevant (OS X 10.8)
 PHP Version:        master-Git-2012-08-25 (Git)
-Assigned To:        
+Assigned To:        laruence
 Block user comment: N
 Private report:     N

 New Comment:

I wonder that such syntax is not supposed to be allowed. See bug #62931.


Previous Comments:
------------------------------------------------------------------------
[2012-08-25 23:33:25] bobwei9 at hotmail dot com

Description:
------------
Using PHP, I never would understand this error message without knowing the 
opcodes by heart.... Please change the error message.

Test script:
---------------
php -r 'foreach ([[1]] as list($x) => list($y)) print "$x => $y\n";'


Expected result:
----------------
PHP Parse error: Cannot use T_LIST as index in foreach in Command line code on 
line 1

or something like this?

Actual result:
--------------
PHP Fatal error:  Invalid opcode 38/1/2. in Command line code on line 1


------------------------------------------------------------------------



-- 
Edit this bug report at https://bugs.php.net/bug.php?id=62932&edit=1

Reply via email to