Re: [PHP-DEV] Remove alternative PHP tags
[email protected] (Andrea Faulds)
| Newsgroups | php.internals |
|---|---|
| Message-ID | <[email protected]> |
On 12 Sep 2014, at 19:08, Nikita Popov <[email protected]> wrote: > I have added a small script for porting prehistoric tags, see https://wiki.php.net/rfc/remove_alternative_php_tags#porting_tool That’s great! To clarify: This only works on 5.x where asp_tags is available, yes? > I am amenable to adding the asp_tags option to the http://lxr.php.net/xref/PHP_TRUNK/main/main.c#2339 list, which will trigger a fatal error on startup if it is enabled - that should make sure that anyone using those is aware of the problem (we can also add it to the deprecated list in 5.7, should we have such a release). Doesn't apply to <script> of course. That’d partly solve the problem. Perhaps we could make the lexer continue to lex <script> but throw an E_COMPILE_ERROR? Then I’d be happy. -- Andrea Faulds http://ajf.me/