diff --git a/typo3/sysext/core/Classes/Service/OpcodeCacheService.php b/typo3/sysext/core/Classes/Service/OpcodeCacheService.php index c6ac3f7642d31bc88ac26b31e75edd9e1f842022..34c0ec0d3db6054689871b6a36bd78e1ca127b59 100644 --- a/typo3/sysext/core/Classes/Service/OpcodeCacheService.php +++ b/typo3/sysext/core/Classes/Service/OpcodeCacheService.php @@ -71,6 +71,8 @@ class OpcodeCacheService protected static function isClearable(): bool { $disabled = explode(',', (string)ini_get('disable_functions')); - return function_exists('opcache_invalidate') && !(in_array('opcache_invalidate', $disabled, true) || in_array('opcache_reset', $disabled, true)); + return function_exists('opcache_invalidate') + && function_exists('opcache_reset') + && !(in_array('opcache_invalidate', $disabled, true) || in_array('opcache_reset', $disabled, true)); } }