×
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.8 release notes: what changed

PHP 8.1.8 came out on 7 July 2022. Below is the full list of changes it made, grouped by the part of PHP that each one affects.

Security This release fixed security problems, but PHP 8.1 no longer gets any updates. If your site still runs on PHP 8.1, it should be moved to a version of PHP that is still supported.

What changed in PHP 8.1.8

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-8338 (Intel CET is disabled unintentionally). (Chen, Hu)
  • Fixed leak in Enum::from/tryFrom for internal enums when using JIT (ilutov)
  • Fixed calling internal methods with a static return type from extension code. (Sara)
  • Fixed bug GH-8655 (Casting an object to array does not unwrap refcount=1 references). (Nicolas Grekas)
  • Fixed potential use after free in php_binary_init(). (Heiko Weber)
  • Fixed bug GH-7942 (Indirect mutation of readonly properties through references). (ilutov)

CLI

  • Fixed GH-8827 (Intentionally closing std handles no longer possible). (cmb)

COM

  • Fixed bug GH-8778 (Integer arithmethic with large number variants fails). (cmb)

Curl

  • Fixed CURLOPT_TLSAUTH_TYPE is not treated as a string option. (Pierrick)

Date

  • Fixed bug #72963 (Null-byte injection in CreateFromFormat and related functions). (Derick)
  • Fixed bug #74671 (DST timezone abbreviation has incorrect offset). (Derick)
  • Fixed bug #77243 (Weekdays are calculated incorrectly for negative years). (Derick)
  • Fixed bug #78139 (timezone_open accepts invalid timezone string argument). (Derick)

Fileinfo

FPM

  • Fixed bug #67764 (fpm: syslog.ident don't work). (Jakub Zelenka)

GD

  • Fixed imagecreatefromavif() memory leak. (cmb)

MBString

  • mb_detect_encoding recognizes all letters in Czech alphabet (alexdowad)
  • mb_detect_encoding recognizes all letters in Hungarian alphabet (alexdowad)
  • Fixed bug GH-8685 (pcre not ready at mbstring startup). (Remi)
  • Backwards-compatible mappings for 0x5C/0x7E in Shift-JIS are restored, after they had been changed in 8.1.0. (Alex Dowad)

ODBC

  • Fixed handling of single-key connection strings. (Calvin Buckley)

OPcache

  • Fixed bug GH-8591 (tracing JIT crash after private instance method change). (Arnaud, Dmitry, Oleg Stepanischev)

OpenSSL

  • Fixed bug #50293 (Several openssl functions ignore the VCWD). (Jakub Zelenka, cmb)
  • Fixed bug #81713 (NULL byte injection in several OpenSSL functions working with certificates). (Jakub Zelenka)

PDO_ODBC

  • Fixed handling of single-key connection strings. (Calvin Buckley)

Zip

  • Fixed bug GH-8781 (ZipArchive::close deletes zip file without updating stat cache). (Remi)

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