com php-src: Add extended_value to phpdbg opcode dump : sapi/phpdbg/phpdbg_opcode.c
[email protected] (Sara Golemon)
| Newsgroups | php.cvs |
|---|---|
| Message-ID | <[email protected]> |
Commit: 764b529efd43b1254a900114022332868babe8cb Author: Sara Golemon <[email protected]> Tue, 28 Mar 2017 08:54:45 -0700 Parents: e4ebd9a28a120e3aba9f63258b7b502bee9c1e1e Branches: master Link: http://git.php.net/?p=php-src.git;a=commitdiff;h=764b529efd43b1254a900114022332868babe8cb Log: Add extended_value to phpdbg opcode dump Changed paths: M sapi/phpdbg/phpdbg_opcode.c Diff: diff --git a/sapi/phpdbg/phpdbg_opcode.c b/sapi/phpdbg/phpdbg_opcode.c index 368784c..62f5e8c 100644 --- a/sapi/phpdbg/phpdbg_opcode.c +++ b/sapi/phpdbg/phpdbg_opcode.c @@ -99,6 +99,11 @@ char *phpdbg_decode_opline(zend_op_array *ops, zend_op *opline) /*{{{ */ uint32_t flags = zend_get_opcode_flags(opline->opcode); char *result, *decode[4] = {NULL, NULL, NULL, NULL}; + /* OpcodeName */ + if (opline->extended_value) { + spprintf(&decode[0], 0, "%s<%" PRIi32 ">", opcode_name, opline->extended_value); + } + /* OP1 */ decode[1] = phpdbg_decode_input_op( ops, opline, opline->op1, opline->op1_type, ZEND_VM_OP1_FLAGS(flags));