rfc:counterargument:deprecate_php_short_tags
Differences
This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revision | Last revisionBoth sides next revision | ||
rfc:counterargument:deprecate_php_short_tags [2019/08/05 23:03] – zeev | rfc:counterargument:deprecate_php_short_tags [2019/08/05 23:08] – Add another reason to keep short tags zeev | ||
---|---|---|---|
Line 55: | Line 55: | ||
==== The Case For Keeping Short Tags ==== | ==== The Case For Keeping Short Tags ==== | ||
- | There are two main reasons for keeping short tags. | + | There are four main reasons for keeping short tags. |
=== Reason #1: There' | === Reason #1: There' | ||
Line 63: | Line 63: | ||
As the saying goes - "if ain't broke - don't fix it". | As the saying goes - "if ain't broke - don't fix it". | ||
- | === Reason #2: Removing short tags would bring needless headache to our users === | + | === Reason #2: Short tags are de-facto opt-in === |
+ | |||
+ | Even though short tags are enabled by default in most PHP binaries - in practice, they are disabled by default via configuration in virtually all mainstream PHP distributions. | ||
+ | |||
+ | === Reason #3: Removing short tags would bring needless headache to our users === | ||
For users of short tags, deprecating that syntax gives them a 100.0% needless headache. | For users of short tags, deprecating that syntax gives them a 100.0% needless headache. | ||
Line 69: | Line 73: | ||
Put yourself in the shoes of a user or company that has been using short tags for their internal projects for the last decade, and are now forced to spend time and money in order to run be able to run your app on PHP 8 - for **absolutely no gain**. | Put yourself in the shoes of a user or company that has been using short tags for their internal projects for the last decade, and are now forced to spend time and money in order to run be able to run your app on PHP 8 - for **absolutely no gain**. | ||
- | === Reason #3: Removing short tags would slow down migration to newer versions of PHP === | + | === Reason #4: Removing short tags would slow down migration to newer versions of PHP === |
PHP, like many other packages and languages - suffers from a long tail of users that are running on older versions for a variety of reasons. | PHP, like many other packages and languages - suffers from a long tail of users that are running on older versions for a variety of reasons. |
rfc/counterargument/deprecate_php_short_tags.txt · Last modified: 2019/08/05 23:09 by zeev