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
Welcome back! If you're the original bug submitter, here's where you can edit the bug or add additional notes.
If you forgot your password, you can retrieve your password here.
Password:
Status:
Package:
Bug Type:
Summary:
From: dr4k0n at list dot ru
New email:
PHP Version: OS:

 

 [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

Pull Requests

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-2025 The PHP Group
All rights reserved.
Last updated: Fri May 09 13:01:28 2025 UTC