Skip to content

Commit 8d7365b

Browse files
committed
Fix GH-15331: dom: Element::$substitutedNodeValue test failed
Bug in libxml, amend test to accept both outputs.
1 parent 9b41c8b commit 8d7365b

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

NEWS

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,7 @@ PHP NEWS
2424
(html5_serializer)). (nielsdos)
2525
. Deprecated DOM_PHP_ERR constant. (nielsdos)
2626
. Removed DOMImplementation::getFeature(). (nielsdos)
27+
. Fixed bug GH-15331 (Element::$substitutedNodeValue test failed). (nielsdos)
2728

2829
- Hash:
2930
. Deprecated passing incorrect data types for options to ext/hash functions.

ext/dom/tests/modern/extensions/Element_substitutedNodeValue.phpt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ var_dump($dom->documentElement->nodeValue); // Should always be NULL for element
2323
echo $dom->saveXML(), "\n";
2424

2525
?>
26-
--EXPECT--
26+
--EXPECTF--
2727
string(1) "1"
2828
NULL
2929
<?xml version="1.0" encoding="UTF-8"?>
@@ -35,4 +35,4 @@ NULL
3535
string(0) ""
3636
NULL
3737
<?xml version="1.0" encoding="UTF-8"?>
38-
<root></root>
38+
%r(<root><\/root>|<root\/>)%r

0 commit comments

Comments
 (0)