Composer API
Class

Composer\XdebugHandler

class XdebugHandler

Constants

ENV_ALLOW

ENV_VERSION

RESTART_ID

Methods

__construct(OutputInterface $output)

Constructor

check()

Checks if xdebug is loaded and composer needs to be restarted

Details

at line 36
public __construct(OutputInterface $output)

Constructor

Parameters

OutputInterface $output

at line 61
public check()

Checks if xdebug is loaded and composer needs to be restarted

If so, then a tmp ini is created with the xdebug ini entry commented out. If additional inis have been loaded, these are combined into the tmp ini and PHPINISCANDIR is set to an empty value. Current ini locations are are stored in COMPOSERORIGINAL_INIS, for use in the restarted process.

This behaviour can be disabled by setting the COMPOSERALLOWXDEBUG environment variable to 1. This variable is used internally so that the restarted process is created only once and PHPINISCAN_DIR can be restored to its original value.