From 2f12a1ccb7585a1450c0d7169f8f812cc85f163e Mon Sep 17 00:00:00 2001
From: Niels Dossche <7771979+nielsdos@users.noreply.github.com>
Date: Wed, 20 Nov 2024 21:05:57 +0100
Subject: [PATCH 1/2] Document PHP 8.3 proc_get_status() change
---
reference/exec/functions/proc-get-status.xml | 38 ++++++++++++++++++--
1 file changed, 36 insertions(+), 2 deletions(-)
diff --git a/reference/exec/functions/proc-get-status.xml b/reference/exec/functions/proc-get-status.xml
index 1c4000ec1c3c..02fa63f35f1c 100644
--- a/reference/exec/functions/proc-get-status.xml
+++ b/reference/exec/functions/proc-get-status.xml
@@ -90,8 +90,17 @@
The exit code returned by the process (which is only
meaningful if running is &false;).
- Only first call of this function return real value, next calls return
- -1.
+ Prior to PHP 8.3.0, only first call of this function returned the real
+ value, the following calls returned -1.
+
+
+
+ cached
+ bool
+
+ As of PHP 8.3.0, this is &true; when the exit code is cached.
+ Caching is necessary to make sure the exit code is not lost by
+ subsequent calls to process APIs.
@@ -116,6 +125,31 @@
+
+ &reftitle.changelog;
+
+
+
+
+ &Version;
+ &Description;
+
+
+
+
+ 8.3.0
+
+ The "cached" entry has been added to the returned
+ array. Prior to PHP 8.3.0, only the first call returned the real exit
+ code. The "cached" entry indicates that the exit code
+ was cached.
+
+
+
+
+
+
+
&reftitle.seealso;
From a400926202865cd41644a8dc08613a350e3a319e Mon Sep 17 00:00:00 2001
From: Niels Dossche <7771979+nielsdos@users.noreply.github.com>
Date: Thu, 21 Nov 2024 07:20:39 +0100
Subject: [PATCH 2/2] Update reference/exec/functions/proc-get-status.xml
Co-authored-by: Gina Peter Banyard
---
reference/exec/functions/proc-get-status.xml | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/reference/exec/functions/proc-get-status.xml b/reference/exec/functions/proc-get-status.xml
index 02fa63f35f1c..0ac5ab248893 100644
--- a/reference/exec/functions/proc-get-status.xml
+++ b/reference/exec/functions/proc-get-status.xml
@@ -90,7 +90,7 @@
The exit code returned by the process (which is only
meaningful if running is &false;).
- Prior to PHP 8.3.0, only first call of this function returned the real
+ Prior to PHP 8.3.0, only the first call of this function returned the real
value, the following calls returned -1.