Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:116443 Return-Path: Delivered-To: mailing list internals@lists.php.net Received: (qmail 71049 invoked from network); 18 Nov 2021 08:37:24 -0000 Received: from unknown (HELO php-smtp4.php.net) (45.112.84.5) by pb1.pair.com with SMTP; 18 Nov 2021 08:37:24 -0000 Received: from php-smtp4.php.net (localhost [127.0.0.1]) by php-smtp4.php.net (Postfix) with ESMTP id E66CD1804C4 for ; Thu, 18 Nov 2021 01:32:49 -0800 (PST) X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on php-smtp4.php.net X-Spam-Level: X-Spam-Status: No, score=-0.2 required=5.0 tests=BAYES_20,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,SPF_HELO_NONE,SPF_PASS autolearn=no autolearn_force=no version=3.4.2 X-Spam-ASN: AS14061 188.166.0.0/18 X-Spam-Virus: No X-Envelope-From: Received: from server1.lucapetrucci.net (server1.lucapetrucci.net [188.166.53.163]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange ECDHE (P-256) server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by php-smtp4.php.net (Postfix) with ESMTPS for ; Thu, 18 Nov 2021 01:32:49 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=lucapetrucci.net; s=mail; t=1637227968; bh=yHGjpdhpBTNX/TWFn9Z8C7fuhbHqMq30e5ye0vobg1Y=; h=Date:From:To:Subject:References:In-Reply-To:From; b=w85PHU828g5TvabR+7bHRasdGCCXp/a97H1LhBXraw4mh0CjZFBwHGcF3KwgoNE95 vMGzQNZgaZQdj7TpmqB3HLg3TcAfWj7fwTwGLkxNTKvKgexkFTNRIIXlll33sRILIh a5ELF4Oqa21MzZtVr5qihQBL7GErQvGI2EPO+W69xp92bpnIrvToLtdxcuHdTKLVdW JFofqhmu54rlrvqpqtj5WG8ShI4S0qxbJpJmpmtOX0UVu7GX82lRAwug2dsfHyVHG9 XlC8/Ol40lRT1SKpjjOOPGgo8UbvtmH2HXNWhAPkD5+chk0pQ+ONEWgPyskyn6xWkJ sZyusfqw64FdA== Date: Thu, 18 Nov 2021 10:32:43 +0100 Reply-To: Luca Petrucci To: internals@lists.php.net Message-ID: <20211118093243.t7i2langi4celapv@lucapetrucci.net> References: <20211118074647.muibn4mgfezzy75b@lucapetrucci.net> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: Subject: Re: [PHP-DEV] Proposal: &$result_code=null parameter in shell_exec() From: internals@lists.php.net ("Luca Petrucci via internals") On Thu, Nov 18, 2021 at 08:19:36AM +0000, Kamil Tekiela wrote: > Hi Luca, > > How will this change be reflected in its alias, the backtick operator? If > the plan is to change the signature of shell_exec() then the backtick > operator will not behave identically anymore. Am I correct? > > Regards, > Kamil Hi, PHP code that use the backtick operator or shell_exec() will behave identically. The reason is that when omitting the optional parameter $return_code, the function call shell_exec("command", null) is executed, which will execute the "command" and return its output just like it does right now. Thanks, Luca