安装:
brew install libmcrypt
下载mcrypt扩展源码
http://pecl.php.net/package/mcrypt
解压后 进入目录:
phpize ./configure make && make install
修改php.ini,加上:
extension=/Applications/MxSrvs/bin/php/lib/php/extensions/no-debug-non-zts-20170718/mcrypt.so