mcrypt extension not installable on php 8.1
Description
It looks like the mcrypt extension is not available (yet?) on php 8.1. I couldn't find anything about whether or not there's already efforts underway to change that, hence this issue.
Dockerfile to reproduce:
FROM php:8.1-fpm-buster
RUN pecl install mcrypt-1.0.4
Results in:
pecl/mcrypt is not compatible with PHP version 8.1.0
No valid packages found
install failed
Not sure if this is the right place to report this, the bugtracker for the mcrypt page from pecl told me to open an issue here.
I think mcrypt has moved to https://github.com/php/pecl-encryption-mcrypt?
But mcrypt is dead. Time to move to sodium or openssl.
Still feeling out the new system but I think this counts as "invalid" because mcrypt isn't part of the PHP core anymore.
I think mcrypt has moved to https://github.com/php/pecl-encryption-mcrypt?
Looks like it yeah. But I can't seem to open issues there?
But mcrypt is dead. Time to move to sodium or openssl.
I wish this was my choice... But I think migrating stuff to 8.1 will be a good chance to do that.
Ah, here's one better: mcrypt_compat should be compatible with PHP 8.1.
FTR: I have enabled https://github.com/php/pecl-encryption-mcrypt/issues now.
Ah, here's one better: mcrypt_compat should be compatible with PHP 8.1.
Seriously, installing composer phar to manage php updates is like introducing yet another can of worms to consume whenever a php issue arrives knocking at your door. Good grief. This is not a valid solution.
If you still want to use mcrypt on php8.1 on dockerfile, im using
ADD https://github.com/mlocati/docker-php-extension-installer/releases/latest/download/install-php-extensions /usr/local/bin/
RUN chmod +x /usr/local/bin/install-php-extensions && \
install-php-extensions mcrypt