问题
For a testing purpose I want to get rid of this error " Uncaught Error: Call to undefined function mcrypt_module_open() " . I know its deprecated. Tried pasting the .dll file and addind this line in the php.ini (extension=php_mcrypt extension=libmcrypt) and no use .. Any Help ?
回答1:
mcrypt
is longer used and has now been deprecated since 7.1 and removed in 7.2 as it wasn't being maintained any longer.
You can use functions such as:
- OpenSSL Encryption
- Libsodium
- PHP's inbuilt password hash/verify
Using mcrypt
is not suggested, however downgrading your PHP version will allow you to continue using it without any errors.
回答2:
mcrypt
is deprecated in 7.1 and removed in 7.2. Use the built in libsodium functionality
来源:https://stackoverflow.com/questions/50891547/i-want-to-make-mcrypt-work-on-xampp-windows-with-php-7-2-error-call-to-undefine