summaryrefslogtreecommitdiff
path: root/sapi/phpdbg/phpdbg_opcode.c
diff options
context:
space:
mode:
authorSara Golemon <pollita@php.net>2017-03-28 08:54:45 -0700
committerSara Golemon <pollita@php.net>2017-03-29 04:08:52 -0700
commit764b529efd43b1254a900114022332868babe8cb (patch)
tree6911daff4be9c508d8f23f5b8223481ef47d1a23 /sapi/phpdbg/phpdbg_opcode.c
parente4ebd9a28a120e3aba9f63258b7b502bee9c1e1e (diff)
downloadphp-git-764b529efd43b1254a900114022332868babe8cb.tar.gz
Add extended_value to phpdbg opcode dump
Diffstat (limited to 'sapi/phpdbg/phpdbg_opcode.c')
-rw-r--r--sapi/phpdbg/phpdbg_opcode.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/sapi/phpdbg/phpdbg_opcode.c b/sapi/phpdbg/phpdbg_opcode.c
index 368784cfd4..62f5e8c71c 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));