首页  >  问答  >  正文

phpstudy 怎么安装intl扩展?

phpstudy2016版本

php版本5.4.45

只在php.ini下开启intl扩展的设置extension=php_intl.dll后,重启apache报错:

PHP Warning:  PHP Startup: Unable to load dynamic library 'D:\Program\phpStudy\php\php-5.4.45\ext\php_intl.dll' - 找不到指定的模块。 in Unknown on line 0

网上信息说安装intl扩展需要依赖扩展icu的支持,使用pecl install intl-3.0.0安装intl及依赖扩展icu报错:

WARNING: php_bin D:\Program\phpStudy\php\php-5.4.45\php.exe appears to have a suffix .exe, but config variable php_suffix does not match

ERROR: The DSP intl.dsp does not exist.


木鱼 瀑布 小和尚木鱼 瀑布 小和尚2573 天前4340

全部回复(1)我来回复

  • 李俊荣

    李俊荣2017-09-19 14:18:15

    解压缩文件,将*.dll文件复制到PHP程序主目录下的“ext”或者“extension”目录。

    打开php.ini文件,在“Dynamic Extensions”配置段中加上“extension=*.dll”,关闭文件,重新启动一下服务器就可以加载成功了。


    回复
    0
  • 取消回复