php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #53093 Broken data in object
Submitted: 2010-10-18 09:07 UTC Modified: 2010-10-18 09:24 UTC
Votes:1
Avg. Score:5.0 ± 0.0
Reproduced:0 of 0 (0.0%)
From: dr4k0n at list dot ru Assigned:
Status: Closed Package: *General Issues
PHP Version: 5.2.14 OS: Gentoo Linux 2.6.31-xenU-fly
Private report: No CVE-ID: None
 [2010-10-18 09:07 UTC] dr4k0n at list dot ru
Description:
------------
PHP broke data in memory... Script:
http://www.infoskidka.ru/common/splitTest.php
It will show:
-----------------------------------------------
Array
(
    [0] => CDBResult Object
        (
            [advance_anchors] => Array
                (
                    [0] => 10
                    [1] => 20
                )

        )

)
CDBResult Object
(
    [advance_anchors] => 10
)
CDBResult Object
(
    [advance_anchors] => 20
)
Array
(
    [0] => CDBResult Object
        (
            [advance_anchors] => 20
        )

    [1] => CDBResult Object
        (
            [advance_anchors] => 20
        )

)
-----------------------------------------------

But I expect:
-----------------------------------------------
Array
(
    [0] => CDBResult Object
        (
            [advance_anchors] => Array
                (
                    [0] => 10
                    [1] => 20
                )

        )

)
CDBResult Object
(
    [advance_anchors] => 10
)
CDBResult Object
(
    [advance_anchors] => 20
)
Array
(
    [0] => CDBResult Object
        (
            [advance_anchors] => 10
        )

    [1] => CDBResult Object
        (
            [advance_anchors] => 20
        )

)
-----------------------------------------------



Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2010-10-18 09:24 UTC] dr4k0n at list dot ru
-Status: Open +Status: Closed
 [2010-10-18 09:24 UTC] dr4k0n at list dot ru
It's because of not I not use "clone" operator
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Fri Mar 29 02:01:30 2024 UTC