rfc:deprecate_php_short_tags

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
Next revision
Previous revision
rfc:deprecate_php_short_tags [2019/04/09 08:30] girgiasrfc:deprecate_php_short_tags [2019/08/06 17:37] (current) – Change status to obsolete girgias
Line 3: Line 3:
   * Date: 2019-03-20   * Date: 2019-03-20
   * Author: George Peter Banyard, <girgias@php.net>   * Author: George Peter Banyard, <girgias@php.net>
-  * Status: Under Discussion+  * Status: Accepted on 2019-04-24, rendered obsolete by [[rfc:deprecate_php_short_tags_v2|PHP RFC: Deprecate short open tags, again]] on 2019-07-23 
 +  * Target Version: PHP 7.4 
 +  * Implementation: https://github.com/php/php-src/pull/3972
   * First Published at: http://wiki.php.net/rfc/deprecate_php_short_tags   * First Published at: http://wiki.php.net/rfc/deprecate_php_short_tags
  
Line 11: Line 13:
  
 ===== Proposal ===== ===== Proposal =====
-Deprecate and disable <php>short_open_tag</php> in PHP 7.4 and remove PHP short open tags in PHP 8.0.+Deprecate and disable <php>short_open_tag</php> in PHP 7.4 and remove PHP'short open tags in PHP 8.0.
  
 ===== Reasoning ===== ===== Reasoning =====
  
-  * The PHP [[https://secure.php.net/manual/en/language.basic-syntax.phptags.php|documentation]] discourages their usage. +  * The PHP [[https://php.net/manual/en/language.basic-syntax.phptags.php|documentation]] discourages their usage. 
-  * PHP short open tags clash with XML ''<?xml ?>'' and can mean two different things depending on the INI configuration. +  * PHP'short open tags clash with XML ''<?xml ?>'' and can mean two different things depending on the INI configuration. 
-  * PHP short open tags depend on an INI directive and as such are non-portable.+  * PHP'short open tags depend on an INI directive and as such are non-portable.
   * As such source code may leak if PHP relying on the short open tags is executed on a configuration where this isn't enabled.   * 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 =====
Line 55: Line 58:
 Secondary vote: Remove PHP's short open tags in PHP 8.0.\\ Secondary vote: Remove PHP's short open tags in PHP 8.0.\\
 Requires a 2/3 majority. 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="Deprecate PHP short open tags in PHP 7.4?" auth="girgias" voteType="single" closed="true"> <doodle title="Deprecate PHP short open tags in PHP 7.4?" auth="girgias" voteType="single" closed="true">
Line 69: Line 74:
 https://github.com/php/php-src/pull/3972 PHP 7.4 Deprecation Notice Implementation\\ https://github.com/php/php-src/pull/3972 PHP 7.4 Deprecation Notice Implementation\\
 https://github.com/php/php-src/pull/3975 PHP 8.0 Removal Implementation\\ https://github.com/php/php-src/pull/3975 PHP 8.0 Removal Implementation\\
-TBD Documentation patch+TBD Documentation patch\\
  
 ===== Implementation ===== ===== Implementation =====
Line 80: Line 85:
 ===== References ===== ===== References =====
 [[https://externals.io/message/104662|Initial feedback on Internals (link to External.io)]]\\ [[https://externals.io/message/104662|Initial feedback on Internals (link to External.io)]]\\
-[[https://externals.io/message/104922|RFC Announcement on Internals (link to External.io)]]+[[https://externals.io/message/104922|RFC Announcement on Internals (link to External.io)]]\\ 
 +[[https://externals.io/message/105201|RFC Vote Announcement on Internals (link to External.io)]]\\
rfc/deprecate_php_short_tags.1554798635.txt.gz · Last modified: 2019/04/09 08:30 by girgias