#24128 [Fbk->NoF]: recursion in array
| From: | sniper@php.net | Date: | Wed, 18 Jun 2003 20:11:13 +0000 |
| Subject: | #24128 [Fbk->NoF]: recursion in array | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-42211@lists.php.net to get a copy of this message | ||
ID: 24128
Updated by: sniper@php.net
Reported By: young at sl dot com dot ua
-Status: Feedback
+Status: No Feedback
Bug Type: Arrays related
Operating System: Win2k
PHP Version: 4.3.2
New Comment:
No feedback was provided. The bug is being suspended because
we assume that you are no longer experiencing the problem.
If this is not the case and you are able to provide the
information that was requested earlier, please do so and
change the status of the bug back to "Open". Thank you.
Previous Comments:
------------------------------------------------------------------------
[2003-06-11 11:37:01] sniper@php.net
What exactly you think is the problem here?
What are you expecting to get..?
Same array as before serialize?
What possible use is there to have recursion in an array..?
------------------------------------------------------------------------
[2003-06-11 10:27:58] young at sl dot com dot ua
<?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 this bug report at http://bugs.php.net/?id=24128&edit=1