Method |
Description |
|
__construct ( string $commandline, string $cwd = null, array $env = null, string $stdin = null, integer $timeout = 60, array $options = [] ) |
Constructor. |
|
addErrorOutput ( $line ) |
|
|
addOutput ( $line ) |
|
|
getCommandLine ( ) |
|
|
getEnv ( ) |
|
|
getErrorOutput ( ) : string |
Returns the error output of the process (STDERR). |
|
getExitCode ( ) : integer |
Returns the exit code returned by the process. |
|
getOptions ( ) |
|
|
getOutput ( ) : string |
Returns the output of the process (STDOUT). |
|
getStdin ( ) |
|
|
getStopSignal ( ) : integer |
Returns the number of the signal that caused the child process to stop its execution. |
|
getTermSignal ( ) : integer |
Returns the number of the signal that caused the child process to terminate its execution. |
|
getTimeout ( ) |
|
|
getWorkingDirectory ( ) |
|
|
hasBeenSignaled ( ) : boolean |
Returns true if the child process has been terminated by an uncaught signal. |
|
hasBeenStopped ( ) : boolean |
Returns true if the child process has been stopped by a signal. |
|
isSuccessful ( ) : boolean |
Checks if the process ended successfully. |
|
run ( callable | string | array $callback = null ) : integer |
Runs the process. |
|
setCommandLine ( $commandline ) |
|
|
setEnv ( array $env ) |
|
|
setOptions ( array $options ) |
|
|
setStdin ( $stdin ) |
|
|
setTimeout ( $timeout ) |
|
|
setWorkingDirectory ( $cwd ) |
|
|