PHP 8.4.13 于 2025年9月25日 发布。下面是它带来的全部变更,按每项变更影响的 PHP 部分分组列出。
变更内容以英文列出,与 PHP 开发者撰写的原文完全一致(共 26 项)。
Core
- Fixed bug GH-18850 (Repeated inclusion of file with __halt_compiler() triggers "Constant already defined" warning). (ilutov)
- Partially fixed bug GH-19542 (Scanning of string literals >=2GB will fail due to signed int overflow). (ilutov)
- Fixed bug GH-19544 (GC treats ZEND_WEAKREF_TAG_MAP references as WeakMap references). (Arnaud, timwolla)
- Fixed bug GH-19613 (Stale array iterator pointer). (ilutov)
- Fixed bug GH-19679 (zend_ssa_range_widening may fail to converge). (Arnaud)
- Fixed bug GH-19681 (PHP_EXPAND_PATH broken with bash 5.3.0). (Remi)
- Fixed bug GH-19720 (Assertion failure when error handler throws when accessing a deprecated constant). (nielsdos)
CLI
- Fixed bug GH-19461 (Improve error message on listening error with IPv6 address). (alexandre-daubois)
Date
- Fixed date_sunrise() and date_sunset() with partial-hour UTC offset. (ilutov)
DBA
- Fixed bug GH-19706 (dba stream resource mismanagement). (nielsdos)
DOM
- Fixed bug GH-19612 (Mitigate libxml2 tree dictionary bug). (nielsdos)
FPM
- Fixed failed debug assertion when php_admin_value setting fails. (ilutov)
Intl
- Fixed bug GH-11952 (Fix locale strings canonicalization for IntlDateFormatter and NumberFormatter). (alexandre-daubois)
Opcache
- Fixed bug GH-19493 (JIT variable not stored before YIELD). (Arnaud)
OpenSSL
- Fixed bug GH-19245 (Success error message on TLS stream accept failure). (Jakub Zelenka)
PGSQL
- Fixed bug GH-19485 (potential use after free when using persistent pgsql connections). (Mark Karpeles)
Phar
- Fixed memory leaks when verifying OpenSSL signature. (Girgias)
- Fix memory leak in phar tar temporary file error handling code. (nielsdos)
- Fix metadata leak when phar convert logic fails. (nielsdos)
- Fix memory leak on failure in phar_convert_to_other(). (nielsdos)
- Fixed bug GH-19752 (Phar decompression with invalid extension can cause UAF). (nielsdos)
Standard
- Fixed bug GH-16649 (UAF during array_splice). (alexandre-daubois)
- Fixed bug GH-19577 (Avoid integer overflow when using a small offset and PHP_INT_MAX with LimitIterator). (alexandre-daubois)
Streams
- Remove incorrect call to zval_ptr_dtor() in user_wrapper_metadata(). (nielsdos)
- Fix OSS-Fuzz #385993744. (nielsdos)
Zip
- Fix memory leak in zip when encountering empty glob result. (nielsdos)
此列表来自 PHP 开发者随 PHP 源代码一起维护的 NEWS 文件,同样的列表也发布在 php.net 上。
相关文章
有用的文章可帮助您确定是否需要升级服务器的 PHP 版本以及如何升级。
阅读更多 →
如果您不想使用我们的工具或已经尝试过,下面列出了三个简单的测试,您可以执行这些测试来确定您的 PHP 版本。我们按照复杂性的顺序列出了它们,从最简单的开始。
阅读更多 →
← 返回:指南索引
文章最后更新: 21st October, 2026