mirror of
https://github.com/php/php-src.git
synced 2026-04-30 03:33:17 +02:00
41996e8d4f
Only functional change is the renaming of the functions `dom_document_substitue_entities_(read|write)` to replace `substitue` with `substitute`.
21 lines
330 B
PHP
21 lines
330 B
PHP
--TEST--
|
|
dom: Bug #79968 - Crash when calling before without valid hierarchy
|
|
--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) ""
|