]> granicus.if.org Git - php/commitdiff
Working fix for ctrl+d on readline/libedit
authorBob Weinand <bobwei9@hotmail.com>
Wed, 8 Jul 2015 14:54:41 +0000 (16:54 +0200)
committerBob Weinand <bobwei9@hotmail.com>
Wed, 8 Jul 2015 14:54:41 +0000 (16:54 +0200)
sapi/phpdbg/phpdbg_cmd.c

index 9a3751a424d11ffbd9f18f36a67568cf193a03e5..04da78098b6fef477388d80cdbbdf664c51674f4 100644 (file)
@@ -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);