From bccac3774bade617d88da45e7f1781151bb16160 Mon Sep 17 00:00:00 2001 From: Bob Weinand Date: Wed, 23 Sep 2015 18:30:13 +0200 Subject: Fixed bug #70531 (-rr should not fallback to interactive mode in phpdbg) --- sapi/phpdbg/phpdbg.c | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'sapi/phpdbg/phpdbg.c') diff --git a/sapi/phpdbg/phpdbg.c b/sapi/phpdbg/phpdbg.c index bf3a45184e..a66576c61e 100644 --- a/sapi/phpdbg/phpdbg.c +++ b/sapi/phpdbg/phpdbg.c @@ -1835,6 +1835,11 @@ phpdbg_interact: if (phpdbg_startup_run) { quit_immediately = phpdbg_startup_run > 1; phpdbg_startup_run = 0; + if (quit_immediately) { + PHPDBG_G(flags) |= PHPDBG_IS_INTERACTIVE | PHPDBG_PREVENT_INTERACTIVE; + } else { + PHPDBG_G(flags) |= PHPDBG_IS_INTERACTIVE; + } PHPDBG_COMMAND_HANDLER(run)(NULL); if (quit_immediately) { /* if -r is on the command line more than once just quit */ -- cgit v1.2.1