lando / php

The Official Lando PHP plugin.
https://docs.lando.dev/php
GNU General Public License v3.0
16 stars 16 forks source link

Add Imagick to PHP 8.3 #114

Open AaronFeledy opened 5 months ago

AaronFeledy commented 5 months ago

Due to an incompatibility issue with Imagick and PHP 8.3, the Imagick extensions is deliberately not included in the 8.3 image. The upstream issue can be tracked at imagick/imagick#640.

Once the bug in imagick is fixed, we should get it added in.

Note that the matrix in extensions.md and the note below the matrix should be updated to reflect this change when it does occur.

AaronFeledy commented 5 months ago

Note that the fix has been merged into the develop branch of Imagick but a new release has yet to be rolled out. If you need Imagick in PHP 8.3, you can try installing from the develop source via build steps in your landofile. I haven't tested this, but it should look something like this:

services:
   appserver:
     build_as_root:
       - mkdir -p /usr/src/php/ext/imagick
       - curl -fsSL https://github.com/Imagick/imagick/archive/28f27044e435a2b203e32675e942eb8de620ee58.tar.gz | tar xvz -C "/usr/src/php/ext/imagick" --strip 1
       - docker-php-ext-install imagick

After adding this, Imagick should get installed from the unreleased source when you run a lando rebuild.

pirog commented 3 weeks ago

@AaronFeledy it does look like this is including in our 8.3 image now? im going to add a test to confirm that and then probably close this out. If you have a PROBLEM with that then speak nowish 😄

pirog commented 3 weeks ago

spoke too soon, looks like it isnt installed and also isnt supported in 8.3 yet. weird?