Commit 51300b7f59f for php.net

commit 51300b7f59fa4ae97015d519c442bb7f581c9769
Merge: e60d756f2cc 3882f55a61f
Author: Weilin Du <weilindu@php.net>
Date:   Fri Jul 17 04:17:57 2026 +0800

    Merge branch 'PHP-8.5'

    * PHP-8.5:
      ext/sockets: Fix socket_set_option() validation error messages (#22772)

diff --cc NEWS
index cb10b3be0b6,d989b44146d..e1a8e55de7b
--- a/NEWS
+++ b/NEWS
@@@ -1,43 -1,23 +1,47 @@@
  PHP                                                                        NEWS
  |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
 -?? ??? ????, PHP 8.5.10
 +?? ??? ????, PHP 8.6.0alpha3

 -- Date:
 -  . Fixed leak on double DatePeriod::__construct() call. (ilutov)
 +- GMP:
 +  . Fixed GMP power and shift operators to reject GMP right operands outside
 +    the unsigned long range instead of silently truncating them. (Weilin Du)
 +
 +- ODBC:
 +  . Fixed bug GH-22668 (Heap buffer over-read when a column value exceeds the
 +    driver-reported display size). (iliaal)
 +
 +- Opcache:
 +  . 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)

+ - Sockets:
+   . Fixed socket_set_option() validation error messages for UDP_SEGMENT and
+     SO_LINGER options. (Weilin Du)
+
 -30 Jul 2026, PHP 8.5.9
 +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