Skip to content
Snippets Groups Projects
Commit 8c509c34 authored by Andreas Fischer's avatar Andreas Fischer
Browse files

HHVM: Call libxml_use_internal_errors() instead of surpressing errors.

In contrast to the previous solution, this also works on HHVM.
parent 532ba99f
No related branches found
No related tags found
No related merge requests found
......@@ -41,8 +41,9 @@ class InfoParser {
return null;
}
libxml_use_internal_errors(true);
$loadEntities = libxml_disable_entity_loader(false);
$xml = @simplexml_load_file($file);
$xml = simplexml_load_file($file);
libxml_disable_entity_loader($loadEntities);
if ($xml == false) {
return null;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment