Skip to content
Snippets Groups Projects
Commit 725aab55 authored by Perry Lowe's avatar Perry Lowe Committed by Youri van Koppen
Browse files

Issue #3328689 by pelowe: Skip call to function libxml_disable_entity_loader()...

Issue #3328689 by pelowe: Skip call to function libxml_disable_entity_loader() on PHP8 since it is deprecated.
parent f5d9d6e5
No related branches found
No related tags found
No related merge requests found
......@@ -285,7 +285,7 @@ class FeedsExXml extends FeedsExBase {
// Only available in PHP >= 5.2.11.
// See http://symfony.com/blog/security-release-symfony-2-0-17-released for
// details.
if (function_exists('libxml_disable_entity_loader')) {
if (function_exists('libxml_disable_entity_loader') && \PHP_VERSION_ID < 80000) {
$this->entityLoader = libxml_disable_entity_loader(TRUE);
}
}
......@@ -298,7 +298,7 @@ class FeedsExXml extends FeedsExBase {
libxml_clear_errors();
libxml_use_internal_errors($this->handleXmlErrors);
if (function_exists('libxml_disable_entity_loader')) {
if (function_exists('libxml_disable_entity_loader') && \PHP_VERSION_ID < 80000) {
libxml_disable_entity_loader($this->entityLoader);
}
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment