com php-src: quit on CTRL+C when interactive: phpdbg.c

From: Date: Sat, 23 Nov 2013 16:59:31 +0000
Subject: com php-src: quit on CTRL+C when interactive: phpdbg.c
Groups: php.cvs 
Request: Send a blank email to php-cvs+get-74692@lists.php.net to get a copy of this message
Commit: f7ae1126f80d5a74be6bbb9e0b43aeb199d02aad Author: krakjoe <joe.watkins@live.co.uk> Sat, 23 Nov 2013 16:59:31 +0000 Parents: 7cd0ed51ed64fba08c85e0d802dd1ae3f382f92a Branches: PHP-5.6 Link: http://git.php.net/?p=php-src.git;a=commitdiff;h=f7ae1126f80d5a74be6bbb9e0b43aeb199d02aad Log: quit on CTRL+C when interactive Changed paths: M phpdbg.c Diff: diff --git a/phpdbg.c b/phpdbg.c index bdb6c81..7fd4127 100644 --- a/phpdbg.c +++ b/phpdbg.c @@ -451,10 +451,8 @@ static inline void phpdbg_sigint_handler(int signo) /* {{{ */ PHPDBG_G(flags) |= PHPDBG_IS_SIGNALED; } } else { - /* if we are not executing then just provide advice */ - phpdbg_writeln(EMPTY); - phpdbg_error( - "Please leave phpdbg gracefully !"); + PHPDBG_G(flags) |= PHPDBG_IS_QUITTING; + zend_bailout(); } } /* }}} */

« previous php.cvs (#74692) next »