ProcessUtils::escapeArgument()

static string escapeArgument(string $argument) Escapes a string to be used as a shell argument. Parameters string $argument The argument that will be escaped Return Value string The escaped argument

ProcessPipes::write()

write(Boolean $blocking, string|null $stdin) Writes stdin data. Parameters Boolean $blocking Whether to use blocking calls or not. string|null $stdin The data to write.

ProcessPipes::readAndCloseHandles()

array readAndCloseHandles(Boolean $blocking) Reads data in file handles and pipes, closes them if EOF is reached. Parameters Boolean $blocking Whether to use blocking calls or not. Return Value array An array of read data indexed by their fd.

ProcessUtils

class ProcessUtils ProcessUtils is a bunch of utility methods. This class contains static methods only and is not meant to be instantiated. Methods static string escapeArgument(string $argument) Escapes a string to be used as a shell argument. static mixed validateInput(string $caller, mixed $input) Validates and normalizes a Process input. Details static string escapeArgument(string $argument) Escapes a string to be used as a shell argumen

ProcessTimedOutException

class ProcessTimedOutException extends RuntimeException Exception that is thrown when a process times out. Constants TYPE_GENERAL TYPE_IDLE Methods __construct(Process $process, $timeoutType) getProcess() isGeneralTimeout() isIdleTimeout() getExceededTimeout() Details __construct(Process $process, $timeoutType) Parameters Process $process $timeoutType getProcess()

ProcessPipes::unblock()

unblock() Sets non-blocking mode on pipes.

ProcessPipes::read()

array read(Boolean $blocking) Reads data in file handles and pipes. Parameters Boolean $blocking Whether to use blocking calls or not. Return Value array An array of read data indexed by their fd.

ProcessPipes::closeUnixPipes()

closeUnixPipes() Closes Unix pipes. Nothing happens in case file handles are used.

ProcessPipes::close()

close() Closes file handles and pipes.

ProcessPipes::hasOpenHandles()

Boolean hasOpenHandles() Returns if the current state has open file handles or pipes. Return Value Boolean