mirror of
https://github.com/nextcloud/server.git
synced 2026-06-08 16:26:59 -04:00
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
1 changed files with 2 additions and 1 deletions
|
|
@ -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 a new issue