Re: [RFC] Deprecations for PHP 8.1
| From: | Nikita Popov | Date: | Mon, 12 Apr 2021 13:06:22 +0000 |
| Subject: | Re: [RFC] Deprecations for PHP 8.1 | ||
| References: | 1 2 | Groups: | php.internals |
| Request: | Send a blank email to internals+get-114035@lists.php.net to get a copy of this message | ||
On Tue, Mar 23, 2021 at 10:44 PM Kalle Sommer Nielsen <kalle@php.net> wrote:
> Hi
>
> Den man. 22. mar. 2021 kl. 11.25 skrev Nikita Popov <nikita.ppv@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