mirror of
https://github.com/php/php-src.git
synced 2026-04-27 01:48:26 +02:00
23ba4cde53
Closes GH-11905.
21 lines
329 B
PHP
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) ""
|