com php-src: Working fix for ctrl+d on readline/libedit: sapi/phpdbg/phpdbg_cmd.c

From: Date: Wed, 08 Jul 2015 14:54:41 +0000
Subject: com php-src: Working fix for ctrl+d on readline/libedit: sapi/phpdbg/phpdbg_cmd.c
Groups: php.cvs 
Request: Send a blank email to php-cvs+get-87850@lists.php.net to get a copy of this message
Commit: 3ccc17cee5cbd6555b761abdb54111af8ad7b0db Author: Bob Weinand <bobwei9@hotmail.com> Wed, 8 Jul 2015 16:54:41 +0200 Parents: 5460929077fc71640a871bfd4cee38cce2b4b7eb Branches: master Link: http://git.php.net/?p=php-src.git;a=commitdiff;h=3ccc17cee5cbd6555b761abdb54111af8ad7b0db Log: Working fix for ctrl+d on readline/libedit Changed paths: M sapi/phpdbg/phpdbg_cmd.c Diff: diff --git a/sapi/phpdbg/phpdbg_cmd.c b/sapi/phpdbg/phpdbg_cmd.c index 9a3751a..04da780 100644 --- a/sapi/phpdbg/phpdbg_cmd.c +++ b/sapi/phpdbg/phpdbg_cmd.c @@ -731,11 +731,8 @@ readline: if (!(PHPDBG_G(flags) & PHPDBG_IS_REMOTE)) { if (!cmd) { - if (feof(PHPDBG_G(io)[PHPDBG_STDIN].ptr)) { - PHPDBG_G(flags) |= PHPDBG_IS_QUITTING | PHPDBG_IS_DISCONNECTED; - zend_bailout(); - } - goto readline; + PHPDBG_G(flags) |= PHPDBG_IS_QUITTING | PHPDBG_IS_DISCONNECTED; + zend_bailout(); } add_history(cmd);

« previous php.cvs (#87850) next »