PHP 警告:模块已在第 0 行的“未知”中加载
2022-08-30 07:52:44
在Mac OSX Mavericks上使用自制php55,每当我运行php命令时,我都会收到以下错误消息(一切都运行良好,只是很烦人)
PHP Warning: Module 'intl' already loaded in Unknown on line 0
我跑了
php --ini
并且输出是
php --ini
PHP Warning: Module 'intl' already loaded in Unknown on line 0
Warning: Module 'intl' already loaded in Unknown on line 0
Configuration File (php.ini) Path: /usr/local/etc/php/5.5
Loaded Configuration File: /usr/local/etc/php/5.5/php.ini
Scan for additional .ini files in: /usr/local/etc/php/5.5/conf.d
Additional .ini files parsed: /usr/local/etc/php/5.5/conf.d/ext-apcu.ini,
/usr/local/etc/php/5.5/conf.d/ext-igbinary.ini,
/usr/local/etc/php/5.5/conf.d/ext-intl.ini,
/usr/local/etc/php/5.5/conf.d/ext-memcached.ini,
/usr/local/etc/php/5.5/conf.d/ext-mongo.ini,
/usr/local/etc/php/5.5/conf.d/ext-uuid.ini,
/usr/local/etc/php/5.5/conf.d/ext-xdebug.ini
已签入 php.ini 文件,并且唯一加载 intl 的地方位于顶部,并且它被注释掉了。其他文件内容如下所示:
extension="/usr/local/Cellar/php55/5.5.23/lib/php/extensions/no-debug-non-zts-20121212/intl.so"
其中,最后一个斜杠后面的内容是扩展名。
我不知道还能去哪里找。
任何帮助是值得赞赏的