Skip to content

Commit b76b543

Browse files
committed
fix sigint when executing
1 parent 351a0ac commit b76b543

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

phpdbg_prompt.c

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -549,8 +549,10 @@ PHPDBG_COMMAND(run) /* {{{ */
549549

550550
zend_try {
551551
php_output_activate(TSRMLS_C);
552+
PHPDBG_G(flags) ^= PHPDBG_IS_INTERACTIVE;
552553
zend_execute(
553554
EG(active_op_array) TSRMLS_CC);
555+
PHPDBG_G(flags) ^= PHPDBG_IS_INTERACTIVE;
554556
php_output_deactivate(TSRMLS_C);
555557
} zend_catch {
556558
EG(active_op_array) = orig_op_array;

0 commit comments

Comments
 (0)