Skip to content

Commit f62098e

Browse files
committed
- Exit debugger when hitting ctrl-c in no execution
1 parent cf227df commit f62098e

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

phpdbg.c

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -451,10 +451,8 @@ static inline void phpdbg_sigint_handler(int signo) /* {{{ */
451451
PHPDBG_G(flags) |= PHPDBG_IS_SIGNALED;
452452
}
453453
} else {
454-
/* if we are not executing then just provide advice */
455-
phpdbg_writeln(EMPTY);
456-
phpdbg_error(
457-
"Please leave phpdbg gracefully!");
454+
PHPDBG_G(flags) |= PHPDBG_IS_QUITTING;
455+
zend_bailout();
458456
}
459457
} /* }}} */
460458

0 commit comments

Comments
 (0)