Re: [RFC] Deprecate Backtick Operator (V2)
| From: | Björn Larsson | Date: | Tue, 08 Oct 2019 08:26:13 +0000 |
| Subject: | Re: [RFC] Deprecate Backtick Operator (V2) | ||
| References: | 1 2 3 4 5 6 7 8 9 | Groups: | php.internals |
| Request: | Send a blank email to internals+get-107406@lists.php.net to get a copy of this message | ||
Den 2019-10-06 kl. 15:41, skrev Mark Randall:
On 06/10/2019 14:18, Reinis Rozitis wrote:not just for doing the coding work, but also testing. Assume we have legacy code that works perfectly, so what is then the benefit to upgrade unless it goes in together with other features? Motivating to get a small budget to fix this in small company is not obvious. The purity of PHP won't fly I think ;-) r//Björn LSince `` are used for literal strings (for poorly chosen reserved words as field, table names (which happens from time to time)) in MySQL (multiline) queries I doubt there is a simple way to distinguish and replace everything to exec().Hi, As the RFC states, there are already widely used tools available which can do this reliably: https://github.com/FriendsOfPHP/PHP-CS-Fixer backtick_to_shell_exec -- Mark Randall Even if there are good tools, there is a cost in doing the upgrade