php8.5
← All releases
PHP 8.2 Thursday, 31 August 2023

PHP 8.2.10

30 changes across 11 components.

CLI

  • Fixed bug GH-11716 (cli server crashes on SIGINT when compiled with ZEND_RC_DEBUG=1).
  • Fixed bug GH-10964 (Improve man page about the built-in server).

Date

  • Fixed bug GH-11416 (Crash with DatePeriod when uninitialised objects are passed in).

Core

  • Fixed strerror_r detection at configuration time.
  • Fixed trait typed properties using a DNF type not being correctly bound.
  • Fixed trait property types not being arena allocated if copied from an internal trait.
  • Fixed deep copy of property DNF type during lazy class load.
  • Fixed memory freeing of DNF types for non arena allocated types.

DOM

  • Fix DOMEntity field getter bugs.
  • Fix incorrect attribute existence check in DOMElement::setAttributeNodeNS.
  • Fix DOMCharacterData::replaceWith() with itself.
  • Fix empty argument cases for DOMParentNode methods.
  • Fixed bug GH-11791 (Wrong default value of DOMDocument::xmlStandalone).
  • Fix json_encode result on DOMDocument.
  • Fix manually calling __construct() on DOM classes.
  • Fixed bug GH-11830 (ParentNode methods should perform their checks upfront).
  • Fix viable next sibling search for replaceWith.
  • Fix segfault when DOMParentNode::prepend() is called when the child disappears.

FFI

  • Fix leaking definitions when using FFI::cdef()->new(...).

Hash

  • Fix use-of-uninitialized-value in hash_pbkdf2(), fix missing $options parameter in signature.

MySQLnd

  • Fixed bug GH-11440 (authentication to a sha256_password account fails over SSL).
  • Fixed bug GH-11438 (mysqlnd fails to authenticate with sha256_password accounts using passwords longer than 19 characters).
  • Fixed bug GH-11550 (MySQL Statement has a empty query result when the response field has changed, also Segmentation fault).
  • Fixed invalid error message "Malformed packet" when connection is dropped.

Opcache

  • Fixed bug GH-11715 (opcache.interned_strings_buffer either has no effect or opcache_get_status() / phpinfo() is wrong).
  • Avoid adding an unnecessary read-lock when loading script from shm if restart is in progress.

PCNTL

  • Revert behaviour of receiving SIGCHLD signals back to the behaviour before 8.1.22.

SPL

  • Fixed bug #81992 (SplFixedArray::setSize() causes use-after-free).

Standard

  • Prevent int overflow on $decimals in number_format.
  • Fixed bug GH-11870 (Fix off-by-one bug when truncating tempnam prefix) (athos-ribeiro)