Commit 475811a1866 for php.net
commit 475811a1866abeb4f8215b9210656c6ec768bb95
Merge: 1364de0472b cf65d03d60e
Author: Ilia Alshanetsky <ilia@ilia.ws>
Date: Tue Sep 8 06:26:50 2026 -0400
Merge branch 'PHP-8.5'
* PHP-8.5:
simplexml: fix addChild() namespace filter on the returned element
diff --cc NEWS
index 1b2e879fcaf,4fe4571c513..205b2f071ff
--- a/NEWS
+++ b/NEWS
@@@ -106,88 -117,13 +106,91 @@@ PH
- SimpleXML:
. Fixed writing to a dimension of the object returned by attributes() not
creating the attribute. (Ilia Alshanetsky)
+ . Fixed child elements of the element returned by
+ SimpleXMLElement::addChild() not being accessible by property name when
+ namespaces are involved. (Ilia Alshanetsky)
+- Streams:
+ . Added so_rcvbuf and so_sndbuf stream socket context options, setting the
+ socket receive and send buffer sizes in bytes. (David Carlier)
+
+
+27 Aug 2026, PHP 8.6.0beta2
+
+- Core:
+ . Fixed bug GH-15375 (Nested "yield from" skips items after a valid() or
+ next() call on the inner generator). (iliaal)
+ . Fixed GH-10497 (Allow direct mutation of objects stored in constants or
+ class constants via OBJ->prop = $val). (Khaled Alam)
+ . Reverted GH-22833, which attempted to fix bug GH-18985. (ilutov)
+ . Using the return statement in a finally block is now deprecated.
+ (aldemeery)
+
+- Curl:
+ . Set content length using CURLOPT_POSTFIELDSIZE_LARGE instead of
+ CURLOPT_POSTFIELDSIZE. This makes it possible to post strings larger than
+ 2GB on some platforms, e.g. Windows. (Sjoerd Langkemper)
+
+- DOM:
+ . Fixed a typo in the DOMException message for INUSE_ATTRIBUTE_ERR.
+ (Weilin Du)
+ . Fixed bug GH-22624 (use-after-free via DOMNameSpaceNode after
+ DOMDocument::xinclude()). (David Carlier)
+ . Fixed a use-after-free when cloning a DOMNameSpaceNode after
+ DOMDocument::xinclude(). (iliaal)
+ . Fixed a crash in DOMXPath when a php:function callback receives a nodeset
+ and a later callback returns a node from another document. (iliaal)
+ . Fixed bug GH-23331 (UAF when node_list_unlink() skips attribute children
+ that still have a live wrapper). (iliaal)
+ . Fixed a use-after-free when Dom\Element::setAttributeNS() replaces the
+ value of an attribute whose child still has a live wrapper. (iliaal)
+
+- GD:
+ . Fixed imageaffinematrixget() and imageaffinematrixconcat() reporting the
+ wrong argument in error messages. (Weilin Du)
+ . Fixed imageaffinematrixget() to enforce the documented array|float type
+ for the $options parameter. (Weilin Du)
+
+- Intl:
+ . Fixed grapheme_strrev() treating UBRK_DONE as a byte index and leaving
+ the result without a terminating NUL. (iliaal)
+ . Fixed a double-free when IntlGregorianCalendar construction fails after
+ the ICU constructor adopts the TimeZone. (iliaal)
+ . Fixed bug GH-23094 (NumberFormatter parsing offsets use UTF-16 positions
+ for UTF-8 strings). (ColumbusLabs)
+ . Fixed Locale::parseLocale() reading past a trailing '-' or '_'.
+ (iliaal, Xuyang Zhang)
+ . Fixed grapheme_str_split() treating UBRK_DONE as a byte index. (iliaal)
+
+- Opcache:
+ . Fixed a tracing JIT crash when compiling a side trace for a method of a
+ class that could not be stored in the inheritance cache. (GH-21710)
+ (Arnaud, iliaal)
+
+- PDO:
+ . Fixed a leak when a persistent connection failed a liveness check
+ with no other live PDO handle. (iliaal)
+
+- PDO_PGSQL:
+ . Fixed several lazy fetch (PDO::ATTR_PREFETCH => 0) defects: an infinite
+ loop when cleaning up a fetch left in a COPY, a use-after-free when a
+ statement with emulated or disabled prepares is destroyed, a connection
+ left busy for the next fetch, and rows delivered from a result another
+ statement took over. (KentarouTakeda)
+
+- PGSQL:
+ . Fixed the class name casing of pg_close_stmt()'s connection parameter.
+ (lacatoire)
+
+- Phar:
+ . Fixed Phar archives being automatically detected when ".phar" only occurs
+ in a directory name or is not a filename extension in an included file's
+ path. (Weilin Du)
+
+- Readline:
+ . Fixed class constant completion in the interactive shell. (Weilin Du)
+
- Zip:
- . Fixed bug GH-17787 (ZipArchive stream stops reading early when the archive
- is freed while the stream is still open). (Eyüp Can Akman)
. Fixed bug GH-23276 (ZipArchive subclass storing its own stream cannot be
garbage collected). (Weilin Du, ndossche)