rfc:deprecate-backtick-operator

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-backtick-operator [2018/02/11 19:45] wesnetmorfc:deprecate-backtick-operator [2018/02/11 20:59] (current) wesnetmo
Line 9: Line 9:
 ===== Introduction ===== ===== Introduction =====
  
-The backtick operator (''`dir D:\foo`'') is used to execute commands via shell. The same functionality is also available as ''shell_exec()''.+The backtick operator (''`dir D:\foo`'') is used to execute commands via shell. 
 + 
 +The same functionality is also available as ''shell_exec()''.
  
 ===== Proposal ===== ===== Proposal =====
  
-This RFC proposes to deprecate it in PHP 7.3 and suggest to use ''shell_exec()'' insteadin case PHP decided in future to use backtick enclosed strings for Unicode strings.+This RFC proposes to deprecate (by triggering one among E_DEPRECATED, E_STRICT or E_NOTICE) it in PHP 7.3 and suggest to use ''shell_exec()'' instead
 + 
 +  * in case PHP decided in future to use backtick enclosed strings for Unicode strings 
 +  * because it is a shady way to execute a rare and dangerous operation 
 +  * because it is weirdly specific to a rare operation; regexp literals, xml-strings literals are way more common use cases, but they don't have a specific string literal
  
 ===== Backward Incompatible Changes ===== ===== Backward Incompatible Changes =====
  
-None.+None, the feature will continue to work until it is removed in future PHP versions, but a notice will be emitted.
  
 ===== Proposed PHP Version: ===== ===== Proposed PHP Version: =====
rfc/deprecate-backtick-operator.1518378351.txt.gz · Last modified: 2018/02/11 19:45 by wesnetmo