How to disable Xdebug loading for PHP CLI? [closed]

六眼飞鱼酱① 提交于 2019-12-21 10:15:03

问题


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

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!