【发布时间】:2017-03-13 10:22:35
【问题描述】:
我正在尝试在本地开发人员上运行应用程序。 OS X Yosemite 上的环境,但由于未启用 mcrypt 而失败。
我从本指南开始:https://coolestguidesontheplanet.com/install-mcrypt-php-mac-osx-10-10-yosemite-development-server/
而且我已经浏览了我能找到的所有指南。
在我的 php.ini 文件中,我添加了扩展名:
; Directory in which the loadable extensions (modules) reside.
; http://php.net/extension-dir
; extension_dir = "./"
; On windows:
; extension_dir = "extension_dir=/usr/lib/php/extensions/no-debug-non-zts-20121212/mcrypt.so"
; extension=mcrypt.so
如果使用命令:
php --info | grep mcrypt\\.
Additional .ini files parsed => /usr/local/etc/php/5.5/conf.d/ext-mcrypt.ini
Registered Stream Filters => zlib.*, bzip2.*, convert.iconv.*, string.rot13, string.toupper, string.tolower, string.strip_tags, convert.*, consumed, dechunk, mcrypt.*, mdecrypt.*
PHP Warning: Unknown: It is not safe to rely on the system's timezone settings. You are *required* to use the date.timezone setting or the date_default_timezone_set() function. In case you used any of those methods and you are still getting this warning, you most likely misspelled the timezone identifier. We selected the timezone 'UTC' for now, but please set date.timezone to select your timezone. in Unknown on line 0
mcrypt.algorithms_dir => no value => no value
mcrypt.modes_dir => no value => no value
不知道现在该做什么。
【问题讨论】: