PHP 8.4.16 于 2025年12月18日 发布。下面是它带来的全部变更,按每项变更影响的 PHP 部分分组列出。
安全 此版本修复了安全问题。此后 PHP 8.4 又发布了更新的版本,如果您的网站运行在 PHP 8.4 上,请更新到包含这些修复的 PHP 8.4.27。
变更内容以英文列出,与 PHP 开发者撰写的原文完全一致(共 36 项)。
Core
- Sync all boost.context files with release 1.86.0. (mvorisek)
- Fixed bug GH-20435 (SensitiveParameter doesn't work for named argument passing to variadic parameter). (ndossche)
- Fixed bug GH-20286 (use-after-destroy during userland stream_close()). (ndossche, David Carlier)
Bz2
- Fix assertion failures resulting in crashes with stream filter object parameters. (ndossche)
Date
- Fix crashes when trying to instantiate uninstantiable classes via date static constructors. (ndossche)
DOM
- Fix memory leak when edge case is hit when registering xpath callback. (ndossche)
- Fixed bug GH-20395 (querySelector and querySelectorAll requires elements in $selectors to be lowercase). (ndossche)
- Fix missing NUL byte check on C14NFile(). (ndossche)
Fibers
- Fixed bug GH-20483 (ASAN stack overflow with fiber.stack_size INI small value). (David Carlier)
FTP
- Fixed bug GH-20601 (ftp_connect overflow on timeout). (David Carlier)
GD
- Fixed bug GH-20511 (imagegammacorrect out of range input/output values). (David Carlier)
- Fixed bug GH-20602 (imagescale overflow with large height values). (David Carlier)
Intl
- Fixed bug GH-20426 (Spoofchecker::setRestrictionLevel() error message suggests missing constants). (DanielEScherzer)
LibXML
- Fix some deprecations on newer libxml versions regarding input buffer/parser handling. (ndossche)
MbString
- Fixed bug GH-20491 (SLES15 compile error with mbstring oniguruma). (ndossche)
- Fixed bug GH-20492 (mbstring compile warning due to non-strings). (ndossche)
mysqli
- Make mysqli_begin_transaction() report errors properly. (Kamil Tekiela)
MySQLnd
- Fixed bug GH-20528 (Regression breaks mysql connexion using an IPv6 address enclosed in square brackets). (Remi)
Opcache
- Fixed bug GH-20329 (opcache.file_cache broken with full interned string buffer). (Arnaud)
Phar
- Fixed bug GH-20442 (Phar does not respect case-insensitiveness of __halt_compiler() when reading stub). (ndossche, TimWolla)
- Fix broken return value of fflush() for phar file entries. (ndossche)
- Fix assertion failure when fseeking a phar file out of bounds. (ndossche)
PHPDBG
- Fixed ZPP type violation in phpdbg_get_executable() and phpdbg_end_oplog(). (Girgias)
SPL
- Fixed bug GH-20614 (SplFixedArray incorrectly handles references in deserialization). (ndossche)
Streams
- Fixed bug GH-20370 (User stream filters could violate typed property constraints). (alexandre-daubois)
Tidy
- Fixed bug GH-20374 (PHP with tidy and custom-tags). (ndossche)
XML
- Fixed bug GH-20439 (xml_set_default_handler() does not properly handle special characters in attributes when passing data to callback). (ndossche)
Zip
- Fix crash in property existence test. (ndossche)
- Don't truncate return value of zip_fread() with user sizes. (ndossche)
Zlib
- Fix assertion failures resulting in crashes with stream filter object parameters. (ndossche)
此列表来自 PHP 开发者随 PHP 源代码一起维护的 NEWS 文件,同样的列表也发布在 php.net 上。
相关文章
有用的文章可帮助您确定是否需要升级服务器的 PHP 版本以及如何升级。
阅读更多 →
如果您不想使用我们的工具或已经尝试过,下面列出了三个简单的测试,您可以执行这些测试来确定您的 PHP 版本。我们按照复杂性的顺序列出了它们,从最简单的开始。
阅读更多 →
← 返回:指南索引
文章最后更新: 21st October, 2026