diff --git a/reference/exec/functions/proc-open.xml b/reference/exec/functions/proc-open.xml index 35e404b8fc..ada28d3ff8 100644 --- a/reference/exec/functions/proc-open.xml +++ b/reference/exec/functions/proc-open.xml @@ -1,5 +1,5 @@ - + @@ -60,8 +60,20 @@ process. 0 is stdin, 1 is stdout, while 2 is stderr. - The currently supported pipe types are file and - pipe . + Each element can be: + + An array describing the pipe to pass to the process. The first + element is the descriptor type and the second element is an option for + the given type. Valid types are pipe (the second + element is either r to pass the read end of the pipe + to the process, or w to pass the write end) and + file (the second element is a filename). + + + A stream resource representing a real file descriptor (e.g. opened file, + a socket, STDIN). + + The file descriptor numbers are not limited to 0, 1 and 2 - you may