答案1
我不认为 XDEBUG 会阻止您下载此存储库,该消息只是一个信息警告。
真正的问题在于您尝试下载的存储库。
但是,如果您想在使用 PHP CLI 时禁用 XDEBUG,您可以这样做:-
编辑 PHP CLI 使用的 php.ini 文件,该文件位于 `\wamp\bin\php\php{version}\php.ini
在该文件的底部附近,你会发现一行这样的代码:_version 号可能因您所运行的 WAMPServer/PHP 版本不同而不同。
[xdebug]
zend_extension ="D:/wamp/bin/php/php5.4.45/zend_ext/php_xdebug-2.3.3-5.4-vc9.dll"
您需要做的就是;
在该行中添加注释字符 (),如下所示
[xdebug]
;zend_extension ="D:/wamp/bin/php/php5.4.45/zend_ext/php_xdebug-2.3.3-5.4-vc9.dll"
保存文件,它将在下次执行时被拾取composer.exe
附加信息:
我刚刚XDEBUG
使用配置了 PHP5.6.15 的 WAMPServer 安装 V3.0.0 运行了您的示例,得到了这个结果,这表明您的问题不是 XDEBUG,而是您PHP
或“composer”配置中的其他问题。
D:\php_source>composer global require "laravel/installer=~1.1"
D:\php_source>echo off
You are running composer with xdebug enabled. This has a major impact on runtime performance. See https://getcomposer.org/xdebug
Changed current directory to D:\wamp\composer
You are running composer with xdebug enabled. This has a major impact on runtime performance. See https://getcomposer.org/xdebug
./composer.json has been created
Loading composer repositories with package information
Updating dependencies (including require-dev)
- Installing symfony/process (v2.8.0)
Downloading: 100%
- Installing symfony/polyfill-mbstring (v1.0.0)
Downloading: 100%
- Installing symfony/console (v2.8.0)
Downloading: 100%
- Installing guzzlehttp/promises (1.0.3)
Downloading: 100%
- Installing psr/http-message (1.0)
Downloading: 100%
- Installing guzzlehttp/psr7 (1.2.1)
Downloading: 100%
- Installing guzzlehttp/guzzle (6.1.1)
Downloading: 100%
- Installing laravel/installer (v1.2.2)
Downloading: 100%
symfony/console suggests installing symfony/event-dispatcher ()
symfony/console suggests installing psr/log (For using the console logger)
Writing lock file
Generating autoload files