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

2d467abc46/UPGRADING (L886)
This commit is contained in:
wn 2020-12-12 09:53:08 -06:00
parent 6bdf4a1a25
commit 936b91a7e6
1 changed files with 4 additions and 1 deletions

View File

@ -18,7 +18,10 @@
$fetch_effective_url = false;
$fetch_curl_used = false;
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