首页 > 解决方案 > 如何在 xampp 中为 windows 中的 php 7.2 版本安装 mcrypt

问题描述

我使用以下命令安装了 mcrypt:

     pecl install mcrypt-1.0.1

但安装后我收到这样的警告错误:

     WARNING: php_bin C:\xampp\php\php.exe appears to have a suffix .exe, but 
     config variable php_suffix does not match
     ERROR: The DSP mcrypt.dsp does not exist.

我在 windows 中使用 php 版本 7.2.6。当我检查

     <?php phpinfo(); ?>

我找不到启用的 mcrypt 。用于安装 mcrypt 的路径是c:\xampp\php

标签: php

解决方案


推荐阅读