[DOC-CVS] [doc-en] master: proc_close: "waits", not "closes". Also grammar fix in Returns. (#5482)
[email protected] (Sinus via GitHub) Tue, 9 Jun 2026 21:15:09 +0000
| Newsgroups | php.doc.cvs |
|---|---|
| Message-ID | <[email protected]> |
Author: Sinus (SinusPi) Committer: GitHub (web-flow) Pusher: jordikroon Date: 2026-06-09T23:15:07+02:00 Commit: https://github.com/php/doc-en/commit/970d3aa7fdf5c714b584cbe67ebf9e32a1e8b0d3 Raw diff: https://github.com/php/doc-en/commit/970d3aa7fdf5c714b584cbe67ebf9e32a1e8b0d3.diff proc_close: "waits", not "closes". Also grammar fix in Returns. (#5482) * proc_close: "waits", not "closes". Also grammar fix in Returns. The function waits (waitpid) for a process to terminate, it does not do any closing. The description is a little misleading. Co-authored-by: Louis-Arnaud <[email protected]> Co-authored-by: Jordi Kroon <[email protected]> Changed paths: M reference/exec/functions/proc-close.xml Diff: diff --git a/reference/exec/functions/proc-close.xml b/reference/exec/functions/proc-close.xml index f3eb50788b47..de159fb488eb 100644 --- a/reference/exec/functions/proc-close.xml +++ b/reference/exec/functions/proc-close.xml @@ -4,7 +4,7 @@ <refentry xml:id='function.proc-close' xmlns="http://docbook.org/ns/docbook"> <refnamediv> <refname>proc_close</refname> - <refpurpose>Close a process opened by <function>proc_open</function> and return the exit code of that process</refpurpose> + <refpurpose>Close pipes to a process opened by <function>proc_open</function>, wait for it to terminate, and return its exit code</refpurpose> </refnamediv> <refsect1 role="description"> @@ -44,10 +44,10 @@ <refsect1 role="returnvalues"> &reftitle.returnvalues; - <para> + <simpara> Returns the termination status of the process that was run. In case of - an error then <literal>-1</literal> is returned. - </para> + an error, <literal>-1</literal> is returned. + </simpara> ¬e.sigchild; </refsect1> <refsect1 role="changelog">