rfc:deprecate_php_short_tags
Differences
This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
rfc:deprecate_php_short_tags [2019/03/22 17:08] – girgias | rfc:deprecate_php_short_tags [2019/08/06 17:37] (current) – Change status to obsolete girgias | ||
---|---|---|---|
Line 1: | Line 1: | ||
- | ====== PHP RFC: Deprecate PHP Short tags ====== | + | ====== PHP RFC: Deprecate PHP Short open tags ====== |
* Version: 0.1 | * Version: 0.1 | ||
* Date: 2019-03-20 | * Date: 2019-03-20 | ||
* Author: George Peter Banyard, < | * Author: George Peter Banyard, < | ||
- | * Status: | + | * Status: |
+ | * Target Version: PHP 7.4 | ||
+ | * Implementation: | ||
* First Published at: http:// | * First Published at: http:// | ||
===== Introduction ===== | ===== Introduction ===== | ||
- | PHP has provided over the years different ways to indicate the beginning of PHP code other than the standard < | + | PHP has provided over the years different ways to indicate the beginning of PHP code other than the standard < |
===== Proposal ===== | ===== Proposal ===== | ||
- | Deprecate and disable < | + | Deprecate and disable < |
===== Reasoning ===== | ===== Reasoning ===== | ||
- | * The PHP [[https://secure.php.net/ | + | * The PHP [[https:// |
- | * PHP short open tags clash with XML ''<? | + | * PHP' |
- | * PHP short open tags depend on an INI directive and as such are non-portable. | + | * PHP' |
+ | * As such source code may leak if PHP relying on the short open tags is executed on a configuration where this isn't enabled. | ||
+ | * PHP's parser simplification. | ||
===== Backward Incompatible Changes ===== | ===== Backward Incompatible Changes ===== | ||
- | Every script which currently uses the discouraged short < | + | Every script which currently uses the discouraged short < |
+ | This can be automatically achieved by using the ''" | ||
===== Proposed PHP Version(s) ===== | ===== Proposed PHP Version(s) ===== | ||
- | Deprecation notice and default value changed to Off in PHP 7.4 and removal in PHP 8.0 | + | Deprecation notice and default value changed to Off in PHP 7.4 and removal in PHP 8.0. |
===== RFC Impact ===== | ===== RFC Impact ===== | ||
==== To SAPIs ==== | ==== To SAPIs ==== | ||
- | None to my understanding. | + | None. |
==== To Existing Extensions ==== | ==== To Existing Extensions ==== | ||
- | None to my understanding. | + | Readline and Tokenizer have been updated in the implementations patches. |
==== To Opcache ==== | ==== To Opcache ==== | ||
Line 36: | Line 41: | ||
==== php.ini Defaults ==== | ==== php.ini Defaults ==== | ||
- | Change < | + | Change < |
===== Unaffected PHP Functionality ===== | ===== Unaffected PHP Functionality ===== | ||
The < | The < | ||
+ | |||
+ | ===== Feedback ===== | ||
+ | Facebook poll ((https:// | ||
===== Proposed Voting Choices ===== | ===== Proposed Voting Choices ===== | ||
- | As with all new RFCs this proposal requires a 2/3 majority | + | Yes/No for boths votes. |
===== Vote ===== | ===== Vote ===== | ||
- | <doodle title=" | + | Primary vote: Deprecate PHP's short open tags in PHP 7.4.\\ |
+ | Requires a 2/3 majority. | ||
+ | |||
+ | Secondary vote: Remove PHP's short open tags in PHP 8.0.\\ | ||
+ | Requires a 2/3 majority. | ||
+ | |||
+ | Voting started on 2019-04-10 at 10:40 UTC and ran until 2019-04-24 11:20 UTC (for two (2) weeks) | ||
+ | |||
+ | <doodle title=" | ||
* Yes | * Yes | ||
* No | * No | ||
</ | </ | ||
- | <doodle title=" | + | <doodle title=" |
* Yes | * Yes | ||
* No | * No | ||
Line 57: | Line 73: | ||
===== Patches and Tests ===== | ===== Patches and Tests ===== | ||
https:// | https:// | ||
- | https:// | + | https:// |
- | TBD Documentation patch | + | TBD Documentation patch\\ |
===== Implementation ===== | ===== Implementation ===== | ||
Line 68: | Line 84: | ||
===== References ===== | ===== References ===== | ||
- | [[https:// | + | [[https:// |
+ | [[https:// | ||
+ | [[https:// |
rfc/deprecate_php_short_tags.txt · Last modified: 2019/08/06 17:37 by girgias