Where to get php_mcrypt.dll for PHP 7.2?

I need a Mcrypt extension for my CMS. It is not distributed using PHP windows build, and I can not find compilation. I downloaded the sources and compiled php with the key --enable-mcrypt = shared, but it showed an error:

Enabling extension ext\standard
Checking for mcrypt.h ...  <not found>
Checking for mcrypt.h ...  <not found>
WARNING: mcrypt not enabled; libraries and headers not found

Here is config.w32:

// $Id$
// vim:ft=javascript

ARG_WITH("mcrypt", "mcrypt support", "no");

if (PHP_MCRYPT != "no") {

    if (CHECK_HEADER_ADD_INCLUDE('mcrypt.h', 'CFLAGS_MCRYPT') &&
            CHECK_LIB('libmcrypt_a.lib;libmcrypt.lib', 'mcrypt') &&
            CHECK_LIB('Advapi32.lib', 'mcrypt')
            ) {

        EXTENSION('mcrypt', 'mcrypt.c mcrypt_filter.c', false, "/DZEND_ENABLE_STATIC_TSRMLS_CACHE=1");
        AC_DEFINE('HAVE_LIBMCRYPT', 1);
        AC_DEFINE('HAVE_LIBMCRYPT24', 1);
    } else {
        WARNING("mcrypt not enabled; libraries and headers not found");
    }
}

It is looking for mcrypt.h, but in which folder? And this is not in the mcrypt package file downloaded from PECL. Unfortunately, I am not familiar with C ++ compilation

+5
source share
3 answers

http://php.net/manual/en/migration71.deprecated.php

The mcrypt extension has been abandoned for almost ten years, and it was quite difficult to use. Therefore, it is not recommended in favor of OpenSSL, where it will be removed from the kernel and in PECL in PHP 7.2.

+6
source

phpseclib/mcrypt_compat : composer require phpseclib/mcrypt_compat:*

+5

DLL http://www.dlldownloader.com/php_mcrypt-dll/

NB: The mcrypt extension is included in PHP 5.4 to PHP 7.1. It was removed from PHP 7.2 and moved to the unofficial PECL extension since the mcrypt library is no longer supported. For PHP 7.2+, PHP instead uses libsodium as a cryptography library. ServerPilot builds PHP 7.2+ with the official libsodium extension.

-2
source

Source: https://habr.com/ru/post/1690245/


All Articles