From: Bob Weinand Date: Sat, 18 Jan 2014 23:48:53 +0000 (-0500) Subject: Clean root symbol table when starting new execution X-Git-Tag: php-5.6.0beta2~1^2~37^2~36^2~1 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=992a8d0411535811006c1ba2be4723127995a88f;p=php Clean root symbol table when starting new execution --- diff --git a/phpdbg_prompt.c b/phpdbg_prompt.c index cb46407957..529ab04194 100644 --- a/phpdbg_prompt.c +++ b/phpdbg_prompt.c @@ -566,6 +566,12 @@ PHPDBG_COMMAND(run) /* {{{ */ zend_rebuild_symbol_table(TSRMLS_C); } + /* clean up from last execution */ + zend_execute_data *ex = EG(current_execute_data); + if (ex && ex->symbol_table) { + zend_hash_clean(ex->symbol_table); + } + /* clean seek state */ PHPDBG_G(flags) &= ~PHPDBG_SEEK_MASK; zend_hash_clean(