Install PECL Intl on MAMP 2.2 using PHP 5.5.3

When I installed the Yii2 framework and I checked the launch requirements.phpto see if the PHP extensions were loaded.

Requirements

  • I installed icu4c using brew, for example:

    brew install icu4c

  • I installed intl using PECL, for example:

    /Applications/MAMP/bin/php/php5.5.3/bin/pecl install intl

    Dir icu4c: /usr/local/Cellar/icu4c/52.1/

  • In PHPInfo, I have:

PHPInfo

But in Yii2, I started requirements.php, and the intl extension does not always work.

Information: When I do /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

And I don’t see where intl... Is this normal? Interestingly, not a problem in MAMP or PECL?

Thanks.

EDIT:

​​Yii Framework: https://github.com/yiisoft/yii2/issues/1230

+4
1

, PHP apache php.ini, PHP CLI.

CLI,

$ php --ini

php.ini apache phpinfo().

, CLI.

apache php.ini mod_php.

+2

All Articles