[doc-en] master: Document missing file mode element for descriptors (#5079)
| From: | Jason Stangroome via GitHub | Date: | Tue, 09 Jun 2026 20:50:36 +0000 |
| Subject: | [doc-en] master: Document missing file mode element for descriptors (#5079) | ||
| Groups: | php.doc.cvs | ||
| Request: | Send a blank email to doc-cvs+get-23366@lists.php.net to get a copy of this message | ||
Author: Jason Stangroome (jstangroome)
Committer: GitHub (web-flow)
Pusher: jordikroon
Date: 2026-06-09T22:50:33+02:00
Commit: https://github.com/php/doc-en/commit/f50098447455250c9f92eed119248aaa30920100
Raw diff: https://github.com/php/doc-en/commit/f50098447455250c9f92eed119248aaa30920100.diff
Document missing file mode element for descriptors (#5079)
Changed paths:
M reference/exec/functions/proc-open.xml
Diff:
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:
<simplelist>
<member>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 <literal>pipe</literal> (the second
element is either <literal>r</literal> to pass the read end of the pipe
to the process, or <literal>w</literal> to pass the write end) and
- <literal>file</literal> (the second element is a filename).
+ <literal>file</literal> (the second element is a filename, and the third
+ element is the file mode, same as <function>fopen</function>).
Note that anything else than <literal>w</literal> is treated like
<literal>r</literal>.
</member>
<member>