#46849 [NEW]: Cloning DOMDocument doesn't clone the properties
| From: | hannes dot magnusson at gmail dot com | Date: | Fri, 12 Dec 2008 14:01:42 +0000 |
| Subject: | #46849 [NEW]: Cloning DOMDocument doesn't clone the properties | ||
| Groups: | php.bugs | ||
| Request: | Send a blank email to php-bugs+get-131954@lists.php.net to get a copy of this message | ||
From: hannes dot magnusson at gmail dot com
Operating system: Linux
PHP version: 5.3.0alpha3
PHP Bug Type: DOM XML related
Bug description: Cloning DOMDocument doesn't clone the properties
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 bug report at http://bugs.php.net/?id=46849&edit=1
--
Try a CVS snapshot (PHP 5.2): http://bugs.php.net/fix.php?id=46849&r=trysnapshot52
Try a CVS snapshot (PHP 5.3): http://bugs.php.net/fix.php?id=46849&r=trysnapshot53
Try a CVS snapshot (PHP 6.0): http://bugs.php.net/fix.php?id=46849&r=trysnapshot60
Fixed in CVS: http://bugs.php.net/fix.php?id=46849&r=fixedcvs
Fixed in CVS and need be documented: http://bugs.php.net/fix.php?id=46849&r=needdocs
Fixed in release: http://bugs.php.net/fix.php?id=46849&r=alreadyfixed
Need backtrace: http://bugs.php.net/fix.php?id=46849&r=needtrace
Need Reproduce Script: http://bugs.php.net/fix.php?id=46849&r=needscript
Try newer version: http://bugs.php.net/fix.php?id=46849&r=oldversion
Not developer issue: http://bugs.php.net/fix.php?id=46849&r=support
Expected behavior: http://bugs.php.net/fix.php?id=46849&r=notwrong
Not enough info: http://bugs.php.net/fix.php?id=46849&r=notenoughinfo
Submitted twice: http://bugs.php.net/fix.php?id=46849&r=submittedtwice
register_globals: http://bugs.php.net/fix.php?id=46849&r=globals
PHP 4 support discontinued: http://bugs.php.net/fix.php?id=46849&r=php4
Daylight Savings: http://bugs.php.net/fix.php?id=46849&r=dst
IIS Stability: http://bugs.php.net/fix.php?id=46849&r=isapi
Install GNU Sed: http://bugs.php.net/fix.php?id=46849&r=gnused
Floating point limitations: http://bugs.php.net/fix.php?id=46849&r=float
No Zend Extensions: http://bugs.php.net/fix.php?id=46849&r=nozend
MySQL Configuration Error: http://bugs.php.net/fix.php?id=46849&r=mysqlcfg