xref: /PHP-8.1/ext/dom/tests/bug70558.phpt (revision bd9f4fa6)
1--TEST--
2Bug #70558 ("Couldn't fetch" error in DOMDocument::registerNodeClass())
3--EXTENSIONS--
4dom
5--FILE--
6<?php
7
8class X extends \DOMDocument {
9
10    public function __clone() {
11        var_dump($this->registerNodeClass('DOMDocument', 'X'));
12    }
13}
14
15$dom = clone (new X());
16?>
17--EXPECT--
18bool(true)
19