-
-
Notifications
You must be signed in to change notification settings - Fork 145
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
When will the imagick extension support php8.4? Now it will report an error #698
Comments
same problem here |
I'm trying to install it like this, I don't know if it works docker exec php install-php-extensions 65e27f2bc0 |
PHP 8.4.1 with ImageMagick-7.1.1-41 |
same issue with PECL install edit : finally worked problem was between keybard and chair... using a phpize from source and ./configure in my prefix all runs |
I have successfully installed imagick in the docker php:fpm-alpine build I used |
Running into an issue while building using the Debian (Bookworm) PHP 8.4 Apache image. Partial Dockerfile:
Selected output:
|
When I try to install it on php 8.4 with pecl, I get this: |
I did manage to work around the 'php_strtolower' issue with php 8.4. I install imagick with pecl, and during the installation the process stops to confirm the prefix for the installation:
Before hitting enter I edit imagick.c which at that point in my case is in:
And I comment out line 606 with the 'php_strtolower' call which no longer seems to work in php 8.4. |
It is better to make changes from this branch |
But then real question is: does this project is still active ? |
Imagick is primarily a wrapper that allows PHP to interface with ImageMagick, where all the actual image manipulation happens. Unlike ImageMagick, which needs to evolve to keep up with new formats, improvements, and image processing capabilities, Imagick's role is simpler—it's about maintaining compatibility and providing PHP bindings. Therefore, it doesn't necessarily need frequent changes unless compatibility issues arise, as with new PHP versions or changes in ImageMagick's API. |
@BowFarmer |
I'm not working on this project but as usarise pointed out earlier, there is a fix that is being worked on: |
actually, I feel the project is not maintain anymore. I believe, someone should fork it, a d make it the new default. |
Docker users don't feel the full impact of stagnation as much. |
@picov In reality latest commit is on Jul 7, 2024. |
So for those of using pecl, and installing imagick as pecl install imagick, is there a timeline when those changes for php 8.4 will be in the main branch? |
@BowFarmer Of course not. |
@BowFarmer Latest released for pecl 2022-01-11, |
I think this is a duplicate of #689 |
For those who want something working, here my Dockerfile:
|
Thanks for this - can confirm it works for be building on the |
Many thanks for sharing the workaround ... this was it but instead of commenting the line out, I replaced php_strtolower with zend_str_tolower. Cheers! |
Thanks. |
This is exactly what I did, and it just worked for me. I am running this on an Intel Mac via homebrew. |
I'm suddenly hit with something that doesn't look like a PHP version error:
The deployment somehow still succeeded so I'm at a loss |
Warning: PHP Startup: Unable to load dynamic library 'imagick.so' (tried: /usr/local/lib/php/extensions/no-debug-non-zts-20240924/imagick.so (Error relocating /usr/local/lib/php/extensions/no-debug-non-zts-20240924/imagick.so: php_strtolower: symbol not found), /usr/local/lib/php/extensions/no-debug-non-zts-20240924/imagick.so.so (Error loading shared library /usr/local/lib/php/extensions/no-debug-non-zts-20240924/imagick.so.so: No such file or directory)) in Unknown on line 0
How do I solve this problem? Thank you
The text was updated successfully, but these errors were encountered: