php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #57401 Sequence information lost during clone()
Submitted: 2006-11-28 06:19 UTC Modified: 2007-04-24 11:50 UTC
From: gcc@php.net Assigned: tuscany (profile)
Status: Closed Package: SCA_SDO (PECL)
PHP Version: 5.2.0 RC4 OS: XP
Private report: No CVE-ID: None
 [2006-11-28 06:19 UTC] gcc@php.net
Description:
------------
I have a sequenced type defined by a schema with mixed=true.  I can load an instance of this using the XML DAS, write it out again and all is fine.

The problem occurs when I clone the SDO into a new XML_Document and then write that out (can be using the same XML DAS).  All sequence text/formatting is lost as a result.  I have checked and the new SDO is still sequenced, it's just the  sequence content which has been lost.


Reproduce code:
---------------
Test case can be provided on request.

Expected result:
----------------
Cloning should preserve sequence data.

Actual result:
--------------
Cloning loses sequence information.

Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2006-11-28 08:22 UTC] cem@php.net
I've created http://issues.apache.org/jira/browse/TUSCANY-950 for this.
 [2007-04-24 11:50 UTC] cem@php.net
Thank you for your bug report. This issue has been fixed
in the latest released version of the package, which you can download at
http://pecl.php.net/get/SCA_SDO

Was fixed in release 1.1.2
 
PHP Copyright © 2001-2019 The PHP Group
All rights reserved.
Last updated: Wed May 22 08:01:26 2019 UTC