Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix #51695: CLI interactive mode broken without readline/editline
- Loading branch information
Showing
1 changed file
with
11 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -1594,6 +1594,17 @@ php > | |
defined before called. | ||
</para> | ||
</note> | ||
|
||
<section xml:id="features.commandline.interactive.mode"> | ||
<title>Interactive mode</title> | ||
<para> | ||
If the readline extension is not available, invoking the &cli.sapi; with the | ||
<option>-a</option> option provides the interactive mode. In this mode, a | ||
complete PHP script is supposed to be given via STDIN, and after termination | ||
with <literal>CRTL+d</literal> (POSIX) or <literal>CTRL+z</literal> | ||
followed by <literal>ENTER</literal> (Windows), this script is evaluated. | ||
</para> | ||
</section> | ||
This comment has been minimized.
Sorry, something went wrong.
This comment has been minimized.
Sorry, something went wrong.
cmb69
Author
Contributor
|
||
</section> | ||
<!--}}}--> | ||
|
||
|
@cmb69 As of PHP 8.1.0,
-a
option without readline extension emits error. Also, complete PHP script entering mode from STDIN is enabled when callingphp
without any arguments.