Workaround for the latest php version #56
Loading…
Reference in New Issue
No description provided.
Delete Branch "%!s(<nil>)"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
After upgrading php to 8.4 on Arch I had a bad suprise: the acpu and imagick extension were not working anymore, it looks like they are not yet compatible with the new php release. I found a workaround for acpu uninstalling the php-acpu Arch extension and using the internal php installer (pecl). First, you have to install the php-pear package from the AUR and then use:
# pecl install acpu
However, trying to uninstall php-imagick and install imagick this way failed, because the extension hasn't been fixed upstream and who knows when and if it will (the devs have been inactive for ages). Luckily, I found a pull release on the imagick github repo itself, but it hasn't been merged, so I had to apply the patch myself to the source like that:
# pecl install imagick
Please provide the prefix of ImageMagick installation [autodetect] :
you have to open the imagick.c file in the source, downloaded to
/run/tmp/pear/temp/imagick/
and replace the content with the patch:65e27f2bc0/imagick.c
Thank you for your investigation. I'll merge your findings in the arch guide
Thanks to you @lolcat , the Arch guys have already pushed a fix for apcu to their testing repos. I have opened an issue on their gitlab suggesting my fix for php-imagick and I'll keep you updated in case they push a new release for that too.