rfc:deprecate-backtick-operator

This is an old revision of the document!


PHP RFC - Deprecate backtick operator

Introduction

The backtick operator (`dir D:\foo`) is used to execute commands via shell.

The same functionality is also available as shell_exec().

Proposal

This RFC proposes to deprecate 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 shady way to execute a rare and dangerous operation
  • because it is weirdly specific for 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

None.

Proposed PHP Version:

7.3

Voting

2/3 majority will be required.

References

rfc/deprecate-backtick-operator.1518379619.txt.gz · Last modified: 2018/02/11 20:06 by wesnetmo