From 3e51f8111687657da065a6c3fc2e612fc95b2924 Mon Sep 17 00:00:00 2001 From: jrfnl Date: Mon, 20 Oct 2025 04:10:34 +0200 Subject: [PATCH 1/2] PHP 8.5 | UPGRADING: fix entry about new grapheme $locale parameter 1. The `grapheme_levenshtein()` function is new to PHP 8.5, so the `$locale` parameter being added does not "change" the function (in the context of changes between PHP 8.4 and 8.5). 2. The `grapheme_substr()` function has also been given the new `$locale` parameter, but was not listed in the changelog entry. Refs: * https://wiki.php.net/rfc/grapheme_levenshtein * https://github.com/php/php-src/commit/bdcea111f30fee395d5830505df5de58598abb5e * https://wiki.php.net/rfc/grapheme_add_locale_for_case_insensitive * https://github.com/php/php-src/commit/ad75c260442d93dc0aeb6857407387d4f871b5d6 --- NEWS | 2 +- UPGRADING | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/NEWS b/NEWS index ac12a8098b71..03b312c4f930 100644 --- a/NEWS +++ b/NEWS @@ -213,7 +213,7 @@ PHP NEWS - Intl: . Added grapheme_strpos(), grapheme_stripos(), grapheme_strrpos(), - grapheme_strripos(), grapheme_strstr(), grapheme_stristr() and + grapheme_strripos(), grapheme_substr, grapheme_strstr(), grapheme_stristr() and grapheme_levenshtein() functions add $locale parameter (Yuya Hamada). . Fixed bug GH-11952 (Fix locale strings canonicalization for IntlDateFormatter and NumberFormatter). (alexandre-daubois) diff --git a/UPGRADING b/UPGRADING index e58d2875832f..b60c9b49d718 100644 --- a/UPGRADING +++ b/UPGRADING @@ -613,8 +613,8 @@ PHP 8.5 UPGRADE NOTES have dropped the false from the return type union. Returning false was actually never possible. . grapheme_strpos(), grapheme_stripos(), grapheme_strrpos(), - grapheme_strripos(), grapheme_strstr(), grapheme_stristr() and - grapheme_levenshtein() functions add $locale parameter. + grapheme_strripos(), grapheme_substr(), grapheme_strstr() + and grapheme_stristr() functions add $locale parameter. RFC: https://wiki.php.net/rfc/grapheme_add_locale_for_case_insensitive - LDAP: From 115e78d99cc05aae69d1f75b9aac354c9e5cf6b2 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Tim=20D=C3=BCsterhus?= Date: Mon, 20 Oct 2025 10:31:18 +0200 Subject: [PATCH 2/2] NEWS: Add missing parentheses after `grapheme_substr` Co-authored-by: tekimen --- NEWS | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/NEWS b/NEWS index 03b312c4f930..a0fd313f86a6 100644 --- a/NEWS +++ b/NEWS @@ -213,7 +213,7 @@ PHP NEWS - Intl: . Added grapheme_strpos(), grapheme_stripos(), grapheme_strrpos(), - grapheme_strripos(), grapheme_substr, grapheme_strstr(), grapheme_stristr() and + grapheme_strripos(), grapheme_substr(), grapheme_strstr(), grapheme_stristr() and grapheme_levenshtein() functions add $locale parameter (Yuya Hamada). . Fixed bug GH-11952 (Fix locale strings canonicalization for IntlDateFormatter and NumberFormatter). (alexandre-daubois)