Skip to content

Document PHP 8.3 proc_get_status() change #4112

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 2 commits into from
Nov 21, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
38 changes: 36 additions & 2 deletions reference/exec/functions/proc-get-status.xml
Original file line number Diff line number Diff line change
Expand Up @@ -90,8 +90,17 @@
<entry>
The exit code returned by the process (which is only
meaningful if <literal>running</literal> is &false;).
Only first call of this function return real value, next calls return
<literal>-1</literal>.
Prior to PHP 8.3.0, only the first call of this function returned the real
value, the following calls returned <literal>-1</literal>.
</entry>
</row>
<row>
<entry>cached</entry>
<entry><type>bool</type></entry>
<entry>
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.
</entry>
</row>
<row>
Expand All @@ -116,6 +125,31 @@
</para>
</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>
The <literal>"cached"</literal> entry has been added to the returned
array. Prior to PHP 8.3.0, only the first call returned the real exit
code. The <literal>"cached"</literal> entry indicates that the exit code
was cached.
</entry>
</row>
</tbody>
</tgroup>
</informaltable>
</refsect1>

<refsect1 role="seealso">
&reftitle.seealso;
<para>
Expand Down