Issue using pecl/pickle to install PHP extensions

In the last couple of days, I spent multiple hours trying to install the PHP extensions php8-imagick and php8-redis which are required by WordPress plugins I’d like to use.

I found that when pickle is used, the PHP extensions are not being recognized by the WordPress plugins:

  • Redis Object Cache still works but shows it is using predis and not Phpredis
  • ImagickMagic Engine does not activate because it does not find the extension

For PHP 7.4 and 8.0, everything is fine because the packages php8-imagick and php8-redis exist and can be installed with opi.

For PHP 8.1. and 8.2, no such packages exist and one has to go the “PHP way”:

sudo zypper install phpize
wget https://github.com/FriendsOfPHP/pickle/releases/latest/download/pickle.phar
sudo mv pickle.phar /usr/local/bin/pickle
chmod +x /usr/local/bin/pickle

pickle install redis

After linking the extension=redis.so in php.ini, the package ought to be installed. Commands like php -i and php -m display the expected information.

But as said before, the PHP extensions are not being recognized by the WordPress plugins.

Am I missing something?