I extracted mcrypt to C:\xampp\php\ext, updated the php.ini with extension=php_mcrypt, rebooted the Apache server, and steel I get: Unable to load dynamic library 'php_mcrypt' (tried: C:\xampp\php\ext\php_mcrypt... Also I cant see the module with php -m
Asked
Active
Viewed 156 times
-1
-
Are you using the correct version of the module? – Manuel Eduardo Romero Jan 12 '23 at 15:12
-
@ManuelEduardoRomero I think so, I'm using php 8.2.0, with mcrypt 7.4 (tried both ts and nts) – GBU Jan 12 '23 at 15:21
-
Is there version 8.2 of mcrypt? – Manuel Eduardo Romero Jan 12 '23 at 15:41
-
1Check here https://pecl.php.net/package/mcrypt – Manuel Eduardo Romero Jan 12 '23 at 15:42
-
@ManuelEduardoRomero yes but it's not available on dll – GBU Jan 12 '23 at 15:44
1 Answers
0
In order to install PHP extensions on Windows you either need to download precompiled DLL from PECL, or compile the code yourself.
As of writing this answer precompiled DLLs for mcrypt are only available for version 1.0.4 and older. Newest release, version 1.0.5 which is compatible with PHP 8.2.0 only has source code listed, which means you'll have to compile it yourself: https://www.php.net/manual/en/install.pecl.windows.php
Alternatively, you might want to try to use this polyfill library instead: https://github.com/phpseclib/mcrypt_compat

pauk960
- 300
- 2
- 8