diff --git a/reference/exec/functions/proc-open.xml b/reference/exec/functions/proc-open.xml index 9ed1d95cbfa8..35e0a3edbf39 100644 --- a/reference/exec/functions/proc-open.xml +++ b/reference/exec/functions/proc-open.xml @@ -90,11 +90,12 @@ 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 + element is the descriptor type and the following elements are options 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). + file (the second element is a filename, and the third + element is the file mode, same as fopen). Note that anything else than w is treated like r.