PHP 8.4.22 更新日志
PHP 8.4.22 于 2026 年 6 月 4 日发布,是 PHP 8.4 分支的维护版本,包含 Date、Intl、MySQLnd、Opcache、OpenSSL、SPL 和 Standard 等修复。
- Date:修复 php_date_llabs 中的整数溢出问题。
- Intl:修复 IntlCalendar::set()、setDate()、setDateTime() 和 IntlGregorianCalendar 日期时间构造中越界错误的参数位置,向所有支持的 ICU 版本暴露 Spoofchecker restriction-level API,并让 SpoofChecker::setAllowedChars() 与 IntlDateFormatter::__construct() 在用户可见错误中报告 PHP 常量名。
- MySQLnd 与 Opcache:修复 persistent free 非 persistent connect_attr key 的问题,并修复 observed user function call 期间处理 VM interrupt 时 tracing JIT 崩溃,以及 ext/opcache/jit/zend_jit_trace.c 中的断言失败。
- OpenSSL:修复与 OpenSSL 4.0 的兼容性问题。
- SPL:修复 SplFixedArray::setSize 在 clear 期间析构器增长导致的泄漏,以及 self-freeing MultipleIterator children 的 use-after-free。
- Standard:修复 version_compare() 处理以点结尾版本时结果错误,以及 AIX 上 ip2long() 对前导零处理不一致的问题。
