Re: [RFC] Deprecate and remove case-insensitive constants
| From: | Nikita Popov | Date: | Wed, 04 Jul 2018 20:36:08 +0000 |
| Subject: | Re: [RFC] Deprecate and remove case-insensitive constants | ||
| References: | 1 | Groups: | php.internals |
| Request: | Send a blank email to internals+get-102586@lists.php.net to get a copy of this message | ||
On Sun, Jun 24, 2018 at 1:18 PM, Nikita Popov <nikita.ppv@gmail.com> wrote:
> Hi internals,
>
> I'd like to propose the deprecation (in PHP 7.3) and removal (in PHP 8) of
> case-insensitive constants:
>
> https://wiki.php.net/rfc/case_insensitive_constant_deprecation
>
> This was already discussed some time ago on the list, though that
> discussion degenerated into unfortunate directions. I'd very much
> appreciate if we could keep discussions on making PHP fully case-sensitive
> or fully case-insensitive outside of this thread. (Feel free to open a new
> one though.)
>
> The main point I'd like to have feedback on is the handling of true, false
> and null, as I'm not sure what the best approach regarding that is.
>
> Regards,
> Nikita
>
Based on the received feedback, the RFC now specifies that true/false/null
will become reserved keywords rather than special-cased constants in PHP 8.
Should we run into some unexpected BC issues while doing that, we can
reconsider adding some special checks to mitigate impact.
Nikita