- Exit debugger when hitting ctrl-c in no execution

This commit is contained in:
Felipe Pena 2013-11-23 15:01:14 -02:00
parent cf227df957
commit f62098ee27

View File

@ -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();
}
} /* }}} */