Skip to content

Commit 699e641

Browse files
committed
Do not show "Script ended normally" upon forced rerun
1 parent 6435eb8 commit 699e641

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

sapi/phpdbg/phpdbg.c

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1814,8 +1814,10 @@ int main(int argc, char **argv) /* {{{ */
18141814
php_request_shutdown(NULL);
18151815
} zend_end_try();
18161816

1817-
if ((PHPDBG_G(flags) & (PHPDBG_IS_QUITTING | PHPDBG_IS_RUNNING)) == PHPDBG_IS_RUNNING && !quit_immediately) {
1818-
phpdbg_notice("stop", "type=\"normal\"", "Script ended normally");
1817+
if ((PHPDBG_G(flags) & (PHPDBG_IS_QUITTING | PHPDBG_IS_RUNNING)) == PHPDBG_IS_RUNNING) {
1818+
if (!quit_immediately && !phpdbg_startup_run) {
1819+
phpdbg_notice("stop", "type=\"normal\"", "Script ended normally");
1820+
}
18191821
cleaning++;
18201822
}
18211823

0 commit comments

Comments
 (0)