Bug #51695 [Com]: CLI interactive mode broken without readline/editline
Edit report at https://bugs.php.net/bug.php?id=51695&edit=1
ID: 51695
Comment by: luis dot pessoa67 at ibest dot com dot br
Reported by: IMadeThisUpForBugzilla at yahoo dot com
Summary: CLI interactive mode broken without
readline/editline
Status: Open
Type: Bug
Package: CGI/CLI related
Operating System: Windows XP SP 3
PHP Version: 5.3.2
Block user comment: N
Private report: N
New Comment:
This code works fine:
(tag ?> missing)
c:\php> .\php.exe -an
Interactive mode enabled
<?php
echo 'hi';
?>
^Z
hi
c:\php>
Previous Comments:
------------------------------------------------------------------------
[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)