ID:               45699
 Updated by:       [EMAIL PROTECTED]
 Reported By:      hanke at werbewolken dot de
-Status:           Open
+Status:           Bogus
 Bug Type:         Scripting Engine problem
 Operating System: *
 PHP Version:      5.2.6
 New Comment:

Expected behaviour:

http://php.net/operators#language.operators.precedence


Previous Comments:
------------------------------------------------------------------------

[2008-08-03 13:34:37] hanke at werbewolken dot de

Description:
------------
look at Reproduce code, its selfexplaining

Reproduce code:
---------------
//this causes an error (also with brakets), but actually should not:
$ref =& $array[] = $foo;

//must be like: 
$array[] = $foo; 
$ref =& $array[count($array)-1];



Expected result:
----------------
$ref to reference the new arrayindex..

Actual result:
--------------
fatal error.


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


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

Reply via email to