PHP Warning: Module already loaded in Unknown on line 0(PHP 警告:模块已在第 0 行的 Unknown 中加载)
问题描述
在使用自制软件 php55 的 Mac OSX Mavericks 上,每当我运行 php 命令时,我都会收到以下错误消息(一切正常,只是很烦人)
On Mac OSX Mavericks using homebrew php55 whenever I run a a php command I get the following error message (everything runs fine it's just annoying)
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 的地方是在顶部,它被注释掉了.其他文件内容类似于:
Checked in the php.ini file and the only place intl is loaded is at the top and it's commented out. The other files contents look something like:
extension="/usr/local/Cellar/php55/5.5.23/lib/php/extensions/no-debug-non-zts-20121212/intl.so"
最后一个斜杠后面的内容是扩展名.
where the contents after the last slash is the extension.
我不知道还能去哪里找.
I'm not sure where else to look.
感谢任何帮助
推荐答案
我认为您已经加载了 Xdebug 两次php.ini.
I think you have loaded Xdebug probably twice in php.ini.
检查
php.ini,没有为extension=和zend_extension 设置.xdebug.so=
check the
php.ini, that not have setxdebug.sofor the valuesextension=andzend_extension=.
同时检查 /etc/php5/apache2 和 /etc/php5/cli/.您不应在这些目录中的每个 php.ini 中加载扩展名 xdebug.so.只有一个文件,php.ini 应该加载它.
Check also /etc/php5/apache2 and /etc/php5/cli/. You should not load in each php.ini in these directories the extension xdebug.so. Only one file, php.ini should load it.
注意:路径内是字符串/etc/php5.5是PHP的版本.所以如果你使用另一个版本,你总是得到不同的路径,比如 php7.
Note: Inside the path is the string /etc/php5. The 5 is the version of PHP. So if you use another version, you always get a different path, like php7.
这篇关于PHP 警告:模块已在第 0 行的 Unknown 中加载的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持编程学习网!
本文标题为:PHP 警告:模块已在第 0 行的 Unknown 中加载
基础教程推荐
- 如何在数学上评估像“2-1"这样的字符串?产生“1"? 2022-01-01
- php中的foreach复选框POST 2021-01-01
- Yii2 - 在运行时设置邮件传输参数 2022-01-01
- php中的PDF导出 2022-01-01
- PHPUnit 的 Selenium 2 文档到底在哪里? 2022-01-01
- 主题化 Drupal 7 的 Ubercart “/cart"页 2021-01-01
- php 7.4 在写入变量中的 Twig 问题 2022-01-01
- 将变量从树枝传递给 js 2022-01-01
- Web 服务器如何处理请求? 2021-01-01
- 使用 scandir() 在目录中查找文件夹 (PHP) 2022-01-01
