这几天重置了系统,没有安装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就完活了。
博主重置系统后用phpstudy里的composer运行时,因xdebug启用影响性能跳出提示。百度到解决方案但未采用,后从composer官网得知,启用xdebug时composer会自动重启php不使用它,重新下载新的composer.phar即可解决。

425

被折叠的 条评论
为什么被折叠?



