From d87b8188c777d77365d6a4eae7f313ca5660ae5e Mon Sep 17 00:00:00 2001 From: Daniel Scherzer Date: Thu, 20 Nov 2025 16:37:31 +0200 Subject: [PATCH 1/3] Announce PHP 8.5.0 --- ChangeLog-8.php | 492 ++++++++++++++++++++++++++++++- archive/archive.xml | 1 + archive/entries/2025-11-20-3.xml | 35 +++ include/release-qa.php | 8 +- include/version.inc | 14 + releases/8_5_0.php | 30 ++ 6 files changed, 575 insertions(+), 5 deletions(-) create mode 100644 archive/entries/2025-11-20-3.xml create mode 100644 releases/8_5_0.php diff --git a/ChangeLog-8.php b/ChangeLog-8.php index 075068b6b8..6e6db6dc18 100644 --- a/ChangeLog-8.php +++ b/ChangeLog-8.php @@ -3,10 +3,500 @@ include_once __DIR__ . '/include/prepend.inc'; include_once __DIR__ . '/include/changelogs.inc'; -$MINOR_VERSIONS = ['8.4', '8.3', '8.2', '8.1', '8.0']; +$MINOR_VERSIONS = ['8.5', '8.4', '8.3', '8.2', '8.1', '8.0']; changelog_header(8, $MINOR_VERSIONS); ?> + + +
+

Version 8.5.0

+ + +
+ + +
diff --git a/archive/archive.xml b/archive/archive.xml index 547fde4396..6a43da71f5 100644 --- a/archive/archive.xml +++ b/archive/archive.xml @@ -9,6 +9,7 @@ http://php.net/contact php-webmaster@lists.php.net + diff --git a/archive/entries/2025-11-20-3.xml b/archive/entries/2025-11-20-3.xml new file mode 100644 index 0000000000..1c0d7c1469 --- /dev/null +++ b/archive/entries/2025-11-20-3.xml @@ -0,0 +1,35 @@ + + + PHP 8.5.0 Released! + https://www.php.net/archive/2025.php#2025-11-20-3 + 2025-11-20T14:20:19+00:00 + 2025-11-20T14:20:19+00:00 + + + + + +

The PHP development team announces the immediate availability of PHP 8.5.0. This release marks the latest minor release of the PHP language.

+ +

PHP 8.5 comes with numerous improvements and new features such as:

+
    +
  • New "URI" extension
  • +
  • New pipe operator (|>)
  • +
  • Clone With
  • +
  • New #[\NoDiscard] attribute
  • +
  • Support for closures, casts, and first class callables in constant expressions
  • +
  • And much much more...
  • +
+

+ For source downloads of PHP 8.5.0 please visit our downloads page, + Windows source and binaries can be found on windows.php.net/download/. + The list of changes is recorded in the ChangeLog. +

+

+ The migration guide is available in the PHP Manual. + Please consult it for the detailed list of new features and backward incompatible changes. +

+

Kudos to all the contributors and supporters!

+
+
+
diff --git a/include/release-qa.php b/include/release-qa.php index c49614c776..cc43f45b1d 100644 --- a/include/release-qa.php +++ b/include/release-qa.php @@ -101,10 +101,10 @@ 'active' => true, 'release' => [ 'type' => 'RC', - 'number' => 5, - 'sha256_bz2' => '0d5f8b55a0f5350c55526e34372037348e0bc959d14d7f8e25d7b3237be2fc63', - 'sha256_gz' => 'c57233825070238a00dee8712487b4859fa35f597e3c365adddfad13578ffb87', - 'sha256_xz' => '4964cdbaf2447afba100c4199ec9c59c41ca4cc23db8d1e38ac7e57aab028954', + 'number' => 0, + 'sha256_bz2' => '', + 'sha256_gz' => '', + 'sha256_xz' => '', 'date' => '13 Nov 2025', 'baseurl' => 'https://downloads.php.net/~daniels/', ], diff --git a/include/version.inc b/include/version.inc index 14942e4179..08ddd87f21 100644 --- a/include/version.inc +++ b/include/version.inc @@ -18,6 +18,20 @@ $RELEASES = (function () { $data = []; + /* PHP 8.5 Release */ + $data['8.5'] = [ + 'version' => '8.5.0', + 'date' => '20 Nov 2025', + 'tags' => [''], // Set to ['security'] for security releases. + 'sha256' => [ + // WARNING: Order of SHA256 entries here is DIFFERENT from the + // order in the manifest + 'tar.gz' => 'dc3651369c9b63320dd4ea8e272c6a23f18e50f67c13d10ee368c86961dbd10f', + 'tar.bz2' => 'cd16cb045b34a6cec6a83008e1b335f365c7a832fcc483df82308664c6d021f9', + 'tar.xz' => '39cb6e4acd679b574d3d3276f148213e935fc25f90403eb84fb1b836a806ef1e', + ] + ]; + /* PHP 8.4 Release */ $data['8.4'] = [ 'version' => '8.4.15', diff --git a/releases/8_5_0.php b/releases/8_5_0.php new file mode 100644 index 0000000000..eee873f794 --- /dev/null +++ b/releases/8_5_0.php @@ -0,0 +1,30 @@ + +

PHP 8.5.0 Release Announcement

+ +

The PHP development team announces the immediate availability of PHP 8.5.0. This release marks the latest minor release of the PHP language.

+ +

PHP 8.5 comes with numerous improvements and new features such as:

+
    +
  • New "URI" extension
  • +
  • New pipe operator (|>)
  • +
  • Clone With
  • +
  • New #[\NoDiscard] attribute
  • +
  • Support for closures, casts, and first class callables in constant expressions
  • +
  • And much much more...
  • +
+

+ For source downloads of PHP 8.5.0 please visit our downloads page, + Windows source and binaries can be found on windows.php.net/download/. + The list of changes is recorded in the ChangeLog. +

+

+ The migration guide is available in the PHP Manual. + Please consult it for the detailed list of new features and backward incompatible changes. +

+

Kudos to all the contributors and supporters!

+ + Date: Thu, 20 Nov 2025 17:48:44 +0200 Subject: [PATCH 2/3] DelayedTargetValidation changelog --- ChangeLog-8.php | 1 + 1 file changed, 1 insertion(+) diff --git a/ChangeLog-8.php b/ChangeLog-8.php index 6e6db6dc18..aa98403404 100644 --- a/ChangeLog-8.php +++ b/ChangeLog-8.php @@ -19,6 +19,7 @@
  • Added get_error_handler(), get_exception_handler() functions.
  • Added support for casts in constant expressions.
  • Added the pipe (|>) operator.
  • +
  • Added the #[\DelayedTargetValidation] attribute to delay target errors for internal attributes from compile time to runtime.
  • Added support for `final` with constructor property promotion.
  • Added support for configuring the URI parser for the FTP/FTPS as well as the SSL/TLS stream wrappers as described in https://wiki.php.net/rfc/url_parsing_api#plugability.
  • Added PHP_BUILD_PROVIDER constant.
  • From 8fad1f098b4cf2374cca36a4271b9412fe18bea8 Mon Sep 17 00:00:00 2001 From: Daniel Scherzer Date: Thu, 20 Nov 2025 18:46:35 +0200 Subject: [PATCH 3/3] URI --- ChangeLog-8.php | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/ChangeLog-8.php b/ChangeLog-8.php index aa98403404..b08e88cb89 100644 --- a/ChangeLog-8.php +++ b/ChangeLog-8.php @@ -11090,6 +11090,10 @@
    • (PhpToken::getAll() confusing name).
    +
  • URI: +
      +
    • Add new URI extension.
    • +
  • XML:
    • (xml_parser_free() should never leak memory).