#32930 [Opn->Csd]: When class extends with DOMDocument it's can't clone properly
| From: | rrichards@php.net | Date: | Tue, 03 May 2005 22:58:09 +0000 |
| Subject: | #32930 [Opn->Csd]: When class extends with DOMDocument it's can't clone properly | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-78577@lists.php.net to get a copy of this message | ||
ID: 32930
Updated by: rrichards@php.net
Reported By: pasha dot zubkov at gmail dot com
-Status: Open
+Status: Closed
Bug Type: Zend Engine 2 problem
Operating System: Linux 2.6.11.6-grsec
PHP Version: 5.0.4
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:
------------------------------------------------------------------------
[2005-05-03 20:29:19] pasha dot zubkov at gmail dot com
Description:
------------
When class extends with DOMDocument it's can't clone properly
Reproduce code:
---------------
<?php
class First extends DOMDocument {
private $_first = null;
public function setFirst($first) {
$this->_first = $first;
}
}
class Second extends First {
public function __construct() {
$this->setFirst('test');
}
}
$obj = new Second;
$object = clone $obj;
var_dump($obj, $object);
?>
Expected result:
----------------
Object will be identical
------------------------------------------------------------------------
--
Edit this bug report at http://bugs.php.net/?id=32930&edit=1