Skip to content
This repository was archived by the owner on Jan 31, 2020. It is now read-only.

Commit 437688a

Browse files
committed
Merge branch 'master' of git://github.com/zendframework/zf2 into hotfix/validator-db-abstractdb-tableIdentifier

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/Adapter/Wddx.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -114,9 +114,9 @@ public function unserialize($wddx)
114114
// check if the returned NULL is valid
115115
// or based on an invalid wddx string
116116
try {
117-
libxml_disable_entity_loader(true);
117+
$oldLibxmlDisableEntityLoader = libxml_disable_entity_loader(true);
118118
$simpleXml = new \SimpleXMLElement($wddx);
119-
libxml_disable_entity_loader(false);
119+
libxml_disable_entity_loader($oldLibxmlDisableEntityLoader);
120120
if (isset($simpleXml->data[0]->null[0])) {
121121
return null; // valid null
122122
}

0 commit comments

Comments
 (0)