#46849 [Opn->Asn]: Cloning DOMDocument doesn't clone the properties
| From: | bjori@php.net | Date: | Fri, 12 Dec 2008 14:02:18 +0000 |
| Subject: | #46849 [Opn->Asn]: Cloning DOMDocument doesn't clone the properties | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-131955@lists.php.net to get a copy of this message | ||
ID: 46849
Updated by: bjori@php.net
Reported By: hannes dot magnusson at gmail dot com
-Status: Open
+Status: Assigned
Bug Type: DOM XML related
Operating System: Linux
PHP Version: 5.3.0alpha3
-Assigned To:
+Assigned To: rrichards
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