Skip to content
Commit c90c95ab authored by Stefan Bürk's avatar Stefan Bürk
Browse files

[BUGFIX] Check all method for existence in `OpcodeCacheService`

The `\TYPO3\CMS\Core\Service\OpcodeCacheService->isClearable()`
method checks for existence of opcache function and if they are
listed in the `disable_functions` configuration.

It seems, that in some environments both methods are missing
and not listed in the disabled methods. Even if this sounds
odd when the opcache extension is installed but both methods are
not available, we add it to the check to avoid the missleading
error message:

	Call to undefined function
	TYPO3\CMS\Core\Service\opcache_reset()

Resolves: #102734
Releases: main, 12.4, 11.5
Change-Id: Icc17a276e8881f502a687db7ca57fc05ecb8981e
Reviewed-on: https://review.typo3.org/c/Packages/TYPO3.CMS/+/82361


Tested-by: default avatarGarvin Hicking <gh@faktor-e.de>
Tested-by: default avatarBenni Mack <benni@typo3.org>
Reviewed-by: default avatarGarvin Hicking <gh@faktor-e.de>
Reviewed-by: default avatarBenni Mack <benni@typo3.org>
Reviewed-by: default avatarStefan Bürk <stefan@buerk.tech>
Tested-by: default avatarStefan Bürk <stefan@buerk.tech>
Tested-by: default avatarcore-ci <typo3@b13.com>
parent 8916bf41
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment