Re: [DISCUSSION] grapheme_* functions adds locale in parameter (or any?)
| From: | Claude Pache | Date: | Thu, 05 Jun 2025 15:32:26 +0000 |
| Subject: | Re: [DISCUSSION] grapheme_* functions adds locale in parameter (or any?) | ||
| References: | 1 2 3 | Groups: | php.internals |
| Request: | Send a blank email to internals+get-127612@lists.php.net to get a copy of this message | ||
>
> However, I watched that RFC:
> https://wiki.php.net/rfc/strtolower-ascii
> and https://github.com/php/php-src/pull/7511,
> Perhaps, I should not locale-dependant for grapheme functions.
Note that this RFC was about making the functions independent from the global mode as set by
setlocale().
There is no issue in adding an explicit $locale parameter to those functions if the default value
doesn’t depend on a global state.
—Claude