From bd72fdca98d093f5a905d86cbe1ab5f89b36d62d Mon Sep 17 00:00:00 2001 From: Nikita Popov Date: Fri, 10 Jul 2015 11:22:34 +0200 Subject: Better opcode dump for finally * Move opcode decode into opline decode, so we can adjust it for extended_value. * Show extended_value and secondary jump ops for FAST_CALL and FAST_RET. --- sapi/phpdbg/phpdbg_print.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'sapi/phpdbg/phpdbg_print.c') diff --git a/sapi/phpdbg/phpdbg_print.c b/sapi/phpdbg/phpdbg_print.c index 95e0caf784..eff9a406e1 100644 --- a/sapi/phpdbg/phpdbg_print.c +++ b/sapi/phpdbg/phpdbg_print.c @@ -83,10 +83,9 @@ static inline void phpdbg_print_function_helper(zend_function *method) /* {{{ */ do { char *decode = phpdbg_decode_opline(op_array, opline); if (decode != NULL) { - phpdbg_writeln("print", "line=\"%u\" opnum=\"%u\" opcode=\"%s\" op=\"%s\"", " L%-4u #%-5u %-23s %s", + phpdbg_writeln("print", "line=\"%u\" opnum=\"%u\" op=\"%s\"", " L%-4u #%-5u %s", opline->lineno, opcode, - phpdbg_decode_opcode(opline->opcode) + 5, /* remove ZEND_ prefix */ decode); free(decode); } else { -- cgit v1.2.1