Re: [RFC] [VOTE] Deprecate PHP's short open tags
| From: | Mark Randall | Date: | Wed, 24 Apr 2019 16:35:33 +0000 |
| Subject: | Re: [RFC] [VOTE] Deprecate PHP's short open tags | ||
| References: | 1 2 3 4 5 6 7 8 9 10 11 12 | Groups: | php.internals |
| Request: | Send a blank email to internals+get-105391@lists.php.net to get a copy of this message | ||
On 24/04/2019 17:14, Chase Peeler wrote:
I believe you may be misinterpreting how these tools work. It's not a text based find / replace. Instead, each PHP file is being fully tokenised just as the PHP parser would (in some cases, it is the PHP parser itself doing it) and then the short tags are being replaced, and the file reassembled. The only points you would have to be wary of would be if you were computer-generating code, as it would not pick up <? used inside string literals. -- Mark RandallAs I've mentioned in other posts, I don't trust this to do a blindfind/replace. Some of our legacy code files are REALLY bad. Just doing auto formatting on them in PhpStorm will break things.