From 8c509c343740896f41263ca2668355e354b5a725 Mon Sep 17 00:00:00 2001 From: Andreas Fischer Date: Wed, 17 Dec 2014 17:00:10 +0100 Subject: [PATCH] HHVM: Call libxml_use_internal_errors() instead of surpressing errors. In contrast to the previous solution, this also works on HHVM. --- lib/private/app/infoparser.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/lib/private/app/infoparser.php b/lib/private/app/infoparser.php index 0bfbf6bd13..0603a7a7b7 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;