PHP7.1 mcrypt_module_open() is deprecated
PHP7.1 mcrypt_module_open() is deprecated
一:函数前添加抑制符 @
mcrypt_module_open....;
->
@mcrypt_module_open....;
二:重新编写加解密业务,用OpenSSL取代MCrypt.
三:禁用PHP mcrypt extension 用 phpseclib/mcrypt_compat 替代
四:升级php7.1 到 php7.2 安装 mcrypt 拓展
参考:
https://github.com/slimphp/Slim/issues/2362
https://www.v2ex.com/t/480778
https://segmentfault.com/q/1010000007210963