在评论出zend扩展名后,Composer显示xdebug已启用

时间:2016-04-03 12:01:24

标签: composer-php wampserver git-bash

我已经安装了WampServer和Composer Dependency Manager。

在git bash中,当我执行composer -v时,收到以下警告消息:

"您正在运行已启用xdebug的composer。这对运行时性能有重大影响。请参阅https://getcomposer.org/xdebug"

按照提供的url中的说明,我在php.ini文件中注释了zend扩展并保存了它。

我的php.ini文件现在有以下相关行:

;zend_extension = "c:/wamp/bin/php/php5.5.12/zend_ext/php_xdebug-2.2.5-5.5-vc11-x86_64.dll"

[xdebug]
xdebug.remote_enable = off
xdebug.profiler_enable = off
xdebug.profiler_enable_trigger = off
xdebug.profiler_output_name = cachegrind.out.%t.%p
xdebug.profiler_output_dir = "c:/wamp/tmp"
xdebug.show_local_vars=0

然后我停下来开始所有的wamp服务。重新启动git bash并执行composer -v。但我仍然得到同样的警告信息。它为什么还在显示?我做错了什么?

1 个答案:

答案 0 :(得分:0)

可能你编辑了错误的ini文件,被Apache用来代替CLI。在命令提示符下运行此命令:

php --ini

它将准确显示需要编辑哪个ini文件以从CLI调用中删除xdebug。