com php-src: Clean root symbol table when starting new execution: phpdbg_prompt.c

From: Date: Sat, 18 Jan 2014 23:48:53 +0000
Subject: com php-src: Clean root symbol table when starting new execution: phpdbg_prompt.c
Groups: php.cvs 
Request: Send a blank email to php-cvs+get-77086@lists.php.net to get a copy of this message
Commit: 992a8d0411535811006c1ba2be4723127995a88f Author: Bob Weinand <bobwei9@hotmail.com> Sat, 18 Jan 2014 18:48:53 -0500 Parents: b12286461d2868f5e6e5f90ee45b9d4c542fb1e2 Branches: PHP-5.6 Link: http://git.php.net/?p=php-src.git;a=commitdiff;h=992a8d0411535811006c1ba2be4723127995a88f Log: Clean root symbol table when starting new execution Changed paths: M phpdbg_prompt.c Diff: diff --git a/phpdbg_prompt.c b/phpdbg_prompt.c index cb46407..529ab04 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(

« previous php.cvs (#77086) next »