如何在 xampp for windows 中安装 mcrypt php 7.2.3 扩展?
声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow
原文地址: http://stackoverflow.com/questions/49663548/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me):
StackOverFlow
How to install mcrypt php 7.2.3 extension in xampp for windows?
提问by Lamine Mohammedi
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.
我的 PHP 版本 7.2.3 和 xampp 包没有 mcrypt 扩展。为了启用它,在 phpinfo() 和 php.ini 文件中都没有提到它。
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
我已经从这个链接下载了 mcrypt:https://sourceforge.net/projects/mcrypt/, 但我不知道如何将它集成为 php 扩展。我需要 Windows 中 xampp 的解决方案
回答by ArtisticPhoenix
You don't
你不
See http://php.net/manual/en/intro.mcrypt.php
见http://php.net/manual/en/intro.mcrypt.php
This feature was DEPRECATEDin PHP 7.1.0, and REMOVEDin PHP 7.2.0.
Alternatives to this feature include:
- Sodium (available as of PHP 7.2.0)
- OpenSSL
此功能在 PHP 7.1.0 中已弃用,并在 PHP 7.2.0 中删除。
此功能的替代方案包括:
- 钠(自 PHP 7.2.0 起可用)
- 开放式SSL
They didn't include this one
他们没有包括这个
- PHPSecLib
- PHP安全库
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.
但它是第三方库,所以我不能说我责怪他们,我已经使用了一段时间,但从未听说过任何不好的地方。
回答by Phil Inzag
Change PHP version to lower version, like "7.0.33" or below.
将 PHP 版本更改为较低版本,例如“7.0.33”或更低版本。