No Code Attached Yet
avatar brbrbr
brbrbr
2 Jul 2025

Steps to reproduce the issue

** set opcache.restrict_api to a path in the used php.ini configuration and ensure opcache is enabled.
** invoke File::invalidateFileCache($file) on a file outside that path

Expected result

nothing

Actual result

Got error 'PHP message: PHP Warning: Zend OPcache API is restricted by "restrict_api" configuration directive in .../libraries/vendor/joomla/filesystem/src/File.php on line 337'

System information (as much as possible)

Seen on Joomla 5.3.1 and php 8.2 and 8.3

avatar brbrbr brbrbr - open - 2 Jul 2025
avatar joomla-cms-bot joomla-cms-bot - change - 2 Jul 2025
Labels Added: No Code Attached Yet
avatar joomla-cms-bot joomla-cms-bot - labeled - 2 Jul 2025
avatar richard67
richard67 - comment - 4 Jul 2025

@brbrbr That would be fixed by joomla-framework/filesystem#75 in the framework. Could you test and report back there? Just manually apply the change from there.

avatar brbrbr
brbrbr - comment - 4 Jul 2025

That indeed solved the issue.

avatar richard67
richard67 - comment - 4 Jul 2025

That indeed solved the issue.

@brbrbr Could you just leave a comment in that PR joomla-framework/filesystem#75 that you have successfully tested that it fixes this issue here? Thanks in advance.

Add a Comment

Login with GitHub to post a comment