mirror of
https://github.com/php/php-src.git
synced 2025-08-15 21:48:51 +02:00
Remove useless NULL-check in phpdbg_print (#13853)
&method->op_array cannot possibly be NULL because it takes a pointer to a field of method.
This commit is contained in:
parent
18496cc3d4
commit
248b5f5b0f
1 changed files with 6 additions and 8 deletions
|
@ -55,7 +55,6 @@ static inline void phpdbg_print_function_helper(zend_function *method) /* {{{ */
|
|||
case ZEND_USER_FUNCTION: {
|
||||
zend_op_array* op_array = &(method->op_array);
|
||||
|
||||
if (op_array) {
|
||||
zend_dump_op_array(op_array, ZEND_DUMP_LINE_NUMBERS, NULL, NULL);
|
||||
|
||||
for (uint32_t i = 0; i < op_array->num_dynamic_func_defs; i++) {
|
||||
|
@ -64,7 +63,6 @@ static inline void phpdbg_print_function_helper(zend_function *method) /* {{{ */
|
|||
i, (int) ZSTR_LEN(def->function_name), ZSTR_VAL(def->function_name));
|
||||
zend_dump_op_array(def, ZEND_DUMP_LINE_NUMBERS, NULL, NULL);
|
||||
}
|
||||
}
|
||||
} break;
|
||||
|
||||
default: {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue