关于 Composer与xdebug的冲突

这几天重置了系统,没有安装composer,而直接用的很早之前的phpstudy里的composer。
但在运行时,跳出这么个一行

You are running composer with xdebug enabled. This has a major impact on runtime performance. See https://getcomposer.org/xdebug

百度之后,有这么一篇https://segmentfault.com/a/1190000006835525,解决方案。

我太懒了,不想这么干。然后就去了composer的官网,发现官网里是这么说的。

To improve performance when the xdebug extension is enabled, Composer automatically restarts PHP without it. You can override this behavior by using an environment variable: COMPOSER_ALLOW_XDEBUG=1.
Composer will always show a warning if xdebug is being used, but you can override this with an environment variable: COMPOSER_DISABLE_XDEBUG_WARN=1. If you see this warning unexpectedly, then the restart process has failed: please report this issue.

翻译过来是这样的

当xdebug启用时,composer为了提高性能将自动重启php而不使用xdebug。

这就成了,重新下载一个新的omposer.phar就完活了。

你可能感兴趣的:(关于 Composer与xdebug的冲突)