Assert no exception if using NEXT_OPCODE()

When NEXT_OPCODE() is used instead of NEXT_OPCODE_CHECK_EXCEPTION(),
assert that there is indeed no exception.
This commit is contained in:
Nikita Popov 2020-07-07 11:34:43 +02:00
parent 5d0687e895
commit b48bd671b8

View File

@ -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()