Skip to content
Snippets Groups Projects
Commit a3700513 authored by Morris Jobke's avatar Morris Jobke
Browse files

Merge pull request #12911 from owncloud/hhvm-infoparser

HHVM: Call libxml_use_internal_errors() instead of surpressing errors.
parents c20be245 8c509c34
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.
Please register or to comment