Bug->Doc #51695 [Ver]: CLI interactive mode broken without readline/editline

From: Date: Wed, 07 Oct 2020 12:44:46 +0000
Subject: Bug->Doc #51695 [Ver]: CLI interactive mode broken without readline/editline
References: 1  Groups: php.doc.bugs 
Request: Send a blank email to doc-bugs+get-17968@lists.php.net to get a copy of this message
Edit report at https://bugs.php.net/bug.php?id=51695&edit=1

 ID:                 51695
 Updated by:         cmb@php.net
 Reported by:        IMadeThisUpForBugzilla at yahoo dot com
 Summary:            CLI interactive mode broken without
                     readline/editline
 Status:             Verified
-Type:               Bug
+Type:               Documentation Problem
 Package:            CGI/CLI related
 Operating System:   any
 PHP Version:        master
 Block user comment: N
 Private report:     N

 New Comment:

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>


Previous Comments:
------------------------------------------------------------------------
[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.

------------------------------------------------------------------------
[2012-08-31 15:25:33] luis dot pessoa67 at ibest dot com dot br

This code works fine:

(tag ?> missing)

c:\php> .\php.exe -an
Interactive mode enabled

<?php
echo 'hi';
?>
^Z
hi
c:\php>

------------------------------------------------------------------------


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)

« previous php.doc.bugs (#17968) next »