PHP composer xdebug warning

后端 未结 6 1136
傲寒
傲寒 2021-01-31 04:24

New to PHP. Working on a PHP project and have xdebug enabled to be able to debug my php applications. The production server does not have xdebug enabled because it is handled by

6条回答
  •  闹比i
    闹比i (楼主)
    2021-01-31 05:08

    Modern versions of Composer can work around having XDebug enabled by default for the CLI SAPI. It spawns a new PHP process with the XDebug extension disabled in case it is detected.

    You can disable this behaviour by setting the following environment variable:

    COMPOSER_ALLOW_XDEBUG=1
    

    Found this in the documentation: https://getcomposer.org/doc/articles/troubleshooting.md#xdebug-impact-on-composer

提交回复
热议问题