rfc:shell_exec_result_code_param
Differences
This shows you the differences between two versions of the page.
Next revision | Previous revision | ||
rfc:shell_exec_result_code_param [2021/11/21 21:44] – created lpt | rfc:shell_exec_result_code_param [2021/11/27 05:03] (current) – lpt | ||
---|---|---|---|
Line 1: | Line 1: | ||
====== PHP RFC: Add an optional parameter $result_code to shell_exec() ====== | ====== PHP RFC: Add an optional parameter $result_code to shell_exec() ====== | ||
- | * Version: | + | * Version: 1 |
* Date: 2021-11-21 | * Date: 2021-11-21 | ||
* Author: Luca Petrucci, luca@lucapetrucci.net | * Author: Luca Petrucci, luca@lucapetrucci.net | ||
- | * Status: | + | * Status: |
* First Published at: http:// | * First Published at: http:// | ||
===== Introduction ===== | ===== Introduction ===== | ||
- | The shell_exec() function is often used to execute an external program and grab its entire output as a string, but it lacks a way to capture the exit code of the launched program contrarily to all the other functions of the same family (exec, system, passthru). | + | The shell_exec() function is used to execute an external program and grab its entire output as a string, but it lacks a way to capture the exit code of the launched program contrarily to all the other functions of the same family (exec, system, passthru). |
===== Proposal ===== | ===== Proposal ===== | ||
Line 19: | Line 19: | ||
===== Proposed PHP Version(s) ===== | ===== Proposed PHP Version(s) ===== | ||
- | Next PHP 8.x | + | Next PHP 8.x, currently PHP 8.2. |
===== RFC Impact ===== | ===== RFC Impact ===== | ||
Line 42: | Line 42: | ||
===== Proposed Voting Choices ===== | ===== Proposed Voting Choices ===== | ||
- | Include these so readers know where you are heading and can discuss the proposed voting options. | + | Yes/No vote, super majority of 2/3 required to pass. |
===== Implementation ===== | ===== Implementation ===== |
rfc/shell_exec_result_code_param.1637531067.txt.gz · Last modified: 2021/11/21 21:44 by lpt