mirror of
https://github.com/php/php-src.git
synced 2025-08-20 01:14:28 +02:00
- Fix compiler warning
This commit is contained in:
parent
6b3b14e8dd
commit
e8cb646fed
1 changed files with 10 additions and 10 deletions
20
phpdbg_bp.c
20
phpdbg_bp.c
|
@ -325,26 +325,26 @@ void phpdbg_print_breakpoints(zend_ulong type TSRMLS_DC) /* {{{ */
|
||||||
"#%d\t\t%s\n", brake->id, brake->symbol);
|
"#%d\t\t%s\n", brake->id, brake->symbol);
|
||||||
}
|
}
|
||||||
} break;
|
} break;
|
||||||
|
|
||||||
case PHPDBG_BREAK_METHOD: if ((PHPDBG_G(flags) & PHPDBG_HAS_METHOD_BP)) {
|
case PHPDBG_BREAK_METHOD: if ((PHPDBG_G(flags) & PHPDBG_HAS_METHOD_BP)) {
|
||||||
HashPosition position[2];
|
HashPosition position[2];
|
||||||
HashTable *class_table;
|
HashTable *class_table;
|
||||||
char *class_name = NULL;
|
char *class_name = NULL;
|
||||||
zend_uint class_len = 0;
|
zend_uint class_len = 0;
|
||||||
zend_ulong class_idx = 0L;
|
zend_ulong class_idx = 0L;
|
||||||
|
|
||||||
PHPDBG_SEP_LINE(TSRMLS_C);
|
PHPDBG_SEP_LINE(TSRMLS_C);
|
||||||
printf("Method Breakpoints:\n");
|
printf("Method Breakpoints:\n");
|
||||||
for (zend_hash_internal_pointer_reset_ex(&PHPDBG_G(bp)[PHPDBG_BREAK_METHOD], &position[0]);
|
for (zend_hash_internal_pointer_reset_ex(&PHPDBG_G(bp)[PHPDBG_BREAK_METHOD], &position[0]);
|
||||||
zend_hash_get_current_data_ex(&PHPDBG_G(bp)[PHPDBG_BREAK_METHOD], (void**) &class_table, &position[0]) == SUCCESS;
|
zend_hash_get_current_data_ex(&PHPDBG_G(bp)[PHPDBG_BREAK_METHOD], (void**) &class_table, &position[0]) == SUCCESS;
|
||||||
zend_hash_move_forward_ex(&PHPDBG_G(bp)[PHPDBG_BREAK_METHOD], &position[0])) {
|
zend_hash_move_forward_ex(&PHPDBG_G(bp)[PHPDBG_BREAK_METHOD], &position[0])) {
|
||||||
|
|
||||||
if (zend_hash_get_current_key_ex(
|
if (zend_hash_get_current_key_ex(
|
||||||
&PHPDBG_G(bp)[PHPDBG_BREAK_METHOD],
|
&PHPDBG_G(bp)[PHPDBG_BREAK_METHOD],
|
||||||
&class_name, &class_len, &class_idx, 0, &position[0]) == HASH_KEY_IS_STRING) {
|
&class_name, &class_len, &class_idx, 0, &position[0]) == HASH_KEY_IS_STRING) {
|
||||||
|
|
||||||
phpdbg_breakmethod_t *brake;
|
phpdbg_breakmethod_t *brake;
|
||||||
|
|
||||||
for (zend_hash_internal_pointer_reset_ex(class_table, &position[1]);
|
for (zend_hash_internal_pointer_reset_ex(class_table, &position[1]);
|
||||||
zend_hash_get_current_data_ex(class_table, (void**)&brake, &position[1]) == SUCCESS;
|
zend_hash_get_current_data_ex(class_table, (void**)&brake, &position[1]) == SUCCESS;
|
||||||
zend_hash_move_forward_ex(class_table, &position[1])) {
|
zend_hash_move_forward_ex(class_table, &position[1])) {
|
||||||
|
@ -352,10 +352,10 @@ void phpdbg_print_breakpoints(zend_ulong type TSRMLS_DC) /* {{{ */
|
||||||
"#%d\t\t%s::%s\n", brake->id, brake->class_name, brake->func_name);
|
"#%d\t\t%s::%s\n", brake->id, brake->class_name, brake->func_name);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
} break;
|
} break;
|
||||||
|
|
||||||
case PHPDBG_BREAK_FILE: if ((PHPDBG_G(flags) & PHPDBG_HAS_FILE_BP)) {
|
case PHPDBG_BREAK_FILE: if ((PHPDBG_G(flags) & PHPDBG_HAS_FILE_BP)) {
|
||||||
HashPosition position;
|
HashPosition position;
|
||||||
zend_llist *points;
|
zend_llist *points;
|
||||||
|
@ -375,7 +375,7 @@ void phpdbg_print_breakpoints(zend_ulong type TSRMLS_DC) /* {{{ */
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
} break;
|
} break;
|
||||||
|
|
||||||
case PHPDBG_BREAK_OPLINE: if ((PHPDBG_G(flags) & PHPDBG_HAS_OPLINE_BP)) {
|
case PHPDBG_BREAK_OPLINE: if ((PHPDBG_G(flags) & PHPDBG_HAS_OPLINE_BP)) {
|
||||||
HashPosition position;
|
HashPosition position;
|
||||||
phpdbg_breakline_t *brake;
|
phpdbg_breakline_t *brake;
|
||||||
|
@ -385,7 +385,7 @@ void phpdbg_print_breakpoints(zend_ulong type TSRMLS_DC) /* {{{ */
|
||||||
for (zend_hash_internal_pointer_reset_ex(&PHPDBG_G(bp)[PHPDBG_BREAK_OPLINE], &position);
|
for (zend_hash_internal_pointer_reset_ex(&PHPDBG_G(bp)[PHPDBG_BREAK_OPLINE], &position);
|
||||||
zend_hash_get_current_data_ex(&PHPDBG_G(bp)[PHPDBG_BREAK_OPLINE], (void**) &brake, &position) == SUCCESS;
|
zend_hash_get_current_data_ex(&PHPDBG_G(bp)[PHPDBG_BREAK_OPLINE], (void**) &brake, &position) == SUCCESS;
|
||||||
zend_hash_move_forward_ex(&PHPDBG_G(bp)[PHPDBG_BREAK_OPLINE], &position)) {
|
zend_hash_move_forward_ex(&PHPDBG_G(bp)[PHPDBG_BREAK_OPLINE], &position)) {
|
||||||
printf("#%d\t\t%p\n", brake->id, brake->opline);
|
printf("#%d\t\t%#lx\n", brake->id, brake->opline);
|
||||||
}
|
}
|
||||||
} break;
|
} break;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue