1
0
Fork 0

Fix COMPOSER_BINARY env not being set in $_SERVER, refs #9930

pull/9935/head
Jordi Boggiano 2021-06-03 09:28:30 +02:00
parent 30d38679a8
commit e0366bc760
No known key found for this signature in database
GPG Key ID: 7BBD42C429EC80BC
1 changed files with 2 additions and 1 deletions

View File

@ -57,7 +57,8 @@ if (function_exists('ini_set')) {
unset($memoryLimit);
}
putenv('COMPOSER_BINARY='.realpath($_SERVER['argv'][0]));
$_SERVER['COMPOSER_BINARY'] = realpath($_SERVER['argv'][0]);
putenv('COMPOSER_BINARY='.$_SERVER['COMPOSER_BINARY']);
// run the command application
$application = new Application();