rfc:deprecate-backtick-operator-v2
Differences
This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revisionNext revisionBoth sides next revision | ||
rfc:deprecate-backtick-operator-v2 [2019/10/04 15:34] – marandall | rfc:deprecate-backtick-operator-v2 [2019/10/31 15:34] – Opening vote marandall | ||
---|---|---|---|
Line 3: | Line 3: | ||
* Date: 2019-10-04 | * Date: 2019-10-04 | ||
* Author: Mark Randall, marandall@php.net | * Author: Mark Randall, marandall@php.net | ||
- | * Status: | + | * Status: |
* First Published at: | * First Published at: | ||
* Target: 8.0 | * Target: 8.0 | ||
Line 21: | Line 21: | ||
* Alternative functions exist which are more descriptive, | * Alternative functions exist which are more descriptive, | ||
- | * Backticks are visually easily confused with single quotes despite exhibiting radically different behaviour. | + | * Backticks are visually easily confused with double or single quotes despite exhibiting radically different behaviour. |
+ | |||
+ | * This different behaviour is not subtle, in effect, one parses a string, a fairly simple operation, backticks on the other hand pause execution and takes the control flow completely outside of the PHP environment, | ||
* It could be considered unintuitive that single quoted strings do not support variable substitution, | * It could be considered unintuitive that single quoted strings do not support variable substitution, | ||
- | * It could be considered unintuitive that backticks already rely on the security | + | * It could be considered unintuitive that backticks already rely on the safe-mode and disabled-function |
+ | * Certain language keyboards have no native key for backtick (An example provided by Girgias is the French AZERTY keyboard where you need to hold Alt GR + 7 + one or two Spacebar presses). | ||
+ | |||
+ | ===== Arguments Against ===== | ||
+ | |||
+ | * Backticks allow a combination of double-quotes and interpolation without needing to escape the double quotes. | ||
===== Backward Incompatible Changes ===== | ===== Backward Incompatible Changes ===== | ||
Line 33: | Line 40: | ||
Should the operator eventually be removed, there would be a BC break that would require code using it to be updated to reflect the alternative mechanisms documented in " | Should the operator eventually be removed, there would be a BC break that would require code using it to be updated to reflect the alternative mechanisms documented in " | ||
- | For most cases, this should be an easy upgrade route as there is a 1-to-1 replacement between `expression` and shell_exec(" | + | For most cases, this should be an easy upgrade route as there is a 1-to-1 replacement between `expression` and shell_exec(" |
===== Proposed PHP Version(s) ===== | ===== Proposed PHP Version(s) ===== | ||
Line 46: | Line 53: | ||
- | ===== Proposed Voting Choices | + | ===== Vote ===== |
- | Yes / No vote to deprecate the backtick operator | + | <doodle title=" |
+ | * Yes | ||
+ | * No | ||
+ | </ | ||
===== References ===== | ===== References ===== |
rfc/deprecate-backtick-operator-v2.txt · Last modified: 2019/11/15 12:20 by marandall