proc Class Reference
Replacement for PHP's exec() that separates stdout & stderr.
More...
Static Public Member Functions |
static | open (array $command, &$stdout=NULL, &$stderr=NULL, &$exit_code=NULL) |
static | raw ($command, &$stdout=NULL, &$stderr=NULL, &$exit_code=NULL) |
| Our product supports input of full commandlines by users, these can not be escaped as proc::open does, hence we require a proc::raw instead of using exec/system where we are unable to get the stderr output stream.
|
Detailed Description
Replacement for PHP's exec() that separates stdout & stderr.
Member Function Documentation
static proc::open |
( |
array $ |
command, |
|
|
&$ |
stdout = NULL , |
|
|
&$ |
stderr = NULL , |
|
|
&$ |
exit_code = NULL | |
|
) |
| | [static] |
- Parameters:
-
| $command | array |
| &$stdout | |
| &$stderr | |
| &$exit_code | |
- Returns:
- boolean whether the command was *called* successfully or not (according to PHP), not caring about subprocess' exit status
static proc::raw |
( |
$ |
command, |
|
|
&$ |
stdout = NULL , |
|
|
&$ |
stderr = NULL , |
|
|
&$ |
exit_code = NULL | |
|
) |
| | [static] |
Our product supports input of full commandlines by users, these can not be escaped as proc::open does, hence we require a proc::raw instead of using exec/system where we are unable to get the stderr output stream.
- Parameters:
-
| $command | string |
| &$stdout | |
| &$stderr | |
| &$exit_code | |
- Returns:
- boolean whether the command was *called* successfully or not (according to PHP), not caring about subprocess' exit status
The documentation for this class was generated from the following file: