Commit 4983e8bb442 for php.net

commit 4983e8bb4426c7a2a4c025bac6a93d6d9312eac3
Merge: 28dab5fafb1 e0a99401346
Author: Alex Dowad <alexinbeijing@gmail.com>
Date:   Thu Jul 23 14:54:14 2026 +0900

    Merge branch 'PHP-8.5'

diff --cc NEWS
index 3c5101c096c,6445c30f1b4..8c12e62f7c0
--- a/NEWS
+++ b/NEWS
@@@ -11,64 -12,30 +11,68 @@@ PH
    . Fixed bug GH-22825 (DOMElement::setAttribute() fails silently when the DTD
      declares a default value for the attribute). (iliaal)

 +- GMP:
 +  . Fixed GMP power and shift operators to reject GMP right operands outside
 +    the unsigned long range instead of silently truncating them. (Weilin Du)
 +  . Fixed GMP integer string parsing to reject strings containing NUL bytes
 +    instead of silently truncating them. (Weilin Du)
 +  . Fixed GMP error messages that referenced outdated parameter names.
 +    (Weilin Du)
 +
 +- Intl:
 +  . Fixed grammatical issues in Normalizer invalid form and IntlCalendar time
 +    zone offset error messages. (Weilin Du)
 +
 +- ODBC:
 +  . Fixed bug GH-22668 (Heap buffer over-read when a column value exceeds the
 +    driver-reported display size). (iliaal)
 +
  - Opcache:
 -  . Fixed GH-22693 (DT_TEXTREL in JIT-generated TLS access on x86_64).
 -    (David Carlier)
 -  . Fixed bug GH-22763 (JIT fails to clear ZREG_TYPE_ONLY after setting reg).
 -    (Arnaud)
 +  . Re-enable JIT for ZTS builds on Apple Silicon. (realFlowControl)
 +
 +- PDO_ODBC:
 +  . Fixed bug GH-22667 (Heap buffer over-read when a column value exceeds the
 +    driver-reported display size). (iliaal)
 +  . Fixed bug GH-22666 (Heap buffer overflow when an output parameter value is
 +    longer than the declared maxlen). (iliaal)
 +  . Fixed bug GH-22665 (Out-of-bounds write when the ODBC driver reports a
 +    diagnostic message length beyond the error buffer). (iliaal)
 +
 +- Reflection:
 +  . Fixed bug GH-22681 (Reflection*::__toString() truncates on null bytes).
 +    (DanielEScherzer)
 +
 +- SOAP:
 +  . Fixed header injection through the Content-Type context option, the
 +    soapaction and the cookie names and values. (David Carlier)

+ - MBString:
+   . Fixed bug GH-22779 (mb_strrpos() returns the wrong position for a negative
+     offset in a non-UTF-8 encoding). (Eyüp Can Akman)
+
  - Sockets:
    . Fixed socket_set_option() validation error messages for UDP_SEGMENT and
 -    SO_LINGER options. (Weilin Du)
 +    TCP_USER_TIMEOUT, and SO_LINGER options. (Weilin Du)
    . Fixed various memory related issues in ext/sockets. (David Carlier)

 -30 Jul 2026, PHP 8.5.9
 +- Streams:
 +  . Added a new IO copy API used by php_stream_copy_to_stream_ex() that
 +    leverages platform primitives (sendfile, splice, copy_file_range,
 +    TransmitFile) for faster stream copying. (Jakub Zelenka, David Carlier)
 +
 +16 Jul 2026, PHP 8.6.0alpha2

  - Core:
 -  . Fixed bug GH-22290 (AST pretty printing does not correctly handle strings
 -    containing NUL). (iliaal)
 -  . Fixed bug GH-22206 (missing return in global register detection).
 -    (P3p111n0)
 +  . Sync Boost.Context assembly with 1.91.0. (kn1g78)
 +  . Fixed bug GH-22387 (AST pretty-printing drops meaningful parentheses around
 +    RHS of instanceof). (timwolla)
 +  . Fixed bug GH-15672 and GH-15911 (Stack overflow when an internal function
 +    recurses through zend_call_function, such as a self-attached SPL
 +    iterator). (iliaal)
    . Lock unmodified readonly properties for modification after clone-with.
      (NickSdot)
 +  . abort() instead of exit() on hard OOM. (realFlowControl)
 +  . perf: ZTS: move AG and SCNG into native __thread storage. (henderkes)

  - Calendar:
    . Fixed bug GH-22602 (gregoriantojd() and juliantojd() integer overflow with