Page MenuHomePhabricator

Implement `setEnv`.
ClosedPublic

Authored by hach-que on Oct 25 2013, 12:10 PM.
Tags
None
Referenced Files
F13230611: D7396.diff
Mon, May 20, 11:06 PM
F13212870: D7396.diff
Fri, May 17, 7:09 AM
F13204266: D7396.id16689.diff
Wed, May 15, 12:27 AM
F13204265: D7396.id16688.diff
Wed, May 15, 12:26 AM
F13204264: D7396.id16661.diff
Wed, May 15, 12:26 AM
F13203770: D7396.id.diff
Wed, May 15, 12:06 AM
Unknown Object (File)
Tue, May 7, 5:06 AM
Unknown Object (File)
Fri, May 3, 2:43 AM

Details

Summary

Implements setEnv on ExecFuture so that the environment variable can be set.

Test Plan

Completely untested.

Diff Detail

Lint
Lint Skipped
Unit
Tests Skipped

Event Timeline

epriestley requested changes to this revision.

Oh, actually, I think we should mimic the implementation in PhutilExecPassthru:

public function setEnv(array $env, $wipe_process_env = false) {
  if ($wipe_process_env) {
    $this->env = $env;
  } else {
    $this->env = $env + $_ENV;
  }
  return $this->env;
}

This has the side effect of wiping out the current process's ENV, which probably breaks some things.

hach-que updated this revision to Unknown Object (????).Oct 25 2013, 9:41 PM
  • Update setEnv according to feedback
epriestley closed this revision.

Closed by commit rPHUba9c9426ab45 (authored by @hach-que, committed by @epriestley).