diff --git a/reference/funchand/functions/register-shutdown-function.xml b/reference/funchand/functions/register-shutdown-function.xml
index b8befded201d..dc799e3f005c 100644
--- a/reference/funchand/functions/register-shutdown-function.xml
+++ b/reference/funchand/functions/register-shutdown-function.xml
@@ -24,6 +24,14 @@
function, processing will stop completely and no other registered
shutdown functions will be called.
+
+
+ Since PHP 8.4.0, a parameterless exit call within a
+ registered shutdown function resets the exit code to 0.
+ Calling exit with an explicit status overwrites the
+ previous exit code in all versions.
+
+
Shutdown functions may also call register_shutdown_function
themselves to add a shutdown function to the end of the queue.
diff --git a/reference/misc/functions/exit.xml b/reference/misc/functions/exit.xml
index 39ec19cd1f40..bec91ba23987 100644
--- a/reference/misc/functions/exit.xml
+++ b/reference/misc/functions/exit.xml
@@ -109,6 +109,16 @@
variable functions.
+
+ 8.4.0
+
+ A parameterless exit called within
+ shutdown functions
+ or object destructors
+ now resets the exit code to 0; previously the exit code
+ set by an earlier exit call was kept.
+
+