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

 ID:                 55496
 Comment by:         yohg...@php.net
 Reported by:        s...@php.net
 Summary:            Interactive mode doesn't force a newline before the
                     prompt
 Status:             Assigned
 Type:               Bug
 Package:            CGI/CLI related
 Operating System:   Linux
 PHP Version:        5.4SVN-2011-08-23 (SVN)
 Assigned To:        johannes
 Block user comment: N
 Private report:     N

 New Comment:

--with-readline, I get this. 

---
[yohgaki@dev php-src]$ ./sapi/cli/php -a
Interactive mode enabled

php > echo 8888;
8888php > 
---

We probably should warning message when PHP is built without readline/libedit.

Related bugs:
https://bugs.php.net/bug.php?id=51695
https://bugs.php.net/bug.php?id=55257


Previous Comments:
------------------------------------------------------------------------
[2012-03-28 08:34:56] yohg...@php.net

Currently, CLI's interactive mode seems completely broken.

--------------
[yohgaki@dev php-src]$ ./sapi/cli/php -v
PHP 5.5.0-dev (cli) (built: Mar 28 2012 17:33:51) (DEBUG)
Copyright (c) 1997-2012 The PHP Group
Zend Engine v2.4.0, Copyright (c) 1998-2012 Zend Technologies
[yohgaki@dev php-src]$ ./sapi/cli/php -a
Interactive mode enabled

echo 88888



echo 88888



[yohgaki@dev php-src]$ 
------------

------------------------------------------------------------------------
[2012-02-01 19:09:06] s...@php.net

For the record, this changed (broke) in PHP 5.4.

------------------------------------------------------------------------
[2011-08-23 20:59:01] s...@php.net

Automatic comment from SVN on behalf of sixd
Revision: http://svn.php.net/viewvc/?view=revision&revision=315404
Log: Update log, marking 5.4 and trunk as XFAIL due to bug #55496

------------------------------------------------------------------------
[2011-08-23 20:58:39] s...@php.net

The expected & actual sections above should be swapped.

------------------------------------------------------------------------
[2011-08-23 20:47:27] s...@php.net

Description:
------------
The call to readline_shell_write() in readline_shell_run() is effectively a 
no-op 
so no newline is forced before the prompt.

Expected result:
----------------
$ php -a
Interactive shell

php > echo "hi";
hiphp > 

Actual result:
--------------
$ php -a
Interactive shell

php > echo "hi";
hi
php > 


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



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

Reply via email to