com php-src: fix quit not working: phpdbg.c

From: Date: Thu, 14 Nov 2013 12:21:28 +0000
Subject: com php-src: fix quit not working: phpdbg.c
Groups: php.cvs 
Request: Send a blank email to php-cvs+get-74979@lists.php.net to get a copy of this message
Commit: dc580c685f1a5666a652d51eadacb3893eac2358 Author: krakjoe <joe.watkins@live.co.uk> Thu, 14 Nov 2013 12:21:28 +0000 Parents: 801a575c47f825a8eb116b6cb6035225371d5829 Branches: PHP-5.6 Link: http://git.php.net/?p=php-src.git;a=commitdiff;h=dc580c685f1a5666a652d51eadacb3893eac2358 Log: fix quit not working Changed paths: M phpdbg.c Diff: diff --git a/phpdbg.c b/phpdbg.c index 35b1075..4accf2f 100644 --- a/phpdbg.c +++ b/phpdbg.c @@ -486,11 +486,17 @@ phpdbg_main: } zend_catch { if ((PHPDBG_G(flags) & PHPDBG_IS_CLEANING)) { cleaning = 1; - break; + goto phpdbg_out; } else cleaning = 0; + + if (PHPDBG_G(flags) & PHPDBG_IS_QUITTING) { + goto phpdbg_out; + } } zend_end_try(); } while(!(PHPDBG_G(flags) & PHPDBG_IS_QUITTING)); +phpdbg_out: + if (ini_entries) { free(ini_entries); }

« previous php.cvs (#74979) next »