[doc-en] master: Document error_get_last() fatal error traces (#5883)
| From: | Midhun Monachan via GitHub | Date: | Sat, 26 Sep 2026 05:42:37 +0000 |
| Subject: | [doc-en] master: Document error_get_last() fatal error traces (#5883) | ||
| Groups: | php.doc.cvs | ||
| Request: | Send a blank email to doc-cvs+get-23781@lists.php.net to get a copy of this message | ||
Author: Midhun Monachan (midhunmonachan)
Committer: GitHub (web-flow)
Pusher: lacatoire
Date: 2026-09-26T07:42:35+02:00
Commit: https://github.com/php/doc-en/commit/cd40b088c261e9156232f7faf80dc39e2f07900e
Raw diff: https://github.com/php/doc-en/commit/cd40b088c261e9156232f7faf80dc39e2f07900e.diff
Document error_get_last() fatal error traces (#5883)
Changed paths:
M reference/errorfunc/functions/error-get-last.xml
Diff:
diff --git a/reference/errorfunc/functions/error-get-last.xml
b/reference/errorfunc/functions/error-get-last.xml
index f111c435166c..6b1660a25aed 100644
--- a/reference/errorfunc/functions/error-get-last.xml
+++ b/reference/errorfunc/functions/error-get-last.xml
@@ -29,6 +29,36 @@
internal function then the "message" begins with its name.
Returns &null; if there hasn't been an error yet.
</para>
+ <simpara>
+ As of PHP 8.5.0, for fatal errors with
+ <link linkend="ini.fatal-error-backtraces">fatal_error_backtraces</link>
+ enabled, the array also contains a <literal>"trace"</literal> key
+ with the backtrace as an <type>array</type>.
+ Fatal errors caused by uncaught exceptions do not include this key.
+ </simpara>
+ </refsect1>
+
+ <refsect1 role="changelog">
+ &reftitle.changelog;
+ <informaltable>
+ <tgroup cols="2">
+ <thead>
+ <row>
+ <entry>&Version;</entry>
+ <entry>&Description;</entry>
+ </row>
+ </thead>
+ <tbody>
+ <row>
+ <entry>8.5.0</entry>
+ <entry>
+ The returned array now includes a <literal>"trace"</literal> key
+ when a fatal error backtrace is available.
+ </entry>
+ </row>
+ </tbody>
+ </tgroup>
+ </informaltable>
</refsect1>
<refsect1 role="examples">