【发布时间】:2013-11-28 14:26:16
【问题描述】:
当我安装框架 Yii2 并验证启动 requirements.php 以检查是否已加载 PHP 扩展。
-
我使用 brew 安装了 icu4c,例如:
brew 安装 icu4c
-
我使用 PECL 安装了 intl,例如:
/Applications/MAMP/bin/php/php5.5.3/bin/pecl install intl
目录 icu4c : /usr/local/Cellar/icu4c/52.1/
在 PHPInfo 中,我有:
但在 Yii2 中,我启动了 requirements.php 并且扩展 intl 并不总是有效。
信息:当我执行 /Applications/MAMP/bin/php/php5.5.3/bin/php -m 时:
[PHP Modules]
bcmath
bz2
calendar
Core
ctype
curl
date
dom
ereg
exif
fileinfo
filter
ftp
gd
gettext
hash
iconv
imap
json
ldap
libxml
mbstring
mcrypt
mysql
mysqli
openssl
pcre
PDO
pdo_mysql
pdo_pgsql
pdo_sqlite
pgsql
Phar
posix
Reflection
session
SimpleXML
soap
sockets
SPL
sqlite3
standard
tokenizer
xml
xmlreader
xmlwriter
xsl
yaz
Zend OPcache
zip
zlib
[Zend Modules]
Zend OPcache
我看不到intl... 这正常吗?我想知道问题出在 MAMP 还是 PECL 上?
谢谢。
编辑:
【问题讨论】: