From e0366bc7606f98d390c520e3c33b161c4bc72121 Mon Sep 17 00:00:00 2001 From: Jordi Boggiano Date: Thu, 3 Jun 2021 09:28:30 +0200 Subject: [PATCH] Fix COMPOSER_BINARY env not being set in $_SERVER, refs #9930 --- bin/composer | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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();