Process::getPid()

int|null getPid() Returns the Pid (process identifier), if applicable. Return Value int|null The process id if running, null otherwise

Process::getOutput()

string getOutput() Returns the current output of the process (STDOUT). Return Value string The process output Exceptions LogicException in case the output has been disabled LogicException In case the process is not started

Process::getOptions()

array getOptions() Gets the options for proc_open. Return Value array The current options

Process::getIterator()

Generator getIterator(int $flags) Returns an iterator to the output of the process, with the output type as keys (Process::OUT/ERR). Parameters int $flags A bit field of Process::ITER_* flags Return Value Generator Exceptions LogicException in case the output has been disabled LogicException In case the process is not started

Process::getInput()

resource|string|Iterator|null getInput() Gets the Process input. Return Value resource|string|Iterator|null The Process input

Process::getIncrementalOutput()

string getIncrementalOutput() Returns the output incrementally. In comparison with the getOutput method which always return the whole output, this one returns the new output since the last call. Return Value string The process output since the last call Exceptions LogicException in case the output has been disabled LogicException In case the process is not started

Process::getIncrementalErrorOutput()

string getIncrementalErrorOutput() Returns the errorOutput incrementally. In comparison with the getErrorOutput method which always return the whole error output, this one returns the new error output since the last call. Return Value string The process error output since the last call Exceptions LogicException in case the output has been disabled LogicException In case the process is not started

Process::getIdleTimeout()

float|null getIdleTimeout() Gets the process idle timeout (max. time since last output). Return Value float|null The timeout in seconds or null if it's disabled

Process::getExitCodeText()

null|string getExitCodeText() Returns a string representation for the exit code returned by the process. This method relies on the Unix exit code status standardization and might not be relevant for other operating systems. Return Value null|string A string representation for the exit status code, null if the Process is not terminated See also http://tldp.org/LDP/abs/html/exitcodes.html http://en.wikipedia.org/wiki/Unix_signal

Process::getExitCode()

null|int getExitCode() Returns the exit code returned by the process. Return Value null|int The exit status code, null if the Process is not terminated Exceptions RuntimeException In case --enable-sigchild is activated and the sigchild compatibility mode is disabled