Platform
Windows
Operating system version
Windows 11
System architecture
Windows
Herd Version
1.29.0
PHP Version
PHP 8.5.9 (recurred after updating from a previous 8.5.x build via Herd)
Bug description
After updating PHP 8.5 through Herd, composer and php artisan commands print an OPcache API mismatch warning. This appears to be caused by a stale php.ini entry loading OPcache as an extension — as of PHP 8.5, OPcache is compiled directly into core and no longer needs to be loaded via zend_extension. It looks like Herd's PHP 8.5 install still writes/retains that line on update, so each PHP release breaks it again since the bundled extension file doesn't match the new Zend Engine API version.
This is the same error as reported in #1699, which appears to be closed without a resolution. I am opening it here since it recurs on every PHP 8.5 update, not just a one-off install.
Steps to reproduce
- Install PHP 8.5 via Herd
- Run
composer install or php artisan in a project
- If warning appears fix php.ini - see workaround below
- Update PHP 8.5 to a newer patch version via Herd (e.g. 8.5.8 → 8.5.9)
- Run
composer or php artisan again — warning reappears
Workaround found: removing/commenting the zend_extension=opcache line in the PHP 8.5 php.ini resolves it, since OPcache is now built-in and doesn't need to be loaded separately. It would be good if Herd's installer stopped writing that line for PHP 8.5+, or carried over the fact that it is commented out on update.
Relevant log output
Zend OPcache requires Zend Engine API version 420240925.
The Zend Engine API version 420250925 which is installed, is newer.
Contact Zend Technologies at http://www.zend.com/ for a later version of Zend OPcache.
Platform
Windows
Operating system version
Windows 11
System architecture
Windows
Herd Version
1.29.0
PHP Version
PHP 8.5.9 (recurred after updating from a previous 8.5.x build via Herd)
Bug description
After updating PHP 8.5 through Herd,
composerandphp artisancommands print an OPcache API mismatch warning. This appears to be caused by a stale php.ini entry loading OPcache as an extension — as of PHP 8.5, OPcache is compiled directly into core and no longer needs to be loaded viazend_extension. It looks like Herd's PHP 8.5 install still writes/retains that line on update, so each PHP release breaks it again since the bundled extension file doesn't match the new Zend Engine API version.This is the same error as reported in #1699, which appears to be closed without a resolution. I am opening it here since it recurs on every PHP 8.5 update, not just a one-off install.
Steps to reproduce
composer installorphp artisanin a projectcomposerorphp artisanagain — warning reappearsWorkaround found: removing/commenting the
zend_extension=opcacheline in the PHP 8.5 php.ini resolves it, since OPcache is now built-in and doesn't need to be loaded separately. It would be good if Herd's installer stopped writing that line for PHP 8.5+, or carried over the fact that it is commented out on update.Relevant log output
Zend OPcache requires Zend Engine API version 420240925. The Zend Engine API version 420250925 which is installed, is newer. Contact Zend Technologies at http://www.zend.com/ for a later version of Zend OPcache.