Merge pull request #12911 from owncloud/hhvm-infoparser

HHVM: Call libxml_use_internal_errors() instead of surpressing errors.
This commit is contained in:
Morris Jobke 2014-12-17 21:14:41 +01:00
commit a3700513d6
1 changed files with 2 additions and 1 deletions

View File

@ -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;