1
0
mirror of https://github.com/php/php-src.git synced 2026-04-27 10:16:41 +02:00
Files
archived-php-src/ext/dom/tests/bug66783.phpt
T
2021-06-29 17:13:02 +02:00

18 lines
324 B
PHP

--TEST--
Bug #66783 (UAF when appending DOMDocument to element)
--EXTENSIONS--
dom
--FILE--
<?php
$doc = new DomDocument;
$doc->loadXML('<root></root>');
$e = $doc->createElement('e');
try {
$e->appendChild($doc);
} catch (DOMException $ex) {
echo $ex->getMessage(), PHP_EOL;
}
?>
--EXPECT--
Hierarchy Request Error