rfc:remove_alternative_php_tags
Differences
This shows you the differences between two versions of the page.
Next revision | Previous revisionNext revisionBoth sides next revision | ||
rfc:remove_alternative_php_tags [2014/09/09 21:32] – created nikic | rfc:remove_alternative_php_tags [2014/09/24 18:07] – nikic | ||
---|---|---|---|
Line 2: | Line 2: | ||
* Date: 2014-09-09 | * Date: 2014-09-09 | ||
* Author: Nikita Popov < | * Author: Nikita Popov < | ||
- | * Status: | + | * Status: |
* Targeting: PHP 7 | * Targeting: PHP 7 | ||
* Patch: https:// | * Patch: https:// | ||
Line 8: | Line 8: | ||
===== Proposal ===== | ===== Proposal ===== | ||
- | This RFC proposes the removal of ASP tags (''< | + | This RFC proposes the removal of ASP tags (''< |
The following syntactical elements are removed: | The following syntactical elements are removed: | ||
* ''< | * ''< | ||
- | * ''< | + | * ''< |
* '' | * '' | ||
- | * '' | + | * '' |
* '' | * '' | ||
The listed opening tags will no longer enter PHP mode and the listed closing tags will no longer leave PHP mode. | The listed opening tags will no longer enter PHP mode and the listed closing tags will no longer leave PHP mode. | ||
- | Additionally the '' | + | Additionally the '' |
+ | |||
+ | This RFC does //**not**// remove short opening tags (''<?'' | ||
+ | |||
+ | ===== Reasoning ===== | ||
+ | |||
+ | * The alternative PHP tags have never gained any significant degree of usage. Their usage has been discouraged since forever. | ||
+ | * The ASP tags depend on an ini directive and as such are non-portable. We generally try to move away from ini-dependent language behavior. With ASP tags removed, short open tags should be the last. | ||
+ | * ASP tags [[http:// | ||
+ | * Supporting different tags allows very weird mixing like '' | ||
+ | |||
+ | ===== Porting tool ===== | ||
+ | |||
+ | To simplify porting of legacy code using the alternative tags, a [[https:// | ||
+ | |||
+ | < | ||
+ | php -d asp_tags=1 portAlternativeTags.php dir/ | ||
+ | </ | ||
===== Vote ===== | ===== Vote ===== | ||
- | As this is a language change a 2/3 majority is required. | + | As this is a language change a 2/3 majority is required. |
+ | |||
+ | <doodle title=" | ||
+ | * Yes | ||
+ | * No | ||
+ | </ |
rfc/remove_alternative_php_tags.txt · Last modified: 2017/09/22 13:28 by 127.0.0.1