Table of Contents

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 (by triggering one among E_DEPRECATED, E_STRICT or E_NOTICE) it in PHP 7.3 and suggest to use shell_exec() instead:

Backward Incompatible Changes

None, the feature will continue to work until it is removed in future PHP versions, but a notice will be emitted.

Proposed PHP Version:

7.3

Voting

2/3 majority will be required.

References

- Discussion on externals