mirror of
https://we.phorge.it/source/phorge.git
synced 2024-11-10 00:42:41 +01:00
Put PATH in $_ENV after we adjust it so ExecFuture/etc pick it up
Summary: The change to setEnv() means this may not propagate correctly in some cases. See IRC. Auditors: btrahan
This commit is contained in:
parent
49f3ff0e08
commit
df85cd83d1
1 changed files with 4 additions and 0 deletions
4
src/infrastructure/env/PhabricatorEnv.php
vendored
4
src/infrastructure/env/PhabricatorEnv.php
vendored
|
@ -108,6 +108,10 @@ final class PhabricatorEnv {
|
|||
}
|
||||
putenv('PATH='.$env_path);
|
||||
|
||||
// Write this back into $_ENV, too, so ExecFuture picks it up when creating
|
||||
// subprocess environments.
|
||||
$_ENV['PATH'] = $env_path;
|
||||
|
||||
PhabricatorEventEngine::initialize();
|
||||
|
||||
$translation = PhabricatorEnv::newObjectFromConfig('translation.provider');
|
||||
|
|
Loading…
Reference in a new issue