[php-src] Issue #19070: setlocale($type, NULL) shoud not be deprecated
| From: | remicollet | Date: | Tue, 08 Jul 2025 13:57:53 +0000 |
| Subject: | [php-src] Issue #19070: setlocale($type, NULL) shoud not be deprecated | ||
| Groups: | php.bugs | ||
| Request: | Send a blank email to php-bugs+get-250394@lists.php.net to get a copy of this message | ||
Issue: https://github.com/php/php-src/issues/19070
Author: remicollet
### Description
Since 43c18f3cfe33d5e06711a5b4a4464c7601527af6
A simple
setlocale(LC_ALL, NULL) raise a deprecation
This is the common way to retrieve the current locale (else we need a getlocale function)
From the setlocale unix man page
> If locale is NULL, the current locale is only queried, not modified.
Can you please consider removing this change
Ex: https://github.com/m6w6/ext-http/pull/148
### PHP Version
```plain
PHP 8.5.0alpha1
```
### Operating System
_No response_