PHP 8.2.22 更新日志
PHP 8.2.22 发布于 2024 年 8 月 1 日,是 PHP 8.2 分支的正式维护版本,主要修复核心运行时、DOM、LibXML、PDO、Phar、PHPDBG、SimpleXML、SPL、Standard 和 XML 相关问题。
- Core:修复 sysconf(_SC_GETPW_R_SIZE_MAX)=-1 系统支持、huge blocks 下 is_zend_ptr()、FPM 测试内存泄漏、OSS-Fuzz #69765、Zend/zend_types.h 段错误,以及 property coercion 与 __toString() 组合下的 use-after-free。
- DOM、GD、LibXML:修复 DOMDocument::xinclude() 崩溃、GD 测试 PNG 支持判断和 warning 行为、libxml2 2.13.0 构建失败。
- OPcache、Output、PDO、Phar:修复 Zend DTrace 开启时 opcache.jit 被隐式禁用但无 warning、空 output buffer 下 zend_string 空指针、PDORow 访问 null property 崩溃,以及 Phar zip entry null string。
- PHPDBG、Shmop、SimpleXML:修复 ASAN 和 ZEND_RC_DEBUG=1 下 PHPDBG 崩溃、echo 输出被 NULL byte 截断、Windows 11 shmop 崩溃,以及 XML 解析失败后 SimpleXML null dereference。
- SPL、Standard、Tidy:修复 SPL observer 空指针、32 位 wordwrap 测试失败、time_sleep_until overflow,以及 tidy_repair_file() 内存泄漏。
- Treewide 与 XML:修复 libxml2 2.13.2 兼容性、迁移即将废弃的 libxml 字段,并修复 --with-pear 安装 PHP 时的错误。





