[php-src] master: [skip ci] Add several UPGRADING entries for performance improvements
Weilin Du <[email protected]>
| Newsgroups | gmane.comp.php.cvs.general |
|---|---|
| Message-ID | <[email protected]> |
Author: Weilin Du (LamentXU123)
Date: 2026-06-27T21:33:47+08:00
Commit: https://github.com/php/php-src/commit/9bc8b7eaf50021f3a4718ae456ec0e6ac4f7f261
Raw diff: https://github.com/php/php-src/commit/9bc8b7eaf50021f3a4718ae456ec0e6ac4f7f261.diff
[skip ci] Add several UPGRADING entries for performance improvements
Intl: PR #22069
URI: PR #21560
Zip: PR #21572
Changed paths:
M UPGRADING
Diff:
diff --git a/UPGRADING b/UPGRADING
index 0c5253267e39..27a095288d33 100644
--- a/UPGRADING
+++ b/UPGRADING
@@ -501,6 +501,9 @@ PHP 8.6 UPGRADE NOTES
when using PHP_JSON_PRETTY_PRINT.
- Intl:
+ . Improved performance of IntlCalendar::getAvailableLocales() and
+ IntlDateFormatter::localtime() / datefmt_localtime() by pre-allocating
+ their returned arrays.
. Improved performance of transliterator_list_ids() and
resourcebundle_locales() by pre-allocating their returned arrays.
@@ -518,10 +521,14 @@ PHP 8.6 UPGRADE NOTES
. Improved performance of str_split().
- URI:
+ . Improved performance of Uri\WhatWg\Url::parse() when collecting
+ validation errors by pre-allocating the error array.
. Reduced allocations when reading IPv6/IPFuture hosts and paths with
Uri\Rfc3986\Uri.
. Improved performance and memory consumption when using normalizing
(non-raw) getters on already-normalized URIs with Uri\Rfc3986\Uri.
- Zip:
+ . Improved performance of ZipArchive::addGlob() and
+ ZipArchive::addPattern() by pre-allocating their returned arrays.
. Avoid string copies in ZipArchive::addFromString().