Bug #55496 [Com]: Interactive mode doesn't force a newline before the prompt

From: Date: Wed, 28 Mar 2012 08:34:56 +0000
Subject: Bug #55496 [Com]: Interactive mode doesn't force a newline before the prompt
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-168908@lists.php.net to get a copy of this message
Edit report at https://bugs.php.net/bug.php?id=55496&edit=1 ID: 55496 Comment by: yohgaki@php.net Reported by: sixd@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: 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]$ ------------ Previous Comments: ------------------------------------------------------------------------ [2012-02-01 19:09:06] sixd@php.net For the record, this changed (broke) in PHP 5.4. ------------------------------------------------------------------------ [2011-08-23 20:59:01] sixd@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] sixd@php.net The expected & actual sections above should be swapped. ------------------------------------------------------------------------ [2011-08-23 20:47:27] 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 > ------------------------------------------------------------------------ -- Edit this bug report at https://bugs.php.net/bug.php?id=55496&edit=1

« previous php.bugs (#168908) next »