mirror of
https://github.com/php/php-src.git
synced 2026-04-29 19:23:22 +02:00
- WS, removed unused var
This commit is contained in:
+3
-3
@@ -75,10 +75,10 @@ struct _phpdbg_command_t {
|
||||
/**
|
||||
* Command Executor
|
||||
*/
|
||||
int phpdbg_do_cmd(const phpdbg_command_t*, char *, size_t TSRMLS_DC);
|
||||
int phpdbg_do_cmd(const phpdbg_command_t*, char*, size_t TSRMLS_DC);
|
||||
phpdbg_param_type phpdbg_parse_param(const char*, size_t, phpdbg_param_t* TSRMLS_DC);
|
||||
void phpdbg_clear_param(phpdbg_param_t * TSRMLS_DC);
|
||||
const char* phpdbg_get_param_type(const phpdbg_param_t *param TSRMLS_DC);
|
||||
void phpdbg_clear_param(phpdbg_param_t* TSRMLS_DC);
|
||||
const char* phpdbg_get_param_type(const phpdbg_param_t* TSRMLS_DC);
|
||||
|
||||
/**
|
||||
* Command Declarators
|
||||
|
||||
+7
-7
@@ -55,7 +55,7 @@ PHPDBG_INFO(vars) /* {{{ */
|
||||
HashTable vars;
|
||||
HashPosition pos;
|
||||
char *var;
|
||||
zval **data, *zdata;
|
||||
zval **data;
|
||||
|
||||
if (!EG(active_symbol_table)) {
|
||||
zend_rebuild_symbol_table(TSRMLS_C);
|
||||
@@ -78,7 +78,7 @@ PHPDBG_INFO(vars) /* {{{ */
|
||||
}
|
||||
zend_hash_move_forward_ex(EG(active_symbol_table), &pos);
|
||||
}
|
||||
|
||||
|
||||
phpdbg_notice("Variables: %d",
|
||||
zend_hash_num_elements(&vars));
|
||||
phpdbg_writeln("Refs\tName");
|
||||
@@ -87,24 +87,24 @@ PHPDBG_INFO(vars) /* {{{ */
|
||||
zend_hash_get_current_data_ex(&vars, (void**) &data, &pos) == SUCCESS;
|
||||
zend_hash_move_forward_ex(&vars, &pos)) {
|
||||
char *var;
|
||||
|
||||
|
||||
zend_hash_get_current_key_ex(&vars, &var, NULL, NULL, 0, &pos);
|
||||
|
||||
|
||||
if (*data) {
|
||||
phpdbg_write(
|
||||
"%d\t%s$%s\t\t",
|
||||
Z_REFCOUNT_PP(data),
|
||||
Z_ISREF_PP(data) ? "&" : "", var);
|
||||
|
||||
|
||||
zend_print_flat_zval_r(*data TSRMLS_CC);
|
||||
} else {
|
||||
phpdbg_write("0\t$%s", var);
|
||||
}
|
||||
phpdbg_writeln(EMPTY);
|
||||
}
|
||||
|
||||
|
||||
zend_hash_destroy(&vars);
|
||||
|
||||
|
||||
return SUCCESS;
|
||||
} /* }}} */
|
||||
|
||||
|
||||
Reference in New Issue
Block a user