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
Last revisionBoth sides next revision
rfc:deprecate-backtick-operator [2018/02/11 19:38] wesnetmorfc:deprecate-backtick-operator [2018/02/11 20:19] 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 (E_DEPRECATED) 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: =====
Line 29: Line 35:
 ===== References ===== ===== References =====
  
-- [[https://externals.io/message/101745|Discussion on externals]]+- [[https://externals.io/message/101823|Discussion on externals]]
rfc/deprecate-backtick-operator.txt · Last modified: 2018/02/11 20:59 by wesnetmo