[DOC-CVS] [doc-en] master: proc_close: clarify termination status in regard to proc_get_status (#5483)

[email protected] (Sinus via GitHub) Mon, 11 May 2026 17:55:28 +0000
Newsgroups php.doc.cvs
Message-ID <[email protected]>
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 <[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 25422e75cc49..f3eb50788b47 100644
--- a/reference/exec/functions/proc-close.xml
+++ b/reference/exec/functions/proc-close.xml
@@ -50,7 +50,29 @@
   </para>
   &note.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