1
0
mirror of https://github.com/php/php-src.git synced 2026-04-30 03:33:17 +02:00
Files
DanielEScherzer 41996e8d4f ext/[cd]*: fix a bunch of typos (#16298)
Only functional change is the renaming of the functions
`dom_document_substitue_entities_(read|write)` to replace `substitue` with
`substitute`.
2024-10-09 17:40:42 +02:00

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) ""