You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
where php_strtolower is no longer supported in PHP 8.4
There is a possible workaround until new version of imagick is released passing CPP flags replacing the function to the zend one which is backward compatible with previous versions:
Version of install-php-extensions
v2.7.14
Error description
Error when installing imagick in a PHP 8.4 image:
Looks like it is related to this issue:
where
php_strtolower
is no longer supported in PHP 8.4There is a possible workaround until new version of imagick is released passing CPP flags replacing the function to the zend one which is backward compatible with previous versions:
But I am not sure where I could add this flag for
imagick
Happy to open a PR to solve this 😄
Checking the code not sure what is best:
installImagick
function to do it manuallyprocessPHPModuleArgument()
functionimagick)
insideinstallRemoteModule()
function with theinstallRemoteModule_cppflags
argumentDocker image
php:8.4-fpm-alpine
Minimal Dockerfile
RUN chmod +x /usr/local/bin/install-php-extensions && \ install-php-extensions opcache bcmath gmp curl intl pcntl exif soap mcrypt newrelic pdo_mysql-^1 pdo_pgsql-^1 sockets zip-^1 amqp-^2 apcu-^5 event-^3 mongodb-^1 grpc-1.64.1 gd-^2 imagick/imagick@28f27044e435a2b203e32675e942eb8de620ee58 install-php-extensions opcache bcmath gmp curl intl pcntl exif soap newrelic pdo_mysql-^1 pdo_pgsql-^1 sockets zip-^1 amqp-^2 apcu-^5 event-^3 mongodb-^1 grpc-^1 gd-^2 imagick/imagick@28f27044e435a2b203e32675e942eb8de620ee58
The text was updated successfully, but these errors were encountered: