Re: [RFC] [VOTE] Deprecate PHP's short open tags
| From: | Nikita Popov | Date: | Mon, 17 Jun 2019 10:55:03 +0000 |
| Subject: | Re: [RFC] [VOTE] Deprecate PHP's short open tags | ||
| References: | 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 | Groups: | php.internals |
| Request: | Send a blank email to internals+get-105956@lists.php.net to get a copy of this message | ||
On Fri, May 24, 2019 at 6:53 PM Peter Kokot <peterkokot@gmail.com> wrote:
> Hello,
>
> On Sat, 11 May 2019 at 20:56, Peter Kokot <peterkokot@gmail.com> wrote:
> >
> > Not trying to rush anyone to something they have no energy working on
> > anymore here but what's the plan here then? And what plan is there
> > with these short tags on the long run?
>
> I'm just checking then why is this RFC in the pending implementation
> state if basically we're on a way to have the short opening tags in
> PHP for ever... Maybe we should then enable them by default to have
> the other way around situation of having both tags for few 10 years
> and then ditch the long one if it's not going to be deprecated in PHP
> 7.4 and decided what to do with them?
>
> https://wiki.php.net/rfc/deprecate_php_short_tags
>
Girgias has put up a new implementation at
https://github.com/php/php-src/pull/4263.
If short_open_tag=On and <? is used, a single deprecation warning is
thrown. short_open_tag=On remains the default, so there will be no
accidental code leakage due to changed defaults. If short_open_tag=Off,
then <? in the code are ignored as usual.
I believe that addresses the implementation concerns and we can go ahead
with landing this RFC.
Nikita