com php-src: Fix quitting on a second run: phpdbg.c

From: Date: Tue, 28 Oct 2014 12:55:14 +0000
Subject: com php-src: Fix quitting on a second run: phpdbg.c
Groups: php.cvs 
Request: Send a blank email to php-cvs+get-82765@lists.php.net to get a copy of this message
Commit: b8dd98178cd7f1c62c98a5eb695afc15d3ae8bc1 Author: Bob Weinand <bobwei9@hotmail.com> Tue, 28 Oct 2014 13:55:14 +0100 Parents: 24a88e39065dd7e80c3a9f2c18d0d878af36cbe8 Branches: PHP-5.6 Link: http://git.php.net/?p=php-src.git;a=commitdiff;h=b8dd98178cd7f1c62c98a5eb695afc15d3ae8bc1 Log: Fix quitting on a second run Changed paths: M phpdbg.c Diff: diff --git a/phpdbg.c b/phpdbg..c index 4bfbf4c..87bfb85 100644 --- a/phpdbg.c +++ b/phpdbg.c @@ -1527,21 +1527,20 @@ phpdbg_main: PHPDBG_G(flags) |= PHPDBG_IS_STEPPING; } - if (phpdbg_startup_run) { - zend_try { - PHPDBG_COMMAND_HANDLER(run)(NULL TSRMLS_CC); - } zend_end_try(); - if (phpdbg_startup_run > 1) { - /* if -r is on the command line more than once just quit */ - goto phpdbg_out; - } - phpdbg_startup_run = 0; - } - phpdbg_interact: /* phpdbg main() */ do { zend_try { + if (phpdbg_startup_run) { + PHPDBG_COMMAND_HANDLER(run)(NULL TSRMLS_CC); + if (phpdbg_startup_run > 1) { + /* if -r is on the command line more than once just quit */ + EG(bailout) = __orig_bailout; /* reset zend_try */ + break; + } + phpdbg_startup_run = 0; + } + phpdbg_interactive(1 TSRMLS_CC); } zend_catch { if ((PHPDBG_G(flags) & PHPDBG_IS_CLEANING)) {

« previous php.cvs (#82765) next »