diff options
author | Matteo Beccati <mbeccati@php.net> | 2014-06-04 13:26:24 +0200 |
---|---|---|
committer | Matteo Beccati <mbeccati@php.net> | 2014-06-09 07:05:23 +0200 |
commit | 5c8c57aa6c340215961ac219f8d7d1c15be19566 (patch) | |
tree | a649a830bee353175998530deaddec922852bc40 /ext/libxml | |
parent | 9b5d56fd6117ea62fb86c968b0cce2f7c738f6b4 (diff) | |
download | php-git-5c8c57aa6c340215961ac219f8d7d1c15be19566.tar.gz |
Fixed DOM tests when using libxml2 versions patched against CVE-2014-0191
DOMDocument::substituteEntities needs to be set to true in order for
external entities to be parsed.
Diffstat (limited to 'ext/libxml')
-rw-r--r-- | ext/libxml/tests/libxml_set_external_entity_loader_variation1.phpt | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/ext/libxml/tests/libxml_set_external_entity_loader_variation1.phpt b/ext/libxml/tests/libxml_set_external_entity_loader_variation1.phpt index c9c45940b9..9581927043 100644 --- a/ext/libxml/tests/libxml_set_external_entity_loader_variation1.phpt +++ b/ext/libxml/tests/libxml_set_external_entity_loader_variation1.phpt @@ -37,6 +37,7 @@ libxml_set_external_entity_loader( ); $dd = new DOMDocument; +$dd->substituteEntities = true; $dd->resolveExternals = true; $r = $dd->loadXML($xml); var_dump($dd->validate()); |