On 5/26/25 05:47, Tim Düsterhus wrote:
Hi

Arnaud, Ilija and I would like to propose making OPcache a non-optional part of PHP starting with PHP 8.5.

Please find the RFC including more details at: https://wiki.php.net/rfc/ make_opcache_required

As of now OPcache cannot be statically compiled into the PHP binary at all, which is the direct opposite from what we are proposing. This is due to an incompatibility between JIT and ZTS builds. Arnaud has prepared a proof-of-concept implementation fixing this issue at: https://github.com/php/php-src/pull/18660. The changes in that PR would also allow building static PHP binaries with OPcache enabled in the first place (e.g. for use with FrankenPHP).

Best regards
Tim Düsterhus


The RFC states:

> `zend_extension=opcache` will need to be removed from a user’s php.ini
> configuration

Is this really a *need*, or is it more of a recommendation? If it's left in a user's configuration, what is the impact?

Cheers,
Ben

Attachment: OpenPGP_signature.asc
Description: OpenPGP digital signature

Reply via email to