Interactive mode doesn't force a newline before the prompt

 [2011-08-23 20:47 UTC] sixd@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 > 

 [2011-08-23 20:47 UTC] sixd@php.net

-Assigned To: +Assigned To: johannes

 [2011-08-23 20:58 UTC] sixd@php.net

The expected & actual sections above should be swapped.

 [2012-02-01 19:09 UTC] sixd@php.net

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

 [2012-03-28 08:34 UTC] yohgaki@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]$ 
------------