PHP 8.5.0RC2: Downloads, Changelog, News

Release Information

Release
8.5.0RC2
PHP Version
PHP 8.5
Release Date
Release Type
Bug Fix Release
Release Status
QA Release Latest
Branch Status
Upcoming Release

PHP 8.5 is a development version, and is not recommended for production use. PHP 8.5 is scheduled to reach General Availability on 2025-11-20. This is the latest QA release in the series.

ChangeLog

Core

  • Fix OSS-Fuzz #447521098 (Fatal error during sccp shift eval).
  • Fixed bug GH-20002 (Broken build on *BSD with MSAN).
  • Fixed bug GH-19352 (Cross-compilation with musl C library).
  • Revert deprecation of __sleep() and __wakeup(). They're now soft-deprecated.

CLI

  • Fix useless "Failed to poll event" error logs due to EAGAIN in CLI server with PHP_CLI_SERVER_WORKERS.

BcMath

  • Fixed bug GH-20006 (Power of 0 of BcMath number causes UB).

Opcache

  • Fixed segfault in function JIT due to NAN to bool warning.
  • Fixed bug GH-19984 (Double-free of EG(errors)/persistent_script->warnings on persist of already persisted file).
  • Fixed bug GH-19889 (race condition in zend_runtime_jit(), zend_jit_hot_func()).

SOAP

  • Fixed bug GH-19773 (SIGSEGV due to uninitialized soap_globals->lang_en).

Standard

  • Fixed bug GH-19926 (reset internal pointer earlier while splicing array while COW violation flag is still set).

URI

  • Fixed Uri\WhatWg\Url::withPort() when an invalid value is passed.
  • Fixed Uri\WhatWg\Url::parse() when resolving a relative URL against a base URL with query or fragment.
  • Fixed normalization of paths starting with two slashes for Uri\Rfc3986\Uri.

Commit List

Alexandre Daubois

  • Fix GH-16319: protect fiber backtrace with null filename from crashing in GH-19973
  • Fix GH-19926: reset internal pointer earlier while splicing array while COW violation flag is still set in GH-19929
  • Fix misplaced entry in NEWS in 467e05b13a

Arnaud Le Blanc

  • Add Alpine push job in GH-20038
  • Fix race condition in zend_runtime_jit(), zend_jit_hot_func() in 359ad80c4a
  • Upgrade Alpine in nightly job in 66708de841

David Carlier

DubbleClick

  • Fix cross-compilation for musl C library in 2b8d8ba7c4

Gina Peter Banyard

  • opcache: Fix segfault in function JIT due to NAN to bool warning in GH-19947
  • Update NEWS in 84ec65c599

Guillaume Outters

  • Fix broken build on *BSD with MSAN in 26ca363a13

Ilija Tovilo

  • Fix fatal error during sccp shift eval in 16a8591f28
  • Fix double-free of EG(errors)/persistent_script->warnings on persist of already persisted file in bcd4be7d50
  • Automatically skip tty tests if not on tty in 831597748b
  • Fix flaky gh19984.phpt test in faa4c7f9e6
  • Skip mysqli_fetch_all_data_types_variation.phpt on PPC runner in 0e1addf8b5
  • Skip proc_open_multiplex.phpt on PPC runner in a48de0a057

Jakub Zelenka

  • Add stream filter convert.* tests in GH-19976
  • Fix GH-19248: Use strerror_r instead of strerror in main in b7fdfb7147
  • Do not use errno_t as it is not defined on musl in GH-20037
  • Prevent use after stack scope in stream strerr code in GH-20040

Leo Gaskin

  • Treat accept failing with SOCK_EAGAIN as success in CLI web server in 7e7d6d6380

Máté Kocsis

  • Fix Uri\WhatWg\Url::withPort() when an invalid value is passed in 43c3afeff7

Nicolas Grekas

  • Revert deprecation of __sleep and __wakeup in GH-19966

Niels Dossche

Remi Collet

Shivam Mathur

Theodore Brown

  • Fix typos and grammar in UPGRADING in d79baba77d

Tim Düsterhus

  • lexbor: Cherry pick "Core: Reset length in lexbor_str_destroy()" in 11ce662101
  • NEWS: Fix section order in c997212dbf
  • Include PHP-8.5 branch in .github/workflows/push.yml in 77af4780cc
  • CI: Do not save ccache for PRs for LINUX_X32 in db65d22ce2
  • gdbinit: Fix printing of variable names in print_cvs in GH-20077
  • Regenerate main/debug_gdb_scripts.c in 08924cd8c4
  • uri: Update to uriparser-0.9.9-21-g08df3b2 in GH-19992

Volker Dusch

Subscribe to PHP.Watch newsletter for monthly updates

You will receive an email on last Wednesday of every month and on major PHP releases with new articles related to PHP, upcoming changes, new features and what's changing in the language. No marketing emails, no selling of your contacts, no click-tracking, and one-click instant unsubscribe from any email you receive.