mirror of
https://github.com/composer/composer
synced 2025-05-10 09:02:59 +00:00
Fix env override regression, fixes #3820
This commit is contained in:
parent
dfd04a9458
commit
b80038804f
7 changed files with 16 additions and 6 deletions
|
@ -87,7 +87,8 @@ EOT
|
|||
// add the bin dir to the PATH to make local binaries of deps usable in scripts
|
||||
$binDir = $composer->getConfig()->get('bin-dir');
|
||||
if (is_dir($binDir)) {
|
||||
putenv('PATH='.realpath($binDir).PATH_SEPARATOR.getenv('PATH'));
|
||||
$_SERVER['PATH'] = realpath($binDir).PATH_SEPARATOR.getenv('PATH');
|
||||
putenv('PATH='.$_SERVER['PATH']);
|
||||
}
|
||||
|
||||
$args = $input->getArgument('args');
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue