#24128 [NEW]: recursion in array

From: Date: Wed, 11 Jun 2003 15:27:58 +0000
Subject: #24128 [NEW]: recursion in array
Groups: php.bugs 
Request: Send a blank email to php-bugs+get-41682@lists.php.net to get a copy of this message
From: young at sl dot com dot ua Operating system: Win2k PHP version: 4.3.2 PHP Bug Type: Arrays related Bug description: recursion in array <?php echo '<pre>'; $a = array(1, 2, 3); $a[1] = &$a; print_r($a); print_r(unserialize(serialize($a))); ?> Display: Array ( [0] => 1 [1] => Array *RECURSION* [2] => 3 ) Array ( [0] => 1 [1] => Array ( [0] => 1 [1] => [2] => 3 ) [2] => 3 ) -- Edit bug report at http://bugs.php.net/?id=24128&edit=1 -- Try a CVS snapshot: http://bugs.php.net/fix.php?id=24128&r=trysnapshot Fixed in CVS: http://bugs.php.net/fix.php?id=24128&r=fixedcvs Fixed in release: http://bugs.php.net/fix.php?id=24128&r=alreadyfixed Need backtrace: http://bugs.php.net/fix.php?id=24128&r=needtrace Try newer version: http://bugs.php.net/fix.php?id=24128&r=oldversion Not developer issue: http://bugs.php.net/fix.php?id=24128&r=support Expected behavior: http://bugs.php.net/fix.php?id=24128&r=notwrong Not enough info: http://bugs.php.net/fix.php?id=24128&r=notenoughinfo Submitted twice: http://bugs.php.net/fix.php?id=24128&r=submittedtwice register_globals: http://bugs.php.net/fix.php?id=24128&r=globals PHP 3 support discontinued: http://bugs.php.net/fix.php?id=24128&r=php3 Daylight Savings: http://bugs.php.net/fix.php?id=24128&r=dst IIS Stability: http://bugs.php.net/fix.php?id=24128&r=isapi Install GNU Sed: http://bugs.php.net/fix.php?id=24128&r=gnused

« previous php.bugs (#41682) next »