Commit ad61a50ec91 for php
commit ad61a50ec91c94814b139f6c6562b16eea185c0f
Merge: 5566e9aefbb 9872ec58f48
Author: Weilin Du <weilindu@php.net>
Date: Tue Dec 1 18:07:45 2026 +0800
Merge branch 'PHP-8.5' into PHP-8.6
* PHP-8.5:
Fix an uncollected SimpleXMLElement reference cycle (#25790)
diff --cc NEWS
index 40f9ed67f2d,4059f5098f0..4edd3041676
--- a/NEWS
+++ b/NEWS
@@@ -271,22 -237,11 +271,24 @@@ PH
. Don't call destructor when constructor is not public in newInstance(Args)().
(ndossche)
+- Session:
+ . Fixed session upload progress to respect session.use_only_cookies.
+ (jorgsowa)
+ . Fixed files save handler GC following symlinked subdirectories when
+ session.save_path sets a directory depth. (Jorg Sowa)
+
+- SimpleXML:
+ . Fixed a crash with opcache when simplexml_load_string(),
+ simplexml_load_file() or simplexml_import_dom() is given a class whose
+ property defaults use constants. A class with an undefined constant now
+ throws an Error instead of returning an object with unresolved values.
+ (Ilia Alshanetsky)
++ . Fixed a memory leak when a SimpleXMLElement forms a reference cycle
++ through a missing element. (lacatoire, ndossche)
+
- SNMP:
- . Fixed snmp3_set() citing the wrong argument number for an invalid $timeout
- or $retries. (lacatoire)
- . Fixed the procedural snmp functions citing the wrong argument number for an
- invalid $hostname or $community. (lacatoire)
+ . Fixed bug GH-25858 (snmp_init_mib() crashes when $mibdirs is omitted or
+ null). (lazerg)
- SOAP:
. Fixed bug GH-25267 (NULL dereference in to_xml_any() with integer key).