Interactive mode is no longer available as of PHP 8.1.0

Cf. <688cc56f14 (commitcomment-59701083)>.
This commit is contained in:
Christoph M. Becker 2021-11-10 00:25:48 +01:00
parent b9d23bbb94
commit a2fc23851f
No known key found for this signature in database
GPG key ID: D66C9593118BCCB6

View file

@ -1598,11 +1598,17 @@ php >
<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
If the readline extension is not available, prior to PHP 8.1.0, invoking the &cli.sapi; with the
<option>-a</option> option provided 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.
This is basically the same as invoking the &cli.sapi; without the <option>-a</option>
option.
</para>
<para>
As of PHP 8.1.0, invoking the &cli.sapi; with the <option>-a</option> option
fails, if the readline extension is not available.
</para>
</section>
</section>