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

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

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

PHP 8.4.25 的变化

PHP 8.4 的所有版本

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

Core

  • Fixed bug GH-23088 (Stack overflow when comparing deeply nested arrays). (Lazizbek Ergashev)

Date

  • Fixed leak on double DatePeriod::__construct() call. (ilutov)

DOM

  • Fixed bug GH-23116 (Stack overflow when normalizing a deeply nested DOMDocument). (Lazizbek Ergashev)
  • Fixed bug GH-23117 (Stack overflow when normalizing a deeply nested Dom\XMLDocument). (Lazizbek Ergashev)
  • Fixed bug GH-22825 (DOMElement::setAttribute() fails silently when the DTD declares a default value for the attribute). (iliaal)
  • Fixed bug GH-22447 (UAF at dom_objects_free_storage when setting an attribute node that collides by local name with a namespaced attribute). (David Carlier)
  • Fixed bug GH-23120 (Stack overflow when comparing deeply nested DOM nodes with DOMNode::isEqualNode()). (Weilin Du)

LibXML

  • Fixed bug GH-22752 (Build failure with libxml 2.15). (David Carlier)

MBString

  • Fixed bug GH-22779 (mb_strrpos() returns the wrong position for a negative offset in a non-UTF-8 encoding). (Eyüp Can Akman)
  • Fixed bug GH-21036 (mb_ereg_search_getregs() crashes after mb_eregi() invalidates the regex cache). (Matthias Goergens)

Opcache

  • Fixed bug GH-22857 (Function JIT emits wrong code for FETCH_OBJ_FUNC_ARG on a property hook getter, losing register-held variables). (Zhao Hao)

OpenSSL

  • Fix missing error check on invalid alpn protocols. (ndossche)

Opcache

  • Fixed bug GH-22916 (Preserve parent regs in zend_jit_deoptimizer_start()). (Arnaud)

PCRE

  • Fixed bug GH-21134 (Crash with \C + UTF-8). Using \C in UTF-8 patterns is now forbidden. (Arnaud)

Reflection

  • Fixed bug GH-22905 (Reflection exception messages truncate on null bytes). (DanielEScherzer)
  • Fixed ReflectionProperty::isLazy() and skipLazyInitialization() using the parent slot when a child class hooks an inherited property. (iliaal)
  • Fixed segfault in ReflectionMethod::createFromMethodName() on an uninstantiable subclass. (iliaal)
  • Fixed bug GH-23842 (ReflectionProperty::skipLazyInitialization() copies invalid constant defaults with OPcache). (DirkTrunkstar, Lazizbek Ergashev)

Readline

  • Fixed class constant completion in the interactive shell. (Weilin Du)

Zip

  • Fixed bug GH-17787 (ZipArchive stream stops reading early when the archive is freed while the stream is still open). (Eyüp Can Akman)

Session

  • Fix corruption in mod_mm. (ndossche)
  • Fixed bug GH-23043 (broken session id code can cause zend_mm_heap corrupted). (ndossche)

SimpleXML

  • Fixed integer element offsets that cannot resolve aliasing an existing element. (iliaal)
  • Fixed segfault when comparing uninitialized SimpleXMLElement instances. (iliaal)

Sockets

  • Fixed various memory related issues in ext/sockets. (David Carlier)

SQLite

  • Fix leak when trying to close db if blob stream is still open. (ndossche)

Standard

  • Fixed bug GH-23111 (Stack overflow in array_walk_recursive() with deeply nested arrays). (Lazizbek Ergashev)
  • Fixed bug GH-23113 (Stack overflow in array_replace_recursive() with deeply nested arrays). (Lazizbek Ergashev)
  • Fixed bug GH-23115 (Stack overflow in compact() with deeply nested arrays). (Lazizbek Ergashev)
  • Fixed stack overflow in count() with COUNT_RECURSIVE and deeply nested arrays. (Lazizbek Ergashev)

Streams

  • Fixed bug GH-15836 (Use-after-free when a user stream filter accesses $this->stream during the close flush). (iliaal)

Sysvshm

  • Fixed out-of-bounds write when shm_attach() opens an existing segment with a size larger than the segment actually is. (David Carlier)

XSL

  • Fixed use-after-free when a DOMDocument subclass __clone() retains the stylesheet copy made by XSLTProcessor::importStylesheet(). (iliaal)

Zip

  • Fixed ZipArchive::addGlob() and ZipArchive::addPattern() ignoring their default options when no options array is given. (David Carlier)

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

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