diff --git a/src/Standards/Generic/Tests/PHP/DeprecatedFunctionsUnitTest.inc b/src/Standards/Generic/Tests/PHP/DeprecatedFunctionsUnitTest.inc index 2bc2453686..d3df5f2aec 100644 --- a/src/Standards/Generic/Tests/PHP/DeprecatedFunctionsUnitTest.inc +++ b/src/Standards/Generic/Tests/PHP/DeprecatedFunctionsUnitTest.inc @@ -2,3 +2,4 @@ create_function(); // Deprecated PHP 7.2. mbsplit(); // Deprecated PHP 7.3. +libxml_disable_entity_loader(); // Deprecated PHP 8.0. diff --git a/src/Standards/Generic/Tests/PHP/DeprecatedFunctionsUnitTest.php b/src/Standards/Generic/Tests/PHP/DeprecatedFunctionsUnitTest.php index 4b6f6ef540..138c222390 100644 --- a/src/Standards/Generic/Tests/PHP/DeprecatedFunctionsUnitTest.php +++ b/src/Standards/Generic/Tests/PHP/DeprecatedFunctionsUnitTest.php @@ -40,6 +40,10 @@ public function getErrorList() $errors[4] = 1; } + if (PHP_VERSION_ID >= 80000) { + $errors[5] = 1; + } + return $errors; }//end getErrorList()