On Tue, Mar 23, 2021 at 10:44 PM Kalle Sommer Nielsen <ka...@php.net> wrote:
> Hi > > Den man. 22. mar. 2021 kl. 11.25 skrev Nikita Popov <nikita....@gmail.com > >: > > > > Hi internals, > > > > It's time for another deprecation RFC: > > https://wiki.php.net/rfc/deprecations_php_8_1 > > I'd like to suggest adding `nl_langinfo()` to the list of > deprecations, it is a non-cross platform oddity that make less sense > with the current deprecations of functions like `strptime()` (also > non-cross platform) and `strftime()`. Personally I have seen more code > in the wild use array derefencing on `localeconv()` (which is cross > platform) over using `nl_langinfo()` for a single category. > I'm not really familiar with either of those (first time I hear about them, in fact), but it looks to me like localeconv() only covers part of the nl_langinfo() functionality. At a glance, at least the whole LC_TIME part isn't covered. I'm somewhat leery of deprecating functionality where we don't have any other way to access the same information. Regards, Nikita