PHP 8.4.10: Xdebug and imagick compiled for wrong API version

When switching to PHP 8.4.10, the bundled xdebug and imagick extensions fail to load due to API version mismatches:

Xdebug requires Zend Engine API version 420240924.
The Zend Engine API version 420230831 which is installed, is outdated.

Warning: PHP Startup: imagick: Unable to initialize module
Module compiled with module API=20240924
PHP compiled with module API=20230831
These options need to match

The extensions were compiled for a newer Zend/module API than the PHP 8.4.10 binary actually provides. Xdebug and imagick are unavailable on this version as a result.

Thanks for the report, @cliff.

You might see this if you have PHP installed globally and in your path. If so, you could try temporarily uninstalling global versions.

1 Like