1
0
Fork 0
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:
epriestley 2013-11-27 21:03:00 -08:00
parent 49f3ff0e08
commit df85cd83d1

View file

@ -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');