#29389 [Opn->Bgs]: var_dump() output is a little random

From: Date: Tue, 27 Jul 2004 12:26:01 +0000
Subject: #29389 [Opn->Bgs]: var_dump() output is a little random
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-63619@lists.php.net to get a copy of this message
ID: 29389 Updated by: tony2001@php.net 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

« previous php.bugs (#63619) next »