Home » Releases » 8.5 » 8.5.10 »

PHP 8.5.1

The latest release of PHP 8.5 is 8.5.10 which includes important security patches.

Source Code

  • PHP 8.5.1 (tar.gz)

    • sha256: 915492958081409a5e3ef99df969bcfa5b33bdf9517bd077991747e17fa2c1b7
  • PHP 8.5.1 (tar.bz2)

    • sha256: 55f428c426e7241752ea9afff160bb64c32a9321cbd6d17d1c145b8df8823737
  • PHP 8.5.1 (tar.xz)

    • sha256: 3f5bf99ce81201f526d25e288eddb2cfa111d068950d1e9a869530054ff98815

Change Log

  • core

    • Sync all boost.context files with release 1.86.0.
      mvorisek
    • Fixed bug GH-20435 (SensitiveParameter doesn't work for named argument passing to variadic parameter).
      ndossche
    • Fixed bug GH-20546 (preserve_none attribute configure check on macOs issue).
      David Carlier/cho-m
    • Fixed bug GH-20286 (use-after-destroy during userland stream_close()).
      ndossche
      David Carlier
  • bz2

    • Fix assertion failures resulting in crashes with stream filter object parameters.
      ndossche
  • dom

    • Fix memory leak when edge case is hit when registering xpath callback.
      ndossche
    • Fixed bug GH-20395 (querySelector and querySelectorAll requires elements in $selectors to be lowercase).
      ndossche
    • Fix missing NUL byte check on C14NFile().
      ndossche
  • fibers

    • Fixed bug GH-20483 (ASAN stack overflow with fiber.stack_size INI small value).
      David Carlier
  • intl

    • Fixed bug GH-20426 (Spoofchecker::setRestrictionLevel() error message suggests missing constants).
      DanielEScherzer
  • lexbor

    • Fixed bug GH-20501 (\Uri\WhatWg\Url lose host after calling withPath() or withQuery()).
      lexborisov
    • Fixed bug GH-20502 (\Uri\WhatWg\Url crashes (SEGV) when parsing malformed URL due to Lexbor memory corruption).
      lexborisov
  • libxml

    • Fix some deprecations on newer libxml versions regarding input buffer/parser handling.
      ndossche
  • mysqli

    • Make mysqli_begin_transaction() report errors properly.
      Kamil Tekiela
  • mysqlnd

    • Fixed bug GH-20528 (Regression breaks mysql connexion using an IPv6 address enclosed in square brackets).
      Remi
  • opcache

    • Fixed bug GH-20329 (opcache.file_cache broken with full interned string buffer).
      Arnaud
  • pdo

    • Fixed bug GH-20553 (PDO::FETCH_CLASSTYPE ignores $constructorArgs in PHP 8.5.0).
      Girgias
    • Fixed GHSA-8xr5-qppj-gvwj (PDO quoting result null deref). (CVE-2025-14180)
      Jakub Zelenka
  • phar

    • Fixed bug GH-20442 (Phar does not respect case-insensitiveness of __halt_compiler() when reading stub).
      ndossche
      TimWolla
    • Fix broken return value of fflush() for phar file entries.
      ndossche
    • Fix assertion failure when fseeking a phar file out of bounds.
      ndossche
  • phpdbg

    • Fixed ZPP type violation in phpdbg_get_executable() and phpdbg_end_oplog().
      Girgias
  • spl

    • Fixed bug GH-20614 (SplFixedArray incorrectly handles references in deserialization).
      ndossche
  • standard

    • Fix memory leak in array_diff() with custom type checks.
      ndossche
    • Fixed bug GH-20583 (Stack overflow in http_build_query via deep structures).
      ndossche
    • Fixed GHSA-www2-q4fc-65wf (Null byte termination in dns_get_record()).
      ndossche
    • Fixed GHSA-h96m-rvf9-jgm2 (Heap buffer overflow in array_merge()). (CVE-2025-14178)
      ndossche
    • Fixed GHSA-3237-qqm7-mfv7 (Information Leak of Memory in getimagesize). (CVE-2025-14177)
      ndossche
  • streams

    • Fixed bug GH-20370 (User stream filters could violate typed property constraints).
      alexandre-daubois
  • uri

    • Fixed bug GH-20366 (ext/uri incorrectly throws ValueError when encountering null byte).
      kocsismate
    • Fixed CVE-2025-67899 (uriparser through 0.9.9 allows unbounded recursion and stack consumption).
      Sebastian Pipping
  • xml

    • Fixed bug GH-20439 (xml_set_default_handler() does not properly handle special characters in attributes when passing data to callback).
      ndossche
  • zip

    • Fix crash in property existence test.
      ndossche
    • Don't truncate return value of zip_fread() with user sizes.
      ndossche
  • zlib

    • Fix assertion failures resulting in crashes with stream filter object parameters.
      ndossche

PHP 8.5


  Represents a security release