Bug #102734
closedopcache_reset() is not checked for existence in TYPO3\CMS\Core\Service\OpcodeCacheService
100%
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));
Updated by Gerrit Code Review 11 months ago
- Status changed from New to Under Review
Patch set 1 for branch main of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at https://review.typo3.org/c/Packages/TYPO3.CMS/+/82361
Updated by Gerrit Code Review 11 months ago
Patch set 2 for branch main of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at https://review.typo3.org/c/Packages/TYPO3.CMS/+/82361
Updated by Gerrit Code Review 11 months ago
Patch set 3 for branch main of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at https://review.typo3.org/c/Packages/TYPO3.CMS/+/82361
Updated by Gerrit Code Review 11 months ago
Patch set 1 for branch 12.4 of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at https://review.typo3.org/c/Packages/TYPO3.CMS/+/82383
Updated by Gerrit Code Review 11 months ago
Patch set 1 for branch 11.5 of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at https://review.typo3.org/c/Packages/TYPO3.CMS/+/82384
Updated by Stefan Bürk 11 months ago
- Status changed from Under Review to Resolved
- % Done changed from 0 to 100
Applied in changeset c90c95abef5e1d6d005385a5e44d0c181b8bc0a9.