mirror of
https://github.com/Karaka-Management/Resources.git
synced 2026-01-11 13:28:40 +00:00
bump php version
This commit is contained in:
parent
33bad68af6
commit
bec9f67bc1
|
|
@ -63,7 +63,7 @@ class XmlScanner
|
|||
|
||||
private function disableEntityLoaderCheck()
|
||||
{
|
||||
if (Settings::getLibXmlDisableEntityLoader()) {
|
||||
if (Settings::getLibXmlDisableEntityLoader() && \PHP_VERSION_ID < 80000) {
|
||||
$libxmlDisableEntityLoaderValue = libxml_disable_entity_loader(true);
|
||||
|
||||
if (self::$libxmlDisableEntityLoaderValue === null) {
|
||||
|
|
@ -74,7 +74,7 @@ class XmlScanner
|
|||
|
||||
public static function shutdown()
|
||||
{
|
||||
if (self::$libxmlDisableEntityLoaderValue !== null) {
|
||||
if (self::$libxmlDisableEntityLoaderValue !== null && \PHP_VERSION_ID < 80000) {
|
||||
libxml_disable_entity_loader(self::$libxmlDisableEntityLoaderValue);
|
||||
self::$libxmlDisableEntityLoaderValue = null;
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user