Re: [RFC][DISCUSSION] Deprecate the backtick operator

From: Date: Mon, 12 Feb 2018 15:38:30 +0000
Subject: Re: [RFC][DISCUSSION] Deprecate the backtick operator
References: 1 2 3 4  Groups: php.internals 
Request: Send a blank email to internals+get-101843@lists.php.net to get a copy of this message
2018-02-12 15:38 GMT+01:00 Eli White <eli@eliw.com>: > I'll chime in on the "What evidence do you have that this is not > widely-used" ... in fact, I have seen through my PHP career this used very > regularly, and training/workshop/class sessions at conferences still > regularly teach this as the 'standard way' to handle shell commands. > > So I think that this would have a huge impact on existing code, and I am > similarly a huge -1. Is it funky that random backticks cause a shell > action to happen? Yes. But there are a million funky things about PHP, > and we strive for backward compatibility when at all possible. And there > is no direct gain/need to remove this feature. > > Eli Same thoughts here, -1 on deprecation. I prefer to use backticks over shell_exec() when writing code that does something simple. -- regards, Kalle Sommer Nielsen kalle@php.net

« previous php.internals (#101843) next »