|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
[2004-07-27 14:25 UTC] tony2001@php.net
|
|||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Wed Oct 29 07:00:01 2025 UTC |
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* } }