PHP 8.2.4 更新日志
PHP 8.2.4 发布于 2023 年 3 月 16 日,是 PHP 8.2 分支的正式维护版本,主要修复核心运行时、Fiber、Curl、Date、MBString、PHPDBG、数据库扩展、Reflection 和 Streams 相关问题。
- Core:修复 ZEND_YIELD、类型推断、zend_internal_call_should_throw()、内存消耗检查、Fiber 挂起于 Generator 时进入 shutdown 序列可能 fatal error 或崩溃、bailout 后 shutdown function 中使用 fiber 导致段错误,以及静态属性更新、属性获取、主脚本文件句柄释放等问题。
- Curl、Date 与 FFI:修复编译期弃用警告、readfunc 回调无法返回 CURL_READFUNC_PAUSE、日期格式 p 在 00:00 时未输出 Z、Date 子类自定义属性未序列化、Date* 对象私有/保护属性序列化异常,以及 FFI bitfield 位移和掩码错误。
- Fiber、FPM、GMP、Intl、JSON:修复 Alpine x86 汇编、Fiber 内触发垃圾回收导致段错误、FPM unknown child alert 与配置测试提前退出、GMP::__construct() 实现,以及 Intl/JSON 构建相关问题。
- MBString、OPcache、OpenSSL:修复 mbstring new_value 长度检查、Windows 上 mb_convert_encoding 崩溃、OPcache page_size 检查错误,以及 DH 参数错误处理。
- PDO OCI、PHPDBG、PGSQL、Phar:修复读取多字节 CLOB 限制、phpdbg --run 误用时堆缓冲区溢出、strict_types 下 pg_lo_open 段错误,以及 phar tar 解析检查错误。
- Random、Reflection、Session、Standard、Streams、Tidy、Zlib:修复 glibc 下不信任 arc4random_buf、srand/mt_srand 默认参数、Reflection::getClosureUsedVariables、ReflectionFiber 段错误、ps_files_cleanup_dir 失败路径、mail.mixed_lf_and_crlf、数组指针函数、copy_file_range 文件损坏、Tidy 内存泄漏和 Zlib output_handler 长度问题。
