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

From: Date: Thu, 01 Aug 2013 23:25:23 +0000
Subject: Bug #51695 [Ver]: CLI interactive mode broken without readline/editline
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-180661@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:         yohgaki@php.net
 Reported by:        IMadeThisUpForBugzilla at yahoo dot com
 Summary:            CLI interactive mode broken without
                     readline/editline
 Status:             Verified
 Type:               Bug
 Package:            CGI/CLI related
 Operating System:   any
 PHP Version:        master
 Block user comment: N
 Private report:     N

 New Comment:

May be we should print error & exit when readline/editline is not available.


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

------------------------------------------------------------------------
[2010-08-18 13:19:36] peter at niederlag dot de

unfortunatly as of now this makes the interactive shell mostly useless for debian users. :-<

------------------------------------------------------------------------
[2010-05-02 00:35:50] geissert@php.net

This can be reproduced by building the CLI SAPI without readline/editline support (like we currently
do at Debian because of an editline bug.)

One has to send an EOF so that the input is processed, but one can not do anything afterwards: php
exits.

------------------------------------------------------------------------
[2010-04-29 12:07:45] IMadeThisUpForBugzilla at yahoo dot com

Description:
------------
Run php at the command line in Windows in interactive mode (php -a), echo something, nothing happens
until the process is ended (see test script for example command line session). Doesn't work in
PHP 5.3.X. Does work in PHP 5.2.X.

Tried Zend build, version shipped with eclipse, and version distributed on windows.php.net VC6 and
VC9.

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

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


Expected result:
----------------
Session example included. Should output the string 'hi' to the console after "echo
'hi';" (this is correct in PHP 5.2.X)

Actual result:
--------------
Nothing output after executing "echo 'hi';" line. See test script for example
session at command line.


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



-- 
Edit this bug report at https://bugs.php.net/bug.php?id=51695&edit=1


Thread (8 messages)

« previous php.bugs (#180661) next »