Don't do deprecated 'libxml_disable_entity_loader(true)' under PHP 8.

https://github.com/php/php-src/blob/2d467abc46ec4ee97484d4e35909bed322600037/UPGRADING#L886
This commit is contained in:
wn
2020-12-12 09:53:08 -06:00
parent 6bdf4a1a25
commit 936b91a7e6
+4 -1
View File
@@ -18,7 +18,10 @@
$fetch_effective_url = false;
$fetch_curl_used = false;
libxml_disable_entity_loader(true);
if (version_compare(PHP_VERSION, '8.0.0', '<')) {
libxml_disable_entity_loader(true);
}
libxml_use_internal_errors(true);
// separate test because this is included before sanity checks