×
UpdatePHP Pro 登录 登记
PHP 到期提醒 : PHP v8.1 最近已过期. 您的网站还在运行这个版本吗? 点击此处了解更多详情
安全的 PHP 的版本: 8.5.12, 8.4.27, 8.3.36, 8.2.35
☰

PHP 8.4.20 发行说明:有哪些变化

PHP 8.4.20 于 2026年4月9日 发布。下面是它带来的全部变更,按每项变更影响的 PHP 部分分组列出。

PHP 8.4.20 的变化

PHP 8.4 的所有版本

变更内容以英文列出,与 PHP 开发者撰写的原文完全一致(共 20 项)。

Bz2

  • Fix truncation of total output size causing erroneous errors. (ndossche)

Core

DOM

  • Fixed bug GH-21486 (Dom\HTMLDocument parser mangles xml:space and xml:lang attributes). (ndossche)

FFI

  • Fixed resource leak in FFI::cdef() onsymbol resolution failure. (David Carlier)

GD

  • Fixed bug GH-21431 (phpinfo() to display libJPEG 10.0 support). (David Carlier)

Opcache

  • Fixed bug GH-20838 (JIT compiler produces wrong arithmetic results). (Dmitry, iliaal)
  • Fixed bug GH-21267 (JIT tracing: infinite loop on FETCH_OBJ_R with IS_UNDEF property in polymorphic context). (Dmitry, iliaal)
  • Fixed bug GH-21395 (uaf in jit). (ndossche)

OpenSSL

  • Fixed bug GH-21083 (Skip private_key_bits validation for EC/curve-based keys). (iliaal)
  • Fix missing error propagation for BIO_printf() calls. (ndossche)

PCRE

  • Fixed re-entrancy issue on php_pcre_match_impl, php_pcre_replace_impl, php_pcre_split_impl, and php_pcre_grep_impl. (David Carlier)

PGSQL

  • Fixed preprocessor silently guarding PGSQL_SUPPRESS_TIMESTAMPS support due to a typo. (KentarouTakeda)

SNMP

  • Fixed bug GH-21336 (SNMP::setSecurity() undefined behavior with NULL arguments). (David Carlier)

SOAP

  • Fixed Set-Cookie parsing bug wrong offset while scanning attributes. (David Carlier)

SPL

  • Fixed bug GH-21454 (missing write lock validation in SplHeap). (ndossche)

Standard

  • Fixed bug GH-20906 (Assertion failure when messing up output buffers). (ndossche)
  • Fixed bug GH-20627 (Cannot identify some avif images with getimagesize). (y-guyon)

Sysvshm

  • Fix memory leak in shm_get_var() when variable is corrupted. (ndossche)

XSL

  • Fix GH-21357 (XSLTProcessor works with DOMDocument, but fails with Dom\XMLDocument). (ndossche)
  • Fixed bug GH-21496 (UAF in dom_objects_free_storage). (David Carlier/ndossche)

此列表来自 PHP 开发者随 PHP 源代码一起维护的 NEWS 文件,同样的列表也发布在 php.net 上。

返回:指南索引
文章最后更新: 21st October, 2026