Merge pull request #12911 from owncloud/hhvm-infoparser
HHVM: Call libxml_use_internal_errors() instead of surpressing errors.
This commit is contained in:
commit
a3700513d6
|
@ -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…
Reference in New Issue