Constructor.
public __construct ( string $commandline, string | null $cwd = null, array $env = null, mixed | null $input = null, integer | float | null $timeout = 60, array $options = [] ) | ||
$commandline | string | The command line to run |
$cwd | string | null | The working directory or null to use the working dir of the current PHP process |
$env | array | The environment variables or null to use the same environment as the current PHP process |
$input | mixed | null | The input as stream resource, scalar or \Traversable, or null for no input |
$timeout | integer | float | null | The timeout in seconds or null to disable |
$options | array | An array of options for proc_open |