1
0
mirror of https://github.com/php/php-src.git synced 2026-04-27 01:48:26 +02:00
Files
archived-php-src/ext/dom/tests/bug79968.phpt
Niels Dossche 23ba4cde53 Align DOMChildNode parent checks with spec
Closes GH-11905.
2023-08-09 21:24:33 +02:00

21 lines
329 B
PHP

--TEST--
dom: Bug #79968 - Crash when calling before without valid hierachy
--EXTENSIONS--
dom
--FILE--
<?php
$cdata = new DOMText;
$cdata->before("string");
$cdata->after("string");
$cdata->replaceWith("string");
$dom = new DOMDocument();
$dom->adoptNode($cdata);
var_dump($dom->saveXML($cdata));
?>
--EXPECT--
string(0) ""