Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:107377 Return-Path: Delivered-To: mailing list internals@lists.php.net Received: (qmail 28191 invoked from network); 5 Oct 2019 19:07:03 -0000 Received: from unknown (HELO php-smtp3.php.net) (208.43.231.12) by pb1.pair.com with SMTP; 5 Oct 2019 19:07:03 -0000 Received: from php-smtp3.php.net (localhost [127.0.0.1]) by php-smtp3.php.net (Postfix) with ESMTP id D1ED12C050F for ; Sat, 5 Oct 2019 09:48:44 -0700 (PDT) X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on php-smtp3.php.net X-Spam-Level: * X-Spam-Status: No, score=1.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,FAKE_REPLY_A1,SPF_HELO_NONE autolearn=no autolearn_force=no version=3.4.2 X-Spam-ASN: X-Spam-Virus: No Received: from michael01.phpgangsta.de (michael01.phpgangsta.de [IPv6:2a0a:51c0:0:6d::173]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by php-smtp3.php.net (Postfix) with ESMTPS for ; Sat, 5 Oct 2019 09:48:44 -0700 (PDT) Received: from [192.168.2.24] (dslc-082-082-226-019.pools.arcor-ip.net [82.82.226.19]) by michael01.phpgangsta.de (Postfix) with ESMTPSA id B22DE6C019F for ; Sat, 5 Oct 2019 18:48:41 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=phpgangsta.de; s=mail201210; t=1570294122; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=OH3oQTx+ga+RKDtDD04YuiymNZdGPKUqrBXA+ONdZys=; b=Ug76cJT3aBgUVTrDnjInUHCnM9BocSVrgaX+A/WmmFTeASPIq2mBpRElTeB6ZZYsWEOvGR fn/7JI+ckhlD3UxPLOlollot/oY3nD5E0n6eycVj3WHcMZeUDHYQsns/Gq4xCuOGJMS2HV ITq0vxmxaW5fNi7vTDWBWrt1THnQPT0= To: internals@lists.php.net Message-ID: Date: Sat, 5 Oct 2019 18:48:40 +0200 User-Agent: Mozilla/5.0 (Windows NT 10.0; WOW64; rv:60.0) Gecko/20100101 Thunderbird/60.9.0 MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 7bit ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=phpgangsta.de; s=mail201210; t=1570294122; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=OH3oQTx+ga+RKDtDD04YuiymNZdGPKUqrBXA+ONdZys=; b=KmbL3fQovcn2bB8ywszkmiVXuih3qNRx0i2a3ICwmHEvBY1LaUOQZoWam3Ubj/qFgWLpDl J7jy93SAgUxPYNJKtcjCAEC1tP4ZFsrXIDUflfaqcj0J6H+JiubXB40Coy/pOsZZyGjUJN +UK4FxnvN+RiDlzlSoDVS3wYKaedUo0= ARC-Seal: i=1; s=mail201210; d=phpgangsta.de; t=1570294122; a=rsa-sha256; cv=none; b=RTxiifajxLx669OKFP757nvdOjZ6ZA0zYDKUThY3gwoRspE9H6sUzLyLuXoR44EA3c/O2K CFxEFuctXcR4RSwOGhrp8YPRK/mi27z023uuUq51MIfETpcZIqTzUkbwRPhYGiYKDCE1fz t7I09VTS+rSLGuHUFa54dPbXMr9AlI8= ARC-Authentication-Results: i=1; ORIGINATING; auth=pass smtp.mailfrom=info@phpgangsta.de Authentication-Results: ORIGINATING; auth=pass smtp.mailfrom=info@phpgangsta.de X-Envelope-From: Subject: Re: [PHP-DEV] [RFC] Deprecate Backtick Operator (V2) From: info@phpgangsta.de (Michael Kliewe) Hi, Am 04.10.2019 um 17:45 schrieb Mark Randall: > Hi Internals, > > I put forward the following RFC "Deprecate Backtick Operator (V2)" for > discussion. > > https://wiki.php.net/rfc/deprecate-backtick-operator-v2 > > I believe it is at least worth a discussion as to the pros and cons of > deprecating this functionality, especially in light of the existence > of better described and more well-known functions exhibiting identical > behaviour. Two more advantages of using shell_exec(): - you can override/mock shell_exec() in a namespace. You cannot do that with the "backtick operator". - in IDEs like PHPStorm, you can ctrl-click on the function name "shell_exec" to check what it does: see what the return value is, see a description, click the link to the manual. You can easily search for "other usages" (right-click "Find Usages"). You cannot do that with the "backtick operator". Michael