×
UpdatePHP Pro Log in Register
PHP expiry alert : PHP v8.1 has recently expired. Is your website still running this version? Click here for more details
SAFE versions of PHP: 8.5.12, 8.4.27, 8.3.36, 8.2.35
☰

PHP 8.1.25 release notes: what changed

PHP 8.1.25 came out on 26 October 2023. Below is the full list of changes it made, grouped by the part of PHP that each one affects.

What changed in PHP 8.1.25

All PHP 8.1 releases

The changes are listed in English, exactly as the PHP developers wrote them (26 in total).

Core

  • Fixed bug GH-12207 (memory leak when class using trait with doc block). (rioderelfte)
  • Fixed bug GH-12215 (Module entry being overwritten causes type errors in ext/dom). (nielsdos)
  • Fixed bug GH-12273 (__builtin_cpu_init check). (Freaky)
  • Fixed bug #80092 (ZTS + preload = segfault on shutdown). (nielsdos)

CLI

  • Ensure a single Date header is present. (coppolafab)

CType

  • Fixed bug GH-11997 (ctype_alnum 5 times slower in PHP 8.1 or greater). (nielsdos)

DOM

  • Restore old namespace reconciliation behaviour. (nielsdos)
  • Fixed bug GH-8996 (DOMNode serialization on PHP ^8.1). (nielsdos)

Fileinfo

  • Fixed bug GH-11891 (fileinfo returns text/xml for some svg files). (usarise)

Filter

  • Fix explicit FILTER_REQUIRE_SCALAR with FILTER_CALLBACK (ilutov)

Hash

  • Fixed bug GH-12186 (segfault copying/cloning a finalized HashContext). (MaxSem)

Intl

  • Fixed bug GH-12243 (segfault on IntlDateFormatter::construct). (David Carlier)
  • Fixed bug GH-12282 (IntlDateFormatter::construct should throw an exception on an invalid locale). (David Carlier)

MySQLnd

  • Fixed bug GH-12297 (PHP Startup: Invalid library (maybe not a PHP library) 'mysqlnd.so' in Unknown on line). (nielsdos)

Opcache

  • Fixed opcache_invalidate() on deleted file. (mikhainin)
  • Fixed bug GH-12380 (JIT+private array property access inside closure accesses private property in child class). (nielsdos)

PCRE

  • Fixed bug GH-11956 (Backport upstream fix, PCRE regular expressions with JIT enabled gives different result). (nielsdos)

SimpleXML

  • Fixed bug GH-12170 (Can't use xpath with comments in SimpleXML). (nielsdos)
  • Fixed bug GH-12223 (Entity reference produces infinite loop in var_dump/print_r). (nielsdos)
  • Fixed bug GH-12167 (Unable to get processing instruction contents in SimpleXML). (nielsdos)
  • Fixed bug GH-12169 (Unable to get comment contents in SimpleXML). (nielsdos)

Streams

  • Fixed bug GH-12190 (binding ipv4 address with both address and port at 0). (David Carlier)

XML

  • Fix return type of stub of xml_parse_into_struct(). (nielsdos)
  • Fix memory leak when calling xml_parse_into_struct() twice. (nielsdos)

XSL

  • Fix type error on XSLTProcessor::transformToDoc return value with SimpleXML. (nielsdos)

Sockets

  • Fix socket_export_stream() with wrong protocol (twosee)

This list comes from the NEWS file that the PHP developers keep with the PHP source code, and the same list is also published on php.net.

Back to Guide Index
Article last updated: 21st October, 2026