Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:116470 Return-Path: Delivered-To: mailing list internals@lists.php.net Received: (qmail 36137 invoked from network); 21 Nov 2021 16:57:21 -0000 Received: from unknown (HELO php-smtp4.php.net) (45.112.84.5) by pb1.pair.com with SMTP; 21 Nov 2021 16:57:21 -0000 Received: from php-smtp4.php.net (localhost [127.0.0.1]) by php-smtp4.php.net (Postfix) with ESMTP id C73371804B4 for ; Sun, 21 Nov 2021 09:53:32 -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=-1.8 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,FREEMAIL_ENVFROM_END_DIGIT,FREEMAIL_FROM,NICE_REPLY_A, RCVD_IN_MSPIKE_H2,SPF_HELO_NONE,SPF_PASS autolearn=no autolearn_force=no version=3.4.2 X-Spam-ASN: AS8560 212.227.0.0/16 X-Spam-Virus: No X-Envelope-From: Received: from mout.gmx.net (mout.gmx.net [212.227.17.20]) (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 ; Sun, 21 Nov 2021 09:53:30 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=gmx.net; s=badeba3b8450; t=1637517208; bh=ym0M0Ayh5uz0g1Si4n8NLHZ9hv6bEtMc3YriCAfMiUQ=; h=X-UI-Sender-Class:Date:Subject:To:References:From:In-Reply-To; b=JD5HioVO+OhexmxUHXLxsDUzS3ikuCkJF553nqOCVZMQNVloEZWBjGBXd3ZsLqzm6 kstXRbylHCmX85b1mOMBXuwnYfh1d7Emn0y2ekDdN1fR2bVV8uiveGFv2+fmgE1Uxp 9nGsq0eoEBLwzuHRQA4WQYBx68qlh5GMSvEz2uOM= X-UI-Sender-Class: 01bb95c1-4bf8-414a-932a-4f6e2808ef9c Received: from [192.168.2.130] ([91.8.172.114]) by mail.gmx.net (mrgmx104 [212.227.17.168]) with ESMTPSA (Nemesis) id 1McYCb-1mEhGP1KLl-00d2bT; Sun, 21 Nov 2021 18:53:28 +0100 Message-ID: <4869e51e-2abf-1c59-ea83-8154d99997a6@gmx.de> Date: Sun, 21 Nov 2021 18:53:28 +0100 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:91.0) Gecko/20100101 Thunderbird/91.3.2 Content-Language: de-DE To: Luca Petrucci , internals@lists.php.net References: <20211118074647.muibn4mgfezzy75b@lucapetrucci.net> <20211121163144.ipyopbywu53uhwwq@lucapetrucci.net> In-Reply-To: <20211121163144.ipyopbywu53uhwwq@lucapetrucci.net> Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable X-Provags-ID: V03:K1:CX14Woxv0NP+gmBcDu/bNJKWfxcTFvgTz51PMGrAbt+QKY+Ciui iSMVTz1jnRG88BEqa0iOdHEF2kp/4Q8plZ4taU45M/31JFAz83xtDsD8igSKDZN6FYvG/0l pLkiG4iFgRHSEojUOCS0bwVxDkdd3ogpW1pCQerkHhw8cP0s3kJf3PPy2L9gl6afB4aYy1d NVRJAsDpdkqs85TXG0j3g== X-UI-Out-Filterresults: notjunk:1;V03:K0:DRA5nvmLi2M=:a0tM8wt5UGebcvzNFA/e9s Y6L+tL8lOWNNd5lr6+LcTzDGOBMqbwTJFBTRU2CdsLn9/kfj9QZLn4kPV9/9q1wzU58RWsJzt Ol4CdktOPUbFSh6M2sQ9QphrqgNdmx1GFSzBObTo29iwSNhSQaPfez1ZfkmJmvw8BWzXoMT+s iobBEXkUCn38DJ5jwpn8k9iOndPjNNUSQJ0OquQ2wM82Ya2JS0TRO7Zslx7XSUVT+r7DslPi3 epi8JkJaIC1VJr7+OIPkR3Yc6JQLBujr68cFndQxligJXXQUlu82LkyKLxmoOF9GHKqoVo/p6 ZNHTP0Wk5nJhSIqtzmsqwsV8UGsGSHa1VobX/vKswDRkFm+YnXvhoiL8MJscDgeZf0Om9On5B eC2/aetb6t3ODsfq/eeN/i4zRRFmdL0qqZBT51lr0299aac/LszvJvhJH8hMEP5VutXv7j1m0 B+gakGj+rTay5bEWSppWrewy3OF8pRH+sg6PHHqgq5Au5K3q73rRtPzpYvBLcUQNKAJID1Ybn wX51PVb7OE3yUm/ToEmqUorNjJ8+pebqerCQcW2+RoSn8IPWXuLWJja+t2sKy+H4ypINUlgq0 nWEWS1dzxt9783AM64zcBymx9I+W9kD9KogFc66UxuVLm24cx/oZCya9d0MPr5VO6jEjp4LQy OfVDVVYR9qeWCGnCxQ96Nx/6PaPvnOKVkNHkTJVUAMk2u9+tm3w2bNWzRQzJ1QBX/duIi+GNk m6WQkQONYXyBFNSp5v/W2L93f+kOB2+Z+SXRrbDdS61ThkwOmCipsxeKkwrxoWLCR0Vf9HBkh os/aPwid1sF+cd4kfkvqpQMNaETcPHWrC4RZOely9T9VuhbLHfd69MpKqRE3qyfhwcWlc5cMf 4nAnMEVaFRydU6ZXIe624wWz1k3JZM8Dj6TQ0/Zpbt9d9JivDQZn0runlisbUISTn5VgBbPOZ b8HiOu2rftAEPkaAZkT10a9TOhljRCRTfeAQQT+s4FocZ97HME1BNp9IhYvQ6gyWiNgqe49JX e2nY7Dpw2c5yug3fX0cYg8We9BbBhAQCB/ghJy28p7Zi6t1sTSIga3VhZcSGUw0fLs2LFmGp5 xu6skXw3wRgHcY= Subject: Re: Proposal: &$result_code=null parameter in shell_exec() From: cmbecker69@gmx.de ("Christoph M. Becker") On 21.11.2021 at 17:31, Luca Petrucci via internals wrote: > On Thu, Nov 18, 2021 at 08:46:47AM +0100, Luca Petrucci via internals wr= ote: >> Hi internals, >> >> This is a proposal to add an optional parameter &$result_code =3D null = to the shell_exec() function. >> >> For clarity, the current signature is >> shell_exec(string $command): string|false|null >> The proposed signature is >> shell_exec(string $command, int &$result_code =3D null): string|false|n= ull >> >> If present, the result_code parameter is set to the exit code of the co= mmand, as it is in exec() and system(). >> >> This feature request was also posted by another user on https://bugs.ph= p.net/bug.php?id=3D81493 >> I have a draft pull request at https://github.com/php/php-src/pull/7663 > > Having seen the initial comments about this proposal, I'd like to > request karma to create the RFC (username: lpt). Karma granted. Best of luck! :) =2D- Christoph M. Becker