问题
Im using composer, and when i do an update. It takes a huge chunk of time if xdebug is loaded in my php.ini file.
How can i disable xdebug only for cli. So composer won't take as much time. Yet i will have xdebug enabled?
回答1:
I found the answer by specifying a custom php.ini file for apache, and left the original php.ini file for cli.
in your apache configuration file. Just write the following bit of code.
<IfModule php5_module>
PHPINIDir "C:/PATH/TO/CUSTOM/INI"
</IfModule>
来源:https://stackoverflow.com/questions/19894042/how-to-disable-xdebug-loading-for-php-cli