diff options
Diffstat (limited to 'sapi/phpdbg/phpdbg_print.c')
-rw-r--r-- | sapi/phpdbg/phpdbg_print.c | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/sapi/phpdbg/phpdbg_print.c b/sapi/phpdbg/phpdbg_print.c index df925b6402..e009432a9e 100644 --- a/sapi/phpdbg/phpdbg_print.c +++ b/sapi/phpdbg/phpdbg_print.c @@ -87,6 +87,13 @@ static inline void phpdbg_print_function_helper(zend_function *method) /* {{{ */ efree(decode); opline++; } while (opcode++ < end); + + for (uint32_t i = 0; i < op_array->num_dynamic_func_defs; i++) { + zend_op_array *def = op_array->dynamic_func_defs[i]; + phpdbg_out("\ndynamic def: %i, function name: %.*s\n", + i, (int) ZSTR_LEN(def->function_name), ZSTR_VAL(def->function_name)); + phpdbg_print_function_helper((zend_function *) def); + } } } break; @@ -320,7 +327,7 @@ void phpdbg_print_opcodes_method(const char *class, const char *function) { static void phpdbg_print_opcodes_ce(zend_class_entry *ce) { zend_function *method; zend_string *method_name; - zend_bool first = 1; + bool first = 1; phpdbg_out("%s %s: %s\n", (ce->type == ZEND_USER_CLASS) ? |