On 17/9/21 7:15 pm, Kamil Tekiela wrote:
> +1 from me. I wasn't even aware that these functions are
> locale-dependent until recently. I see an added benefit that we could
> add them to the optimizer once they are no longer locale-dependent. 
> What would happen to users who really need the locale-dependent
> functions? Do we offer some workarounds?

We could add a global mode, although that would prevent constant
propagation, if that's what you mean by adding them to the optimizer.
Or we could add variant functions like locale_strtolower() and
locale_strtoupper(). But I think I would want to hear from someone who
uses locale-dependence so I can understand what their needs are. I
guess the RFC will sort that out.

-- Tim Starling

-- 
PHP Internals - PHP Runtime Development Mailing List
To unsubscribe, visit: https://www.php.net/unsub.php

Reply via email to