ID:               24128
 Updated by:       [EMAIL PROTECTED]
 Reported By:      young at sl dot com dot ua
-Status:           Open
+Status:           Feedback
 Bug Type:         Arrays related
 Operating System: Win2k
 PHP Version:      4.3.2
 New Comment:

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..?



Previous Comments:
------------------------------------------------------------------------

[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

Reply via email to