====== PHP RFC: Deprecate short open tags, again ====== * Date: 2019-07-23 * Author: George Peter Banyard , Nikita Popov * Status: Declined * Target version: PHP 7.4 * Implementation: https://github.com/php/php-src/pull/4263 * Counterargument: https://wiki.php.net/rfc/counterargument/deprecate_php_short_tags
This RFC has been granted an exemption to land in PHP 7.4 after feature freeze by the release managers for PHP 7.4 Derick Rethans and Peter Kokot
===== Introduction ===== In addition to '''' and XML processing instructions ''''. This means that the use of XML in template files is also non-portable: If deployed in an environment with ''short_open_tag=1'', it will cause a syntax error. (Technically a processing instruction could also coincide with valid PHP code and be executed as such, but this is unlikely.) ==== Deprecation and removal proposal ==== In PHP 7.4 ''short_open_tag'' remains enabled by default: Changing the default could result in code leaks during upgrades, if people rely on the default value rather than explicitly enabling them. Instead: * If ''short_open_tag'' is enabled //and// '' * Yes * No ===== References ===== [[https://externals.io/message/106384|Version 2 (this one) RFC Vote Announcement on Internals (link to External.io)]]\\ [[https://wiki.php.net/rfc/counterargument/deprecate_php_short_tags|Counter arguments to this RFC]]\\ [[https://externals.io/message/106256|Version 2 (this one) RFC Announcement on Internals (link to External.io)]]\\ [[https://externals.io/message/105201|Version 1 of RFC Vote Announcement on Internals (link to External.io)]]\\ [[https://externals.io/message/104922|Version 1 of RFC Announcement on Internals (link to External.io)]]\\ [[https://externals.io/message/104662|Initial feedback on Internals (link to External.io)]]\\