Do not show "Script ended normally" upon forced rerun
authorBob Weinand <bobwei9@hotmail.com>
Sat, 18 Jul 2015 18:51:25 +0000 (20:51 +0200)
committerBob Weinand <bobwei9@hotmail.com>
Mon, 20 Jul 2015 16:00:42 +0000 (18:00 +0200)
sapi/phpdbg/phpdbg.c

index 3fa69cfe622e98502e7d116d3fd8cd878fbc9910..ffd0fa5bd144b5923e3c468793c0e2c077ed01a4 100644 (file)
@@ -1814,8 +1814,10 @@ phpdbg_out:
                        php_request_shutdown(NULL);
                } zend_end_try();
 
-               if ((PHPDBG_G(flags) & (PHPDBG_IS_QUITTING | PHPDBG_IS_RUNNING)) == PHPDBG_IS_RUNNING && !quit_immediately) {
-                       phpdbg_notice("stop", "type=\"normal\"", "Script ended normally");
+               if ((PHPDBG_G(flags) & (PHPDBG_IS_QUITTING | PHPDBG_IS_RUNNING)) == PHPDBG_IS_RUNNING) {
+                       if (!quit_immediately && !phpdbg_startup_run) {
+                               phpdbg_notice("stop", "type=\"normal\"", "Script ended normally");
+                       }
                        cleaning++;
                }