#34424 [Opn->Bgs]: Fatal error with current(current($x))
| From: | derick@php.net | Date: | Thu, 08 Sep 2005 09:54:58 +0000 |
| Subject: | #34424 [Opn->Bgs]: Fatal error with current(current($x)) | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-84716@lists.php.net to get a copy of this message | ||
ID: 34424
Updated by: derick@php.net
Reported By: marco at alphasoft dot ch
-Status: Open
+Status: Bogus
Bug Type: Unknown/Other Function
Operating System: Windows, IIS, Isapi
PHP Version: 5.0.5
New Comment:
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
.
Previous Comments:
------------------------------------------------------------------------
[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