|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
[2005-05-04 00:58 UTC] rrichards@php.net
|
|||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Thu Oct 30 22:00:01 2025 UTC |
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