PHP警告:模块已在第0行的Unknown中加载 [英] PHP Warning: Module already loaded in Unknown on line 0

查看:1883
本文介绍了PHP警告:模块已在第0行的Unknown中加载的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

在Mac OSX Mavericks使用homebrew php55每当我运行aa php命令我得到以下错误消息(一切运行正常,只是烦人)

  PHP警告:模块'intl'已经加载在未知的行0 

/ p>

  php --ini 


b $ b

,输出为

  php --ini 
PHP警告:模块'intl'已经在第0行加载在Unknown中

警告:模块'intl'已经加载在第0行的未知
配置文件(php.ini)路径:/usr/local/etc/php/5.5
加载的配置文件:/usr/local/etc/php/5.5/php.ini
扫描其他.ini文件:/usr/local/etc/php/5.5/conf.d
其他.ini文件已解析:/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 / php / extensions / no-debug-non-zts-20121212 / intl.so



我不确定在哪里可以查找。



任何帮助

我认为你已经在php.ini中加载了两次xdebug。


  1. 检查 php.ini ,您没有 xdebug.so 代表 extension = zend_extension =


  2. 选中 / etc / php5 / apache2 和 / etc / php5 / cli / 。您不应在此目录中的每个 php.ini 中加载扩展 xdebug.so 。只有一个php.ini应该加载它。



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

I ran

php --ini

and the output was

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

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.

Any help is appreciated

解决方案

I think you have loaded xdebug probably twice in php.ini.

  1. check the php.ini, that you not have xdebug.so for the values extension= and zend_extension=.

  2. Check also /etc/php5/apache2 and /etc/php5/cli/. You should not load in each php.ini in this directories the extension xdebug.so. Only one php.ini should load it.

这篇关于PHP警告:模块已在第0行的Unknown中加载的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
相关文章
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆