Commit e501d2962d1 for php

commit e501d2962d164a31069442719bb3373b9f5a1347
Merge: d5710aefdf9 6fa1af1e921
Author: Weilin Du <weilindu@php.net>
Date:   Thu Oct 8 22:45:17 2026 +0800

    Merge branch 'PHP-8.4' into PHP-8.5

    * PHP-8.4:
      Fix leak when the added previous exception is already in the chain (#24177)

diff --cc NEWS
index 9b485ee4559,df64bebbbc8..aea00f945e4
--- a/NEWS
+++ b/NEWS
@@@ -1,8 -1,18 +1,12 @@@
  PHP                                                                        NEWS
  |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
 -?? ??? ????, PHP 8.4.28
 +?? ??? ????, PHP 8.5.13

+ - Core:
+   . Fixed memory leak when an exception already contains the pending exception
+     in its previous chain. (Edmond)
+
 -- DOM:
 -  . Fixed bug GH-23352 (UAF reading an attribute value node retained across
 -    DOMDocument::adoptNode()). (David Carlier)
 -
  - Opcache:
 -  . Fixed bug GH-20890 (Segfault in zval_undefined_cv with non-simple property
 -    hook with minimal tracing JIT). (ndossche)
    . Fixed bug GH-17626 (JIT corrupts an opline handler when blacklisting a
      root trace at the opcache.jit_max_root_traces limit, causing spurious
      "Too few arguments" errors and crashes). (RV7PR)