]> granicus.if.org Git - php/commitdiff
Add extended_value to phpdbg opcode dump
authorSara Golemon <pollita@php.net>
Tue, 28 Mar 2017 15:54:45 +0000 (08:54 -0700)
committerSara Golemon <pollita@php.net>
Wed, 29 Mar 2017 11:08:52 +0000 (04:08 -0700)
sapi/phpdbg/phpdbg_opcode.c

index 368784cfd4ab647b71cabf8eb14661cc560f1a4a..62f5e8c71c72c91c54fa85b48936b9065f81975a 100644 (file)
@@ -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));