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 wrote:
>> Hi internals,
>>
>> This is a proposal to add an optional parameter &$result_code = 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 = null): string|false|null
>>
>> If present, the result_code parameter is set to the exit code of the 
>> command, as it is in exec() and system().
>>
>> This feature request was also posted by another user on 
>> https://bugs.php.net/bug.php?id=81493
>> 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! :)

--
Christoph M. Becker

--
PHP Internals - PHP Runtime Development Mailing List
To unsubscribe, visit: https://www.php.net/unsub.php

Reply via email to