Process::signal()

Process signal(int $signal) Sends a POSIX signal to the process. Parameters int $signal A valid POSIX signal (see http://www.php.net/manual/en/pcntl.constants.php) Return Value Process Exceptions LogicException In case the process is not running RuntimeException In case --enable-sigchild is activated and the process can't be killed RuntimeException In case of failure

Process::setWorkingDirectory()

Process setWorkingDirectory(string $cwd) Sets the current working directory. Parameters string $cwd The new working directory Return Value Process The current Process instance

Process::setTty()

Process setTty(bool $tty) Enables or disables the TTY mode. Parameters bool $tty True to enabled and false to disable Return Value Process The current Process instance Exceptions RuntimeException In case the TTY mode is not supported

Process::setTimeout()

Process setTimeout(int|float|null $timeout) Sets the process timeout (max. runtime). To disable the timeout, set this value to null. Parameters int|float|null $timeout The timeout in seconds Return Value Process The current Process instance Exceptions InvalidArgumentException if the timeout is negative

Process::setPty()

Process setPty(bool $bool) Sets PTY mode. Parameters bool $bool Return Value Process

Process::setOptions()

Process setOptions(array $options) Sets the options for proc_open. Parameters array $options The new options Return Value Process The current Process instance

Process::setInput()

Process setInput(resource|scalar|Traversable|null $input) Sets the input. This content will be passed to the underlying process standard input. Parameters resource|scalar|Traversable|null $input The content Return Value Process The current Process instance Exceptions LogicException In case the process is running

Process::setIdleTimeout()

Process setIdleTimeout(int|float|null $timeout) Sets the process idle timeout (max. time since last output). To disable the timeout, set this value to null. Parameters int|float|null $timeout The timeout in seconds Return Value Process The current Process instance Exceptions LogicException if the output is disabled InvalidArgumentException if the timeout is negative

Process::setEnv()

Process setEnv(array $env) Sets the environment variables. An environment variable value should be a string. If it is an array, the variable is ignored. That happens in PHP when 'argv' is registered into the $_ENV array for instance. Parameters array $env The new environment variables Return Value Process The current Process instance

Process::setEnhanceWindowsCompatibility()

Process setEnhanceWindowsCompatibility(bool $enhance) Sets whether or not Windows compatibility is enabled. Parameters bool $enhance Return Value Process The current Process instance