Ignore the COMPOSER env var when executing global scope commands, fixes #9259

main
Jordi Boggiano 4 years ago
parent 159bb84fa6
commit 6bf136489f
No known key found for this signature in database
GPG Key ID: 7BBD42C429EC80BC

@ -75,6 +75,12 @@ EOT
return parent::run($input, $output);
}
// The COMPOSER env var should not apply to the global execution scope
if (getenv('COMPOSER')) {
putenv('COMPOSER');
unset($_SERVER['COMPOSER']);
}
// change to global dir
$config = Factory::createConfig();
$home = $config->get('home');

Loading…
Cancel
Save