PHP 8.2.25 更新日志
PHP 8.2.25 发布于 2024 年 10 月 24 日,是 PHP 8.2 分支的正式维护版本,主要修复 Calendar、Core、DOM、GD、LDAP、SOAP、Standard 和 Streams 等模块的稳定性问题。
- Calendar 与 CLI:修复 jdtounix、easter_days/easter_date、jddayofweek、jewishtojd 等参数溢出,以及客户端多次设置 HTTP header 时重复 header 的问题。
- Core 与 Date:修复 zend_strtod precision 溢出、TRACK_VARS_SERVER 断言失败、Serialize deprecation 提升为异常时断言失败、nested generator frame 清理期间 backtrace 段错误、zend_generators core dump、zend_exceptions 断言、observer/trampoline 段错误,以及 DateTimeZone 父构造未调用时崩溃。
- DOM、GD、LDAP、MBString:修复 DOM parentnode 空指针和断言、GD wbmp/imagerotate/imagescale 溢出、LDAP modify/search/list/read 多个 NULL 指针和内存问题,以及 mb_convert_variables 引用 invariant 破坏。
- PCRE、PHPDBG、Reflection、SAPI:修复 PCRE offset underflow 和 UBSan address overflow、phpdbg 断言和异常处理 fatal、Reflection 断言,以及 php-fpm cgi-fcgi 请求导致 zend_mm_heap corrupted。
- SimpleXML、Sockets、SOAP:修复 SimpleXML 段错误、socket_strerror errno 溢出、SOAP xsd import 错误命名空间、SoapServer clone 段错误、SOAP 错误路径 http_msg 泄漏、encoding 断言和 classmap 实例化失败段错误。
- Standard、Streams、TSRM、XML:修复 unpack hex string repeater 溢出、stream timeout option 溢出、zend_hash 断言、streams.c 泄漏/断言和有符号整数溢出,防止关闭无关 handles,并修复异常后 xml_parse_into_struct 断言失败。





