rfc:readline_interactive_shell_result_function
Differences
This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revisionNext revisionBoth sides next revision | ||
rfc:readline_interactive_shell_result_function [2021/01/16 21:08] – tandre | rfc:readline_interactive_shell_result_function [2021/01/20 00:52] – link to RFC announcement tandre | ||
---|---|---|---|
Line 3: | Line 3: | ||
* Date: 2020-12-19 | * Date: 2020-12-19 | ||
* Author: Tyson Andre, tandre@php.net | * Author: Tyson Andre, tandre@php.net | ||
- | * Status: | + | * Status: |
* Implementation: | * Implementation: | ||
* First Published at: https:// | * First Published at: https:// | ||
Line 118: | Line 118: | ||
*/ | */ | ||
function readline_interactive_shell_result_function(? | function readline_interactive_shell_result_function(? | ||
+ | </ | ||
+ | |||
+ | The default implementation added as part of this RFC is effectively identical to the below implementation, | ||
+ | |||
+ | <code php> | ||
+ | readline_interactive_shell_result_function( | ||
+ | function(string $code, $result) { | ||
+ | if (!isset($result)) { | ||
+ | return; | ||
+ | } | ||
+ | if (is_scalar($result)) { | ||
+ | echo "=> " . var_export($result, | ||
+ | } else { | ||
+ | echo "=> "; var_dump($result); | ||
+ | }}); | ||
</ | </ | ||
Line 164: | Line 179: | ||
* i.e. change '' | * i.e. change '' | ||
- | ===== Proposed Voting Choices | + | ===== Vote ===== |
+ | |||
+ | Voting starts on 2021-01-19 and ends 2021-02-02 | ||
Yes/No, requiring 2/3 majority | Yes/No, requiring 2/3 majority | ||
+ | |||
+ | <doodle title=" | ||
+ | * Yes | ||
+ | * No | ||
+ | </ | ||
===== References ===== | ===== References ===== | ||
+ | * https:// | ||
* https:// | * https:// | ||
* https:// | * https:// | ||
Line 176: | Line 199: | ||
0.2: Dump non-null expression results by default with var_dump()/ | 0.2: Dump non-null expression results by default with var_dump()/ | ||
+ | 0.3: Document the default implementation used in the implementation |
rfc/readline_interactive_shell_result_function.txt · Last modified: 2021/02/03 00:39 by tandre