Re: [RFC] [VOTE] Deprecate PHP's short open tags
| From: | Theodore Brown | Date: | Tue, 16 Jul 2019 21:00:12 +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-106224@lists.php.net to get a copy of this message | ||
Seems good to me.
Short tags have long presented a risk of code leakage and lack of portability, since they are
dependent on an ini setting which not everyone has enabled.
Hopefully this can land in time for PHP 7.4.
________________________________
From: Nikita Popov <nikita.ppv@gmail.com>
Sent: Monday, June 17, 2019 5:55 AM
To: Peter Kokot
Cc: Zeev Suraski; G. P. B.; Stanislav Malyshev; Derick Rethans; PHP Internals List
Subject: Re: [PHP-DEV] [RFC] [VOTE] Deprecate PHP's short open tags
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