Skip to content

Commit

Permalink
Assert no exception if using NEXT_OPCODE()
Browse files Browse the repository at this point in the history
When NEXT_OPCODE() is used instead of NEXT_OPCODE_CHECK_EXCEPTION(),
assert that there is indeed no exception.
  • Loading branch information
nikic committed Jul 7, 2020
1 parent 5d0687e commit b48bd67
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions Zend/zend_execute.c
Original file line number Diff line number Diff line change
Expand Up @@ -4319,6 +4319,7 @@ static zend_always_inline zend_execute_data *_zend_vm_stack_push_call_frame(uint
if (check_exception) { \
OPLINE = EX(opline) + (skip); \
} else { \
ZEND_ASSERT(!EG(exception)); \
OPLINE = opline + (skip); \
} \
ZEND_VM_CONTINUE()
Expand Down

0 comments on commit b48bd67

Please sign in to comment.