From: krakjoe Date: Sun, 2 Feb 2014 15:10:17 +0000 (+0000) Subject: clean symbols X-Git-Tag: php-5.6.0alpha2~1^2~23 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=407d761d0938c052f8b065c13d3f82759973a028;p=php clean symbols --- diff --git a/sapi/phpdbg/phpdbg_prompt.c b/sapi/phpdbg/phpdbg_prompt.c index cb46407957..529ab04194 100644 --- a/sapi/phpdbg/phpdbg_prompt.c +++ b/sapi/phpdbg/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(