简体   繁体   中英

Intl PHP extension not working

I want to use https://github.com/juriansluiman/SlmLocale module in zend framework-2 and need intl extension, I have installed using pecl and it show success. I had added

extension=intl.so

and restarted my MAMP-Pro, I had tried other links as well: http://mynameispagewood.com/web-development/how-to-enable-intl-extension-mamp-osx-10-9-2/ http://codingexplained.com/operating-systems/mac/installing-php-intl-extension-os-x-mavericks to enable it but its not working.

note: No error while starting apache

Is their any alternate method to enable it?

Any light on the path would be helpful

Thanks

您将需要确保被调用的php版本在Brew的安装路径中,否则它将获取本机安装的php。

The problem can be solved by first checking the php version in the terminal. The which php command will print the /Applications/MAMP/bin/php/php7.1.8/bin:/usr/local/bin:/usr/bin:/bin:/usr/sbin:/sbin .

and then check echo $PATH /Applications/MAMP/bin/php/php7.1.8/bin/php If this is right, then no need of installing intl extension, restart MAMP PRO, then it should work.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM