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 20:50] – tandre | rfc:readline_interactive_shell_result_function [2021/01/16 21:04] – tandre | ||
---|---|---|---|
Line 1: | Line 1: | ||
- | ====== PHP RFC: Configurable callback to dump results of expressions in `php -a` ====== | + | ====== PHP RFC: Dump results of expressions in `php -a` ====== |
- | * Version: 0.1 | + | * Version: 0.2 |
* Date: 2020-12-19 | * Date: 2020-12-19 | ||
* Author: Tyson Andre, tandre@php.net | * Author: Tyson Andre, tandre@php.net | ||
Line 14: | Line 14: | ||
(I've seen https:// | (I've seen https:// | ||
- | Because PHP's interactive shell is written in C, adding new features or bug fixes would require a lot of time getting familiar with | ||
- | C programming, | ||
===== Proposal ===== | ===== Proposal ===== | ||
Line 22: | Line 20: | ||
Additionally, | Additionally, | ||
- | This will dump the results of expressions every time a statement containing a single expression such as '' | + | This will dump the results of expressions every time a statement containing a single expression such as '' |
An example of the behavior of the default expression dumper is below: | An example of the behavior of the default expression dumper is below: | ||
Line 78: | Line 76: | ||
newline not automatically appended by shell | newline not automatically appended by shell | ||
=> 44 | => 44 | ||
- | php > { print(" | + | php > { print(" |
test | test | ||
php > | php > | ||
Line 86: | Line 84: | ||
<code php> | <code php> | ||
- | php -a | + | $ php -a |
Interactive shell | Interactive shell | ||
Line 125: | Line 123: | ||
===== Backward Incompatible Changes ===== | ===== Backward Incompatible Changes ===== | ||
- | None, only interactive sessions are affected, | + | |
+ | Only interactive sessions | ||
+ | |||
+ | In interactive sessions, this will start calling ['' | ||
===== Proposed PHP Version(s) ===== | ===== Proposed PHP Version(s) ===== | ||
Line 163: | Line 165: | ||
===== Proposed Voting Choices ===== | ===== Proposed Voting Choices ===== | ||
- | |||
- | Voting starts on 2021-01-03 and ends 2021-01-17. | ||
Yes/No, requiring 2/3 majority | Yes/No, requiring 2/3 majority | ||
Line 171: | Line 171: | ||
* https:// | * https:// | ||
- | * https:// | + | * https:// |
+ | |||
+ | ===== Changelog ===== | ||
+ | |||
+ | 0.2: Dump non-null expression results by default with var_dump()/ |
rfc/readline_interactive_shell_result_function.txt · Last modified: 2021/02/03 00:39 by tandre