Reputation: 1
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
Upvotes: -1
Views: 362
Reputation: 300
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
Upvotes: 0