Page MenuHomePhabricator
Paste P1011

pathenv.diff
ActivePublic

Authored by epriestley on Nov 28 2013, 4:56 AM.
Tags
None
Referenced Files
F85686: pathenv.diff
Nov 28 2013, 4:56 AM
Subscribers
None
diff --git a/src/infrastructure/env/PhabricatorEnv.php b/src/infrastructure/env/PhabricatorEnv.php
index 44a43e6..f4882c0 100644
--- a/src/infrastructure/env/PhabricatorEnv.php
+++ b/src/infrastructure/env/PhabricatorEnv.php
@@ -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');

Event Timeline