ID: 34424 Updated by: [EMAIL PROTECTED] Reported By: marco at alphasoft dot ch Status: Bogus Bug Type: Unknown/Other Function Operating System: Windows, IIS, Isapi PHP Version: 5.0.5 New Comment:
This code now works under 5.1. So, is 5.1 broken or was 5.0 borken and this was a bad dismisal of a bug? Previous Comments: ------------------------------------------------------------------------ [2005-09-08 11:54:57] [EMAIL PROTECTED] Thank you for taking the time to write to us, but this is not a bug. Please double-check the documentation available at http://www.php.net/manual/ and the instructions on how to report a bug at http://bugs.php.net/how-to-report.php . ------------------------------------------------------------------------ [2005-09-08 11:50:05] marco at alphasoft dot ch Description: ------------ Nested current() does not work. Reproduce code: --------------- $a = array( 'a'=>array('b'=>'c') ); echo current(current($a)); Expected result: ---------------- c Actual result: -------------- Fatal error: Only variables can be passed by reference in ------------------------------------------------------------------------ -- Edit this bug report at http://bugs.php.net/?id=34424&edit=1