#29389 [NEW]: var_dump() output is a little random
| From: | tim at tenkan dot org | Date: | Mon, 26 Jul 2004 15:29:44 +0000 |
| Subject: | #29389 [NEW]: var_dump() output is a little random | ||
| Groups: | php.bugs | ||
| Request: | Send a blank email to php-bugs+get-63569@lists.php.net to get a copy of this message | ||
From: tim at tenkan dot org
Operating system: linux
PHP version: 4.3.7
PHP Bug Type: Scripting Engine problem
Bug description: var_dump() output is a little random
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 bug report at http://bugs.php.net/?id=29389&edit=1
--
Try a CVS snapshot (php4): http://bugs.php.net/fix.php?id=29389&r=trysnapshot4
Try a CVS snapshot (php5): http://bugs.php.net/fix.php?id=29389&r=trysnapshot5
Fixed in CVS: http://bugs.php.net/fix.php?id=29389&r=fixedcvs
Fixed in release: http://bugs.php.net/fix.php?id=29389&r=alreadyfixed
Need backtrace: http://bugs.php.net/fix.php?id=29389&r=needtrace
Need Reproduce Script: http://bugs.php.net/fix.php?id=29389&r=needscript
Try newer version: http://bugs.php.net/fix.php?id=29389&r=oldversion
Not developer issue: http://bugs.php.net/fix.php?id=29389&r=support
Expected behavior: http://bugs.php.net/fix.php?id=29389&r=notwrong
Not enough info: http://bugs.php.net/fix.php?id=29389&r=notenoughinfo
Submitted twice: http://bugs.php.net/fix.php?id=29389&r=submittedtwice
register_globals: http://bugs.php.net/fix.php?id=29389&r=globals
PHP 3 support discontinued: http://bugs.php.net/fix.php?id=29389&r=php3
Daylight Savings: http://bugs.php.net/fix.php?id=29389&r=dst
IIS Stability: http://bugs.php.net/fix.php?id=29389&r=isapi
Install GNU Sed: http://bugs.php.net/fix.php?id=29389&r=gnused
Floating point limitations: http://bugs.php.net/fix.php?id=29389&r=float