Re: [RFC] [VOTE] Deprecate PHP's short open tags
| From: | Benjamin Morel | Date: | Sun, 28 Apr 2019 11:52:48 +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-105480@lists.php.net to get a copy of this message | ||
> I don't even mind still having a compile error in PHP 8 when it sees the
token
I don't have a vote so these are just my 2 cents, but even though I'm all
for removing short open tags entirely, I think that this solution is
excellent for 2 reasons:
- it solves the code leak issue when upgrading blindly from PHP 7 to PHP 8,
and still makes short open tags effectively unusable on PHP 8; it can
therefore make everyone confident that they can then be removed in PHP 9,
as the odds of someone upgrading blindly from PHP 7 to PHP 9 are almost
nonexistent
- it allows tools that automatically convert short open tags to standard
open tags to actually work on PHP 8. Because if I'm not mistaken, if these
tools are based on token_get_all() and "<?" is not recognized as a token
anymore in PHP 8, these tools would stop working on PHP 8.
Ben