#97826Critical error with opcache_invalidate() function
Description
On a shared web hosting, i have this error :
typo3_src-11.5.12/typo3/sysext/core/Classes/Service/OpcodeCacheService.php, line 41: Call to undefined function TYPO3\CMS\Core\Service\opcache_invalidate()
It’s because the opcache.restrict_api parameter is very restrictive, and deny TYPO3 scripts to access the function.
The isClearable() function in the OpcodeCacheService class should not only check if the function is enable, but also if the function exists (see for example this Wordpress check: https://developer.wordpress.org/reference/functions/wp_opcache_invalidate/)