mirror of
https://github.com/php/php-src.git
synced 2024-11-27 03:44:07 +08:00
Fix GH-15331: dom: Element::$substitutedNodeValue test failed
Bug in libxml, amend test to accept both outputs.
This commit is contained in:
parent
9b41c8b1b5
commit
8d7365b6f0
1
NEWS
1
NEWS
@ -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.
|
||||
|
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user