php8.5
← All releases
PHP 8.2 Thursday, 01 August 2024

PHP 8.2.22

26 changes across 16 components.

Core

  • Fixed bug GH-13922 (Fixed support for systems with sysconf(_SC_GETPW_R_SIZE_MAX) == -1).
  • Fixed bug GH-14626 (Fix is_zend_ptr() for huge blocks).
  • Fixed bug GH-14590 (Memory leak in FPM test gh13563-conf-bool-env.phpt.
  • Fixed OSS-Fuzz #69765.
  • Fixed bug GH-14741 (Segmentation fault in Zend/zend_types.h).
  • Fixed bug GH-14969 (Use-after-free in property coercion with __toString()).
  • Fixed bug GH-14961 (Comment between -> and keyword results in parse error).

Dom

  • Fixed bug GH-14702 (DOMDocument::xinclude() crash).

Gd

  • ext/gd/tests/gh10614.phpt: skip if no PNG support.
  • restored warning instead of fata error.

LibXML

  • Fixed bug GH-14563 (Build failure with libxml2 v2.13.0).

Opcache

  • Fixed bug GH-14550 (No warning message when Zend DTrace is enabled that opcache.jit is implictly disabled).

Output

  • Fixed bug GH-14808 (Unexpected null pointer in Zend/zend_string.h with empty output buffer).

PDO

  • Fixed bug GH-14712 (Crash with PDORow access to null property).

Phar

  • Fixed bug GH-14603 (null string from zip entry).

PHPDBG

  • Fixed bug GH-14596 (crashes with ASAN and ZEND_RC_DEBUG=1).
  • Fixed bug GH-14553 (echo output trimmed at NULL byte).

Shmop

  • Fixed bug GH-14537 (shmop Windows 11 crashes the process).

SimpleXML

  • Fixed bug GH-14638 (null dereference after XML parsing failure).

SPL

  • Fixed bug GH-14639 (Member access within null pointer in ext/spl/spl_observer.c).

Standard

  • Fix 32-bit wordwrap test failures.
  • Fixed bug GH-14774 (time_sleep_until overflow).

Tidy

  • Fix memory leak in tidy_repair_file().

Treewide

  • Fix compatibility with libxml2 2.13.2.

XML

  • Move away from to-be-deprecated libxml fields.
  • Fixed bug GH-14834 (Error installing PHP when --with-pear is used).