2017-09-05 27 views
1

我已經在windows server 2012機器上安裝了php 7.1.9,如果我檢查php信息我可以看到mcrypt已啓用,但是如果我輸入shell php -v,我有這個錯誤:PHP 7.1.9找不到mcrypt庫

Unable to load dynamic library 'C:/php/ext\php_mcrypt.dll' - The specified module could not be found. 

實際上運行Laravel應用程序我也得到一些與它相關的異常。

我已經檢查ext目錄中並沒有php_mcrypt.dll。

+0

您是否嘗試安裝mcrypt? –

+0

我怎麼能單獨安裝呢? –

+0

看看這有助於@StefanoMaglione https://www.myoddweb.com/2010/11/18/install-mcrypt-for-php-on-windows/ – Bananaapple

回答

4

正如你可以看到here mcrypt的是贊成的OpenSSL棄用。在PHP 7.1.x中過時的特性:

The mcrypt extension has been abandonware for nearly a decade now, and was also fairly complex to use. It has therefore been deprecated in favour of OpenSSL, where it will be removed from the core and into PECL in PHP 7.2.