php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #24128 recursion in array
Submitted: 2003-06-11 10:27 UTC Modified: 2003-06-18 15:11 UTC
Votes:4
Avg. Score:4.0 ± 1.0
Reproduced:2 of 2 (100.0%)
Same Version:0 (0.0%)
Same OS:1 (50.0%)
From: young at sl dot com dot ua Assigned:
Status: No Feedback Package: Arrays related
PHP Version: 4.3.2 OS: Win2k
Private report: No CVE-ID: None
View Developer Edit
Welcome! If you don't have a Git account, you can't do anything here.
If you reported this bug, you can edit this bug over here.
(description)
Block user comment
Status: Assign to:
Package:
Bug Type:
Summary:
From: young at sl dot com dot ua
New email:
PHP Version: OS:

 

 [2003-06-11 10:27 UTC] 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
)


Patches

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2003-06-11 11:37 UTC] 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-18 15:11 UTC] sniper@php.net
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.


 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Fri Oct 04 12:01:27 2024 UTC