All PHP versions: OPcache "already loaded" warning

Every PHP version shows this on every WP-CLI command:

Cannot load Zend OPcache - it was already loaded

The PHP binaries are compiled with --enable-opcache (OPcache built in), but the php.ini.hbs templates also include zend_extension = opcache.so, which tries to load it a second time.

The suggested fix would be to remove the zend_extension lines from the opcache block in the php.ini.hbs templates, since OPcache is already statically compiled into the binary. The opcache.enable and opcache.enable_cli settings should remain.

Hey @cliff! This might be related to your other post if you’re using a global version. Could that be the case?