[doc-en] master: proc_close: clarify termination status in regard to proc_get_status (#5483)
| From: | Sinus via GitHub | Date: | Mon, 11 May 2026 17:55:28 +0000 |
| Subject: | [doc-en] master: proc_close: clarify termination status in regard to proc_get_status (#5483) | ||
| Groups: | php.doc.cvs | ||
| Request: | Send a blank email to doc-cvs+get-23302@lists.php.net to get a copy of this message | ||
Author: Sinus (SinusPi)
Committer: GitHub (web-flow)
Pusher: jordikroon
Date: 2026-05-11T19:55:25+02:00
Commit: https://github.com/php/doc-en/commit/ef623ccf442df416da4e5bc254b4c5d4f6df9475
Raw diff: https://github.com/php/doc-en/commit/ef623ccf442df416da4e5bc254b4c5d4f6df9475.diff
proc_close: clarify termination status in regard to proc_get_status (#5483)
* proc_close: clarify termination status in regard to proc_get_status
Explain how proc_get_status may interfere with proc_close return value.
Co-authored-by: Louis-Arnaud <la.catoire@gmail.com>
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 25422e75cc49..f3eb50788b47 100644
--- a/reference/exec/functions/proc-close.xml
+++ b/reference/exec/functions/proc-close.xml
@@ -50,7 +50,29 @@
</para>
¬e.sigchild;
</refsect1>
-
+ <refsect1 role="changelog">
+ &reftitle.changelog;
+ <informaltable>
+ <tgroup cols="2">
+ <thead>
+ <row>
+ <entry>&Version;</entry>
+ <entry>&Description;</entry>
+ </row>
+ </thead>
+ <tbody>
+ <row>
+ <entry>8.3.0</entry>
+ <entry>
+ <function>proc_close</function> now returns the correct exit code
+ even after <function>proc_get_status</function> was called first.
+ Previously, <literal>-1</literal> was returned in that case.
+ </entry>
+ </row>
+ </tbody>
+ </tgroup>
+ </informaltable>
+ </refsect1>
</refentry>
<!-- Keep this comment at the end of the file