aboutsummaryrefslogtreecommitdiffstats
path: root/lib
diff options
context:
space:
mode:
authorAndreas Fischer <bantu@owncloud.com>2014-12-17 17:00:10 +0100
committerAndreas Fischer <bantu@owncloud.com>2014-12-17 17:00:10 +0100
commit8c509c343740896f41263ca2668355e354b5a725 (patch)
tree29e2023c98c903d6b5a7b9496a493b3c7890b46d /lib
parent532ba99f1ccc092dc5ddfbc15b70a027bca3e558 (diff)
downloadnextcloud-server-8c509c343740896f41263ca2668355e354b5a725.tar.gz
nextcloud-server-8c509c343740896f41263ca2668355e354b5a725.zip
HHVM: Call libxml_use_internal_errors() instead of surpressing errors.
In contrast to the previous solution, this also works on HHVM.
Diffstat (limited to 'lib')
-rw-r--r--lib/private/app/infoparser.php3
1 files changed, 2 insertions, 1 deletions
diff --git a/lib/private/app/infoparser.php b/lib/private/app/infoparser.php
index 0bfbf6bd139..0603a7a7b7f 100644
--- a/lib/private/app/infoparser.php
+++ b/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;