Skip to content

Commit

Permalink
Fixed reading of jump tables for SWITCH_LONG/STRING
Browse files Browse the repository at this point in the history
  • Loading branch information
derickr committed Jul 15, 2019
1 parent e5a7889 commit 4e8b0aa
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions srm_oparray.c
Original file line number Diff line number Diff line change
Expand Up @@ -489,7 +489,7 @@ int vld_dump_znode (int *print_sep, unsigned int node_type, VLD_ZNODE node, unsi
zval *val;

#if PHP_VERSION_ID >= 70300
array_value = RT_CONSTANT((op_array->literals) + opline, node);
array_value = RT_CONSTANT((op_array->opcodes) + opline, node);
#else
array_value = RT_CONSTANT_EX(op_array->literals, node);
#endif
Expand Down Expand Up @@ -995,7 +995,7 @@ int vld_find_jumps(zend_op_array *opa, unsigned int position, size_t *jump_count
zval *val;

#if PHP_VERSION_ID >= 70300
array_value = RT_CONSTANT((opa->literals) + position, opcode.op2);
array_value = RT_CONSTANT((opa->opcodes) + position, opcode.op2);
#else
array_value = RT_CONSTANT_EX(opa->literals, opcode.op2);
#endif
Expand Down

0 comments on commit 4e8b0aa

Please sign in to comment.