in misc

FreeBSD 14 pkg upgrade PHP – PHP Warning: PHP Startup: Unable to load dynamic library ‘imagick.so’

Upgrading the PHP packages on FreeBSD 14 results in the following warningf when restarting the php server (php_fpm or mod_php)

PHP Warning:  PHP Startup: Unable to load dynamic library 'imagick.so' (tried: /usr/local/lib/php/20220829/imagick.so (/usr/local/lib/libMagickWand-7.so.10: version VERS_10.0 required by /usr/local/lib/php/20220829/imagick.so not defined), /usr/local/lib/php/20220829/imagick.so.so (Cannot open "/usr/local/lib/php/20220829/imagick.so.so")) in Unknown on line 0

The reason is that the phpXX-pecl-imagick isn't updated automaticly.

Workaround for it is to reïnstall the phpXX-pecl-imagick package. (Check your php version with php --version)

pkg install -f  php82-pecl-imagick