|  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #57514 clone object with null crashes PHP
Submitted: 2007-02-07 11:51 UTC Modified: 2007-04-26 11:34 UTC
From: Assigned: tuscany (profile)
Status: Closed Package: SCA_SDO (PECL)
PHP Version: 5.1.6 OS: WinXP
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 this is not your bug, you can add a comment by following this link.
If this is your bug, but you forgot your password, you can retrieve your password here.
Bug Type:
New email:
PHP Version: OS:


 [2007-02-07 11:51 UTC]
The attached testcase crashes PHP when run under ZS, and when run under Apache

Reproduce code:

$order_xsd = <<<EOF
<?xml version="1.0" encoding="UTF-8"?>
<schema xmlns=""
xmlns:ord="orderNS" xmlns:cust="customerNS" targetNamespace="orderNS">

  <include schemaLocation="./Customer.xsd"/>

  <element name="order" type="ord:OrderType">
    <complexType name="OrderType">
        <element ref="cust:customer"/>



$customer_xsd = <<<EOF2
<?xml version="1.0" encoding="UTF-8"?>
<schema xmlns=""
 xmlns:cust="customerNS" targetNamespace="customerNS">
  <element name="customer" type="cust:CustomerType">
    <complexType name="CustomerType">



$xmldas = SDO_DAS_XML::create('Order.xsd');
$order = $xmldas->createDataObject('orderNS','OrderType');
$order->customer = null;

$o = clone $order;



Add a Patch

Pull Requests

Add a Pull Request


AllCommentsChangesGit/SVN commitsRelated reports
 [2007-04-26 11:34 UTC]
This bug has been fixed in CVS.

In case this was a documentation problem, the fix will show up at the
end of next Sunday (CET) on

In case this was a website problem, the change will show
up on the website in short time.
Thank you for the report, and for helping us make PECL better.

Fix will be in next release RSN
PHP Copyright © 2001-2022 The PHP Group
All rights reserved.
Last updated: Wed Jan 26 09:03:33 2022 UTC