diff --git a/bin/composer b/bin/composer index 2e83cdd19..ca6ecc6b5 100755 --- a/bin/composer +++ b/bin/composer @@ -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();