Fix GH-15331: dom: Element::$substitutedNodeValue test failed

Bug in libxml, amend test to accept both outputs.
This commit is contained in:
Niels Dossche 2024-08-10 19:43:21 +02:00
parent 9b41c8b1b5
commit 8d7365b6f0
No known key found for this signature in database
GPG Key ID: B8A8AD166DF0E2E5
2 changed files with 3 additions and 2 deletions

1
NEWS
View File

@ -24,6 +24,7 @@ PHP NEWS
(html5_serializer)). (nielsdos)
. Deprecated DOM_PHP_ERR constant. (nielsdos)
. Removed DOMImplementation::getFeature(). (nielsdos)
. Fixed bug GH-15331 (Element::$substitutedNodeValue test failed). (nielsdos)
- Hash:
. Deprecated passing incorrect data types for options to ext/hash functions.

View File

@ -23,7 +23,7 @@ var_dump($dom->documentElement->nodeValue); // Should always be NULL for element
echo $dom->saveXML(), "\n";
?>
--EXPECT--
--EXPECTF--
string(1) "1"
NULL
<?xml version="1.0" encoding="UTF-8"?>
@ -35,4 +35,4 @@ NULL
string(0) ""
NULL
<?xml version="1.0" encoding="UTF-8"?>
<root></root>
%r(<root><\/root>|<root\/>)%r