PHP composer xdebug warning

后端 未结 6 1133
傲寒
傲寒 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条回答
  •  情歌与酒
    2021-01-31 05:17

    To fix this, prior to PHP 7 people would suggest to comment out the extension from your php.ini file. However, in PHP 7 they are no longer in there.

    Instead, we use the phpdismod command.

    sudo phpdismod -s cli xdebug
    

    The -s flag tells it to disable Xdebug for the CLI SAPI (/etc/php/7.0/cli) and not FPM.

    And just like that, the warning message should be gone. No need to restart PHP.

    In addition to this, there is a plugin that downloads packages in parallel to speed up the installation process.

提交回复
热议问题