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

 ID:                 51695
 Updated by:         yohg...@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] yohg...@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] geiss...@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

Reply via email to