Merge pull request #12911 from owncloud/hhvm-infoparser

HHVM: Call libxml_use_internal_errors() instead of surpressing errors.
remotes/origin/fix-10825
Morris Jobke 12 years ago
commit a3700513d6
  1. 3
      lib/private/app/infoparser.php

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

Loading…
Cancel
Save