1
0
mirror of https://github.com/php/php-src.git synced 2026-04-19 14:01:01 +02:00
Files
archived-php-src/ext/dom/tests/bug70558.phpt
2020-02-03 22:52:20 +01:00

19 lines
331 B
PHP

--TEST--
Bug #70558 ("Couldn't fetch" error in DOMDocument::registerNodeClass())
--SKIPIF--
<?php require_once('skipif.inc'); ?>
--FILE--
<?php
class X extends \DOMDocument {
public function __clone() {
var_dump($this->registerNodeClass('DOMDocument', 'X'));
}
}
$dom = clone (new X());
?>
--EXPECT--
bool(true)