php-src icon indicating copy to clipboard operation
php-src copied to clipboard

mcrypt extension not installable on php 8.1

Open kolaente opened this issue 4 years ago • 7 comments

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.

kolaente avatar Dec 09 '21 08:12 kolaente

I think mcrypt has moved to https://github.com/php/pecl-encryption-mcrypt?

But mcrypt is dead. Time to move to sodium or openssl.

damianwadley avatar Dec 09 '21 09:12 damianwadley

Still feeling out the new system but I think this counts as "invalid" because mcrypt isn't part of the PHP core anymore.

damianwadley avatar Dec 09 '21 09:12 damianwadley

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.

kolaente avatar Dec 09 '21 09:12 kolaente

Ah, here's one better: mcrypt_compat should be compatible with PHP 8.1.

damianwadley avatar Dec 09 '21 09:12 damianwadley

FTR: I have enabled https://github.com/php/pecl-encryption-mcrypt/issues now.

cmb69 avatar Dec 14 '21 12:12 cmb69

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.

jult avatar Dec 04 '23 21:12 jult

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

huyhoang8398 avatar May 22 '24 11:05 huyhoang8398