Lines Matching refs:cwd
57 private $cwd;
136 * @param string|null $cwd The working directory or null to use the working dir of the current PHP process
143 public function __construct(array $command, string $cwd = null, array $env = null, $input = null, ?float $timeout = 60)
150 $this->cwd = $cwd;
152 // on Windows, if the cwd changed via chdir(), proc_open defaults to the dir where PHP was started
156 if (null === $this->cwd && (\defined('ZEND_THREAD_SAFE') || '\\' === \DIRECTORY_SEPARATOR)) {
157 $this->cwd = getcwd();
183 * @param string|null $cwd The working directory or null to use the working dir of the current PHP process
192 public static function fromShellCommandline(string $command, string $cwd = null, array $env = null, $input = null, ?float $timeout = 60)
194 $process = new static([], $cwd, $env, $input, $timeout);
348 if (!is_dir($this->cwd)) {
349 throw new RuntimeException(sprintf('The provided cwd "%s" does not exist.', $this->cwd));
352 $this->process = @proc_open($commandline, $descriptors, $this->processPipes->pipes, $this->cwd, $envPairs, $this->options);
1110 if (null === $this->cwd) {
1116 return $this->cwd;
1124 public function setWorkingDirectory(string $cwd)
1126 $this->cwd = $cwd;