From 407d761d0938c052f8b065c13d3f82759973a028 Mon Sep 17 00:00:00 2001 From: krakjoe Date: Sun, 2 Feb 2014 15:10:17 +0000 Subject: clean symbols --- sapi/phpdbg/phpdbg_prompt.c | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'sapi/phpdbg/phpdbg_prompt.c') 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( -- cgit v1.2.1 From 148d7cc103a0f33e417f44769a8ff4f862107c49 Mon Sep 17 00:00:00 2001 From: krakjoe Date: Sun, 2 Feb 2014 15:14:25 +0000 Subject: windows --- sapi/phpdbg/phpdbg_prompt.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'sapi/phpdbg/phpdbg_prompt.c') diff --git a/sapi/phpdbg/phpdbg_prompt.c b/sapi/phpdbg/phpdbg_prompt.c index 529ab04194..f586bb5a84 100644 --- a/sapi/phpdbg/phpdbg_prompt.c +++ b/sapi/phpdbg/phpdbg_prompt.c @@ -552,6 +552,7 @@ PHPDBG_COMMAND(run) /* {{{ */ zend_op_array *orig_op_array = EG(active_op_array); zval **orig_retval_ptr = EG(return_value_ptr_ptr); zend_bool restore = 1; + zend_execute_data *ex = EG(current_execute_data); if (!PHPDBG_G(ops)) { if (phpdbg_compile(TSRMLS_C) == FAILURE) { @@ -567,7 +568,6 @@ PHPDBG_COMMAND(run) /* {{{ */ } /* clean up from last execution */ - zend_execute_data *ex = EG(current_execute_data); if (ex && ex->symbol_table) { zend_hash_clean(ex->symbol_table); } -- cgit v1.2.1