#102734opcache_reset() is not checked for existence in TYPO3\CMS\Core\Service\OpcodeCacheService
Description
In line 76 opcache_invalidate is checked for existence. It seems that my hosting provider does not provide those functions, but only opcache_get_status() is listed in disabled functions. So I get an error “Call to undefined function TYPO3\CMS\Core\Service\opcache_reset()”. This can be avoided by checking opcache_reset() also for existence in line 76:
return function_exists('opcache_reset') && function_exists('opcache_invalidate') && !(in_array('opcache_invalidate', $disabled, true) || in_array('opcache_reset', $disabled, true));Reviews 3
History 27
-
Gerrit Code Review pushed patch set 1 for main to change 82361 status
NewUnder Review 01/06/24, 22:58 -
Gerrit Code Review pushed patch set 2 for main to change 82361 01/07/24, 20:40
-
Gerrit Code Review pushed patch set 3 for main to change 82361 01/08/24, 21:53
-
Gerrit Code Review pushed patch set 1 for 12.4 to change 82383 01/09/24, 08:46
-
Gerrit Code Review pushed patch set 1 for 11.5 to change 82384 01/09/24, 08:47
-
Stefan Bürk commented and changed status
Under ReviewResolved done0 %100 % 01/09/24, 09:20 -
Benni Mack changed status
ResolvedClosed 07/09/24, 15:12
Applied in changeset commit:c90c95abef5e1d6d005385a5e44d0c181b8bc0a9.