ID: 29389
Updated by: [EMAIL PROTECTED]
Reported By: tim at tenkan dot org
-Status: Open
+Status: Bogus
Bug Type: Scripting Engine problem
Operating System: linux
PHP Version: 4.3.7
New Comment:
Duplicate of #29390.
Previous Comments:
------------------------------------------------------------------------
[2004-07-26 17:29:43] tim at tenkan dot org
Description:
------------
two var_dump() calls right after each other print something
different, even though they're given the same argument
Reproduce code:
---------------
<?php
$b = array();
$b[1] =& $b;
$b =& $b;
var_dump($b);
var_dump($b);
?>
Expected result:
----------------
array(1) {
[1]=>
&array(1) {
[1]=>
*RECURSION*
}
}
array(1) {
[1]=>
&array(1) {
[1]=>
*RECURSION*
}
}
Actual result:
--------------
array(1) {
[1]=>
&array(1) {
[1]=>
&array(1) {
[1]=>
*RECURSION*
}
}
}
array(1) {
[1]=>
array(1) {
[1]=>
*RECURSION*
}
}
------------------------------------------------------------------------
--
Edit this bug report at http://bugs.php.net/?id=29389&edit=1