我的PHP版本7.2.3和xampp包都没有mcrypt扩展。我想要启用它,但是phpinfo()中和php.ini文件中都没有提到它。
我已经从这个链接下载了 mcrypt:https://sourceforge.net/projects/mcrypt/ 文档,但是我不知道如何将它集成为 php 扩展。
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
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.
Change PHP version to lower version, like "7.0.33" or below.