Skip to content
This repository has been archived by the owner on Feb 6, 2019. It is now read-only.

Commit

Permalink
Fixed infinite loop when quitting (sometimes)
Browse files Browse the repository at this point in the history
  • Loading branch information
bwoebi committed Apr 21, 2014
1 parent c1e1231 commit 447ec05
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions phpdbg_prompt.c
Expand Up @@ -920,7 +920,7 @@ PHPDBG_COMMAND(quit) /* {{{ */
zend_bailout();
}

return SUCCESS;
return PHPDBG_NEXT;
} /* }}} */

PHPDBG_COMMAND(clean) /* {{{ */
Expand Down Expand Up @@ -1048,7 +1048,7 @@ int phpdbg_interactive(TSRMLS_D) /* {{{ */
case PHPDBG_FINISH:
case PHPDBG_UNTIL:
case PHPDBG_NEXT: {
if (!EG(in_execution)) {
if (!EG(in_execution) && !(PHPDBG_G(flags) & PHPDBG_IS_QUITTING)) {
phpdbg_error("Not running");
}
goto out;
Expand Down

0 comments on commit 447ec05

Please sign in to comment.