How to install mcrypt php 7.2.3 extension in xampp for windows?

半城伤御伤魂 提交于 2019-12-01 23:15:33

问题


My PHP Version 7.2.3 and xampp pack do not have the mcrypt extension. It is not mentioned in the phpinfo() neither in the php.ini file in order to enable it.

I have downloaded mcrypt from this link: https://sourceforge.net/projects/mcrypt/ but I don't know how to integrate it as php extension. I need solution for xampp in windows please


回答1:


You don't

See http://php.net/manual/en/intro.mcrypt.php

This feature was DEPRECATED in PHP 7.1.0, and REMOVED in PHP 7.2.0.

Alternatives to this feature include:

  • Sodium (available as of PHP 7.2.0)
  • OpenSSL

They didn't include this one

  • PHPSecLib

But it's a third party library so I can't say I blame them, I've used it for some time and never heard anything bad about it yet.




回答2:


Change PHP version to lower version, like "7.0.33" or below.



来源:https://stackoverflow.com/questions/49663548/how-to-install-mcrypt-php-7-2-3-extension-in-xampp-for-windows

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