#34424 [Bgs]: Fatal error with current(current($x))

From: Date: Wed, 26 Apr 2006 22:31:03 +0000
Subject: #34424 [Bgs]: Fatal error with current(current($x))
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-96274@lists.php.net to get a copy of this message
 ID:               34424
 Updated by:       brianlmoon@php.net
 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] derick@php.net

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


Thread (3 messages)

« previous php.bugs (#96274) next »