]> granicus.if.org Git - php/commitdiff
Clean root symbol table when starting new execution
authorBob Weinand <bobwei9@hotmail.com>
Sat, 18 Jan 2014 23:48:53 +0000 (18:48 -0500)
committerBob Weinand <bobwei9@hotmail.com>
Sat, 18 Jan 2014 23:48:53 +0000 (18:48 -0500)
phpdbg_prompt.c

index cb46407957cd34368d74f30c9510645281cdb791..529ab04194d4b7f29d539efb608b99ada6f8e818 100644 (file)
@@ -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(