com php-src: clean not destroy included files remove argc, argv from phpdbg_interactive, unused: phpdbg.c phpdbg_pro mpt.c phpdbg_prompt.h

From: Date: Mon, 11 Nov 2013 08:08:26 +0000
Subject: com php-src: clean not destroy included files remove argc, argv from phpdbg_interactive, unused: phpdbg.c phpdbg_pro mpt.c phpdbg_prompt.h
Groups: php.cvs 
Request: Send a blank email to php-cvs+get-75149@lists.php.net to get a copy of this message
Commit: 5f82f002f0d72d948c1e52f79a2a66d5d00a3581 Author: krakjoe <joe.watkins@live.co.uk> Mon, 11 Nov 2013 08:08:26 +0000 Parents: b77508f25094684f0197e1a2337ddec6143512ec Branches: PHP-5.6 Link: http://git.php.net/?p=php-src.git;a=commitdiff;h=5f82f002f0d72d948c1e52f79a2a66d5d00a3581 Log: clean not destroy included files remove argc, argv from phpdbg_interactive, unused Changed paths: M phpdbg.c M phpdbg_prompt.c M phpdbg_prompt.h Diff: diff --git a/phpdbg.c b/phpdbg.c index 3d4908c..bae33aa 100644 --- a/phpdbg..c +++ b/phpdbg.c @@ -355,7 +355,7 @@ int main(int argc, char *argv[]) /* {{{ */ do { zend_try { - phpdbg_interactive(argc, argv TSRMLS_CC); + phpdbg_interactive(TSRMLS_C); } zend_catch { } zend_end_try(); diff --git a/phpdbg_prompt.c b/phpdbg_prompt.c index f8a203c..8238ea3 100644 --- a/phpdbg_prompt.c +++ b/phpdbg_prompt.c @@ -270,7 +270,7 @@ static PHPDBG_COMMAND(clean) /* {{{ */ zend_hash_reverse_apply(EG(function_table), (apply_func_t) clean_non_persistent_function_full TSRMLS_CC); zend_hash_reverse_apply(EG(class_table), (apply_func_t) clean_non_persistent_class_full TSRMLS_CC); zend_hash_reverse_apply(EG(zend_constants), (apply_func_t) clean_non_persistent_constant_full TSRMLS_CC); - zend_hash_destroy(&EG(included_files)); + zend_hash_clean(&EG(included_files)); return SUCCESS; } /* }}} */ @@ -347,7 +347,7 @@ int phpdbg_do_cmd(const phpdbg_command_t *command, char *cmd_line, size_t cmd_le return FAILURE; } /* }}} */ -int phpdbg_interactive(int argc, char **argv TSRMLS_DC) /* {{{ */ +int phpdbg_interactive(TSRMLS_D) /* {{{ */ { char cmd[PHPDBG_MAX_CMD]; @@ -417,7 +417,7 @@ zend_vm_enter: if (PHPDBG_G(has_file_bp) && phpdbg_find_breakpoint_file(execute_data->op_array TSRMLS_CC) == SUCCESS) { - while (phpdbg_interactive(0, NULL TSRMLS_CC) != PHPDBG_NEXT) { + while (phpdbg_interactive(TSRMLS_C) != PHPDBG_NEXT) { continue; } } @@ -429,7 +429,7 @@ zend_vm_enter: || previous->opline->opcode == ZEND_DO_FCALL_BY_NAME) { if (phpdbg_find_breakpoint_symbol( previous->function_state.function TSRMLS_CC) == SUCCESS) { - while (phpdbg_interactive(0, NULL TSRMLS_CC) != PHPDBG_NEXT) { + while (phpdbg_interactive(TSRMLS_C) != PHPDBG_NEXT) { continue; } } @@ -443,7 +443,7 @@ zend_vm_enter: execute_data TSRMLS_CC); if (PHPDBG_G(stepping)) { - while (phpdbg_interactive(0, NULL TSRMLS_CC) != PHPDBG_NEXT) { + while (phpdbg_interactive(TSRMLS_C) != PHPDBG_NEXT) { continue; } } diff --git a/phpdbg_prompt..h b/phpdbg_prompt.h index 6675624..bddc7f9 100644 --- a/phpdbg_prompt.h +++ b/phpdbg_prompt.h @@ -58,7 +58,7 @@ int phpdbg_do_cmd(const phpdbg_command_t *command, char *cmd_line, size_t cmd_le #define PHPDBG_COMMAND(name) \ int phpdbg_do_##name(const char *expr, size_t expr_len TSRMLS_DC) -int phpdbg_interactive(int argc, char **argv TSRMLS_DC); +int phpdbg_interactive(TSRMLS_D); void phpdbg_execute_ex(zend_execute_data *execute_data TSRMLS_DC); #endif /* PHPDBG_PROMPT_H */

« previous php.cvs (#75149) next »