Doc #51695 [Ver->Csd]: CLI interactive mode broken without readline/editline
Edit report at https://bugs.php.net/bug.php?id=51695&edit=1
ID: 51695
Updated by: git@php.net
Reported by: IMadeThisUpForBugzilla at yahoo dot com
Summary: CLI interactive mode broken without
readline/editline
-Status: Verified
+Status: Closed
Type: Documentation Problem
Package: CGI/CLI related
Operating System: any
PHP Version: master
Block user comment: N
Private report: N
New Comment:
Automatic comment on behalf of cmb69
Revision: https://github.com/php/doc-en/commit/688cc56f14d5676aa90f86426a3e76bee59c45cc
Log: Fix #51695: CLI interactive mode broken without readline/editline
Previous Comments:
------------------------------------------------------------------------
[2020-10-07 12:44:46] cmb@php.net
This works as expected; without readline you have the "interactive
mode" which works differently from the "interactive shell". In
interactive mode you have to type a complete PHP script, and
afterwards to press CRTL+d (POSIX) or CTRL+z followed by ENTER
(Windows) to evaluate the script. See user note 108006 for
further details.
The only thing that is suboptimal, is that the message reporting
whether the interactive shell or the interactive mode would be
enabled, is compiled statically what may lead to erroneous info.
You still can distinguish interactive mode/shell, because only for
the latter the prompt ("php >") is shown.
[1] <https://www.php.net/manual/en/features.commandline.interactive.php#108006>
------------------------------------------------------------------------
[2015-10-16 19:08:58] bugs dot php dot net at majkl578 dot cz
Confirmed, still broken in PHP 7.0.0RC5 on Linux.
------------------------------------------------------------------------
[2015-08-17 04:56:04] lb1 dot 3 at juno dot com
This is still not working in PHP7-nightly Zend package and Ubuntu 14.04, but works ok with the
standard Ubuntu-PHP.
------------------------------------------------------------------------
[2013-08-01 23:25:23] yohgaki@php.net
May be we should print error & exit when readline/editline is not available.
------------------------------------------------------------------------
[2013-08-01 23:25:18] yohgaki@php.net
May be we should print error & exit when readline/editline is not available.
------------------------------------------------------------------------
The remainder of the comments for this report are too long. To view
the rest of the comments, please view the bug report online at
https://bugs.php.net/bug.php?id=51695
--
Edit this bug report at https://bugs.php.net/bug.php?id=51695&edit=1
Thread (2 messages)