I want To Make mcrypt work on xampp windows with php 7.2 Error: Call to undefined function mcrypt_module_open()

情到浓时终转凉″ 提交于 2019-12-11 05:29:54

问题


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

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!