Page Menu
Home
Phabricator
Search
Configure Global Search
Log In
Paste
P1011
pathenv.diff
Active
Public
Actions
Authored by
epriestley
on Nov 28 2013, 4:56 AM.
Edit Paste
Archive Paste
View Raw File
Subscribe
Mute Notifications
Flag For Later
Award Token
Tags
None
Referenced Files
F85686: pathenv.diff
Nov 28 2013, 4:56 AM
2013-11-28 04:56:22 (UTC+0)
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
Log In to Comment