Skip to content

Commit 1a9f4f9

Browse files
committed
Fixed JMPZNZ instruction printing
1 parent da6e286 commit 1a9f4f9

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

sapi/phpdbg/phpdbg_opcode.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -87,7 +87,7 @@ char *phpdbg_decode_opline(zend_op_array *ops, zend_op *op, HashTable *vars) /*{
8787
switch (op->opcode) {
8888
/* TODO: ZEND_FAST_CALL, ZEND_FAST_RET op2 */
8989
case ZEND_JMPZNZ:
90-
asprintf(&decode[2], "J%u or J%" PRIu32, op->op2.opline_num, op->extended_value);
90+
asprintf(&decode[2], "J%u or J%" PRIu32, OP_JMP_ADDR(op, op->op2) - ops->opcodes, ZEND_OFFSET_TO_OPLINE(op, op->extended_value) - ops->opcodes);
9191
break;
9292

9393
case ZEND_JMPZ:

0 commit comments

Comments
 (0)