php8.5
← All releases
PHP 8.4 Thursday, 04 June 2026

PHP 8.4.22

15 changes across 9 components.

Date

  • Fixed bug GH-18422 (int overflow in php_date_llabs).

Intl

  • Fix incorrect argument positions in out-of-bounds errors for IntlCalendar::set(), IntlCalendar::setDate(), IntlCalendar::setDateTime(), and IntlGregorianCalendar date/time construction.
  • Expose Spoofchecker restriction-level APIs on all supported ICU versions.
  • Fix SpoofChecker::setAllowedChars() and IntlDateFormatter::__construct() to report PHP constant names instead of ICU constant names in user-visible error messages.

MySQLnd

  • Fix persistent free of non-persistent connect_attr key (David Carlier).

Opcache

  • Fixed bug GH-21972 (Corrupted variable type when a typed by-value return contains a reference wrapper).
  • Fixed tracing JIT crash when a VM interrupt is handled during an observed user function call.
  • Fixed bug GH-22004 (Assertion failure at ext/opcache/jit/zend_jit_trace.c).

OpenSSL

  • Fix compatibility issues with OpenSSL 4.0.

Phar

  • Fixed bug GH-21986 (PharData::getContent() crash on infinite recursion with symlinks).

SOAP

  • Fixed integer overflow when decoding SOAP array indexes.

SPL

  • Fix SplFixedArray::setSize leak when destructor grows during clear.
  • Fixed bug GH-21933 (use after free of self-freeing MultipleIterator children).

Standard

  • Fixed bug GH-21689 (version_compare() incorrectly handles versions ending with a dot).
  • Fixed ip2long() leading zeros handling inconsistency on AIX.