PHP官方团队发布了版本号为8.5.13的更新日志,此次升级重点聚焦于核心引擎、标准库及扩展模块的错误修复与安全加固 1。在安全层面,该版本修补了多个具有CVE编号的高风险漏洞,具体包括时区缓存中的使用后释放(UAF)漏洞(CVE-2026-129496)、DOM XML序列化过程中的双重释放问题(CVE-2026-129501),以及PHAR组件中OpenSSL签名绕过风险(CVE-2026-128090) 1。此外,开发团队还解决了zend_set_local_var()函数中的内存泄漏问题(GH-24668),并通过在全局变量中添加填充的方式修复了ABI不兼容性问题 1。
除底层稳定性优化外,PHP 8.5.13还引入了若干功能增强与API调整,同时发出了一些弃用警告 1。在扩展更新方面,Curl扩展新增支持CURLOPT_POSTFIELDSIZE_LARGE选项,使得在Windows等平台上能够上传大于2GB的字符串;Intl扩展则添加了新的IntlNumberRangeFormatter类 1。新版本弃用了使用'let'或'is'作为类、函数或常量名称的做法,同时也弃用了使用'_'作为常量名 1。本次发布的文档不仅涵盖了当前版本的变更细节,还整合了从PHP 8.5.13回溯至PHP 8.0.5等多个历史版本的累积修改记录,为开发者提供了完整的升级参考路径 1。
The PHP development team has released version 8.5.13, an update featuring error fixes and security patches across the core engine, standard library, and extension modules 1. This release addresses multiple CVE security risks, including a use-after-free (UAF) vulnerability in the Timezone cache (CVE-2026-129496), a double free issue during DOM XML serialization (CVE-2026-129501), and a PHAR OpenSSL signature bypass (CVE-2026-128090) 1.
In addition to security fixes, the update resolves core stability issues by correcting ABI incompatibility through the addition of padding to global variables and fixing a memory leak in zend_set_local_var() (GH-24668) 1. Extension updates include Curl support for CURLOPT_POSTFIELDSIZE_LARGE, which allows uploading strings larger than 2GB on platforms such as Windows, and the introduction of the IntlNumberRangeFormatter class in the Intl extension 1.
The release also introduces deprecation warnings for using 'let' or 'is' as names for classes, functions, or constants, as well as for using '_' as a constant name 1. The official changelog aggregates cumulative changes from previous versions, including PHP 8.4.x and 8.3.x back to PHP 8.0.5, providing developers with a reference for upgrade paths 1.
评论
还没有评论,欢迎留下第一条。