Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:101843 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 45263 invoked from network); 12 Feb 2018 15:38:33 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 12 Feb 2018 15:38:33 -0000 Authentication-Results: pb1.pair.com smtp.mail=kalle.php@gmail.com; spf=pass; sender-id=pass Authentication-Results: pb1.pair.com header.from=kalle.php@gmail.com; sender-id=pass Received-SPF: pass (pb1.pair.com: domain gmail.com designates 209.85.218.44 as permitted sender) X-PHP-List-Original-Sender: kalle.php@gmail.com X-Host-Fingerprint: 209.85.218.44 mail-oi0-f44.google.com Received: from [209.85.218.44] ([209.85.218.44:40038] helo=mail-oi0-f44.google.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id 20/92-26725-9F4B18A5 for ; Mon, 12 Feb 2018 10:38:33 -0500 Received: by mail-oi0-f44.google.com with SMTP id 8so11445874oix.7 for ; Mon, 12 Feb 2018 07:38:33 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:sender:in-reply-to:references:from:date:message-id :subject:to:cc; bh=kdNPNZffcd1kae5e+WJBK4PkctmFsuELH2eCiBNqRMs=; b=JEpkqSrOh3u3q3hBtI0g7rO/JeOYyWrnsSUgcuJvKzWeMciUdg2dn0VE+rgczuIbPU zoghXGyrNISZ9hwlR64m5TqfVFCqCIi9PQT+t6Ct7JfdHyF7UohNUS6eBXbKwMXNo8Js jpVgUcpPF91D5Mho0v574CshXN1FXJkvIHYRSpcoAMojJG56Up4PbFk0PUkdn02rHhle z6nW86JOxQmZrYx55/j1kXbraHApcTa1chqigsBcmQ3MYDdHpr3Ln4XqfctDPWHsSg8l 7KWNBZDtxfMQBm3z9Zb87OPEDBZTVxjPTawDgfDOcdDxtzd6JfyBgEeYR+FccVJVzmUT yGJQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:sender:in-reply-to:references:from :date:message-id:subject:to:cc; bh=kdNPNZffcd1kae5e+WJBK4PkctmFsuELH2eCiBNqRMs=; b=F7WP5UvmFTTVqRWnGf+O/40H5TTilj8iV5qHHqYMDu0CJpvoXRUFIDS66xr1qvALTS WUyTl2SoeJu9H48VxAW0pwgNz6IM0Xv12YKTuzojpF1QBKCYQvdE8F5uEZezA2LYhQOL +3DpDfYC04D/bn0BcrY1uHsidbdyLhONYEKKi+PfAd94zWH+NJjOsYxiV71PQPRjl2sh WcBhV1encA/DpUmXPr5ydryQsrYtRO0iVKMqz/maTsKP4x7fWen0/SGuG1FOz8/DW91i 6gYpWXLJrthzwPiJN0FkhkznHTPXOK4H7+muGjC3hcbKxfjzS3bwr+1ICwt5k4xxqdcn nvrg== X-Gm-Message-State: APf1xPDBZpnMvbQzdkrLrgQVaZ1KFyu93jKSS3Y+gLYaNiMv00Eoi+iH epIn4ZWhBFi9Wgg2pJhgW5mHtkS85f7DkAOi0e0= X-Google-Smtp-Source: AH8x224Dr6ohj1/8oVt4oiDnJDo1i8ammMLRFBi14cUnZlagUSzquJCoZoc2VU0JldXuBN5negAIXJSY0RHn3RMm75Y= X-Received: by 10.84.67.130 with SMTP id u2mr8161217oiv.350.1518449910608; Mon, 12 Feb 2018 07:38:30 -0800 (PST) MIME-Version: 1.0 Sender: kalle.php@gmail.com Received: by 10.74.189.5 with HTTP; Mon, 12 Feb 2018 07:38:30 -0800 (PST) In-Reply-To: References: Date: Mon, 12 Feb 2018 16:38:30 +0100 X-Google-Sender-Auth: uy_9zMEZvXHIhFE1BPQpT3OUCD8 Message-ID: To: Eli White Cc: CHU Zhaowei , Andrey Andreev , Wes , PHP Internals Content-Type: text/plain; charset="UTF-8" Subject: Re: [PHP-DEV][RFC][DISCUSSION] Deprecate the backtick operator From: kalle@php.net (Kalle Sommer Nielsen) 2018-02-12 15:38 GMT+01:00 Eli White : > 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