#46849 [Asn->Csd]: Cloning DOMDocument doesn't clone the properties
| From: | rrichards@php.net | Date: | Tue, 16 Dec 2008 12:55:04 +0000 |
| Subject: | #46849 [Asn->Csd]: Cloning DOMDocument doesn't clone the properties | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-132025@lists.php.net to get a copy of this message | ||
ID: 46849
Updated by: rrichards@php.net
Reported By: hannes dot magnusson at gmail dot com
-Status: Assigned
+Status: Closed
Bug Type: DOM XML related
Operating System: Linux
PHP Version: 5.3.0alpha3
Assigned To: rrichards
New Comment:
This bug has been fixed in CVS.
Snapshots of the sources are packaged every three hours; this change
will be in the next snapshot. You can grab the snapshot at
http://snaps.php.net/.
Thank you for the report, and for helping us make PHP better.
Previous Comments:
------------------------------------------------------------------------
[2008-12-12 14:01:42] hannes dot magnusson at gmail dot com
Description:
------------
Cloning and DOMDocument doesn't clone the properties
Reproduce code:
---------------
<?php
$dom = new DOMDocument;
$dom->formatOutput = 1;
var_dump($dom->formatOutput);
$dom2 = clone $dom;
var_dump($dom2->formatOutput);
Expected result:
----------------
bool(true)
bool(true)
Actual result:
--------------
bool(true)
bool(false)
------------------------------------------------------------------------
--
Edit this bug report at http://bugs.php.net/?id=46849&edit=1