Skip to content

Commit b48bd67

Browse files
committed
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.
1 parent 5d0687e commit b48bd67

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

Zend/zend_execute.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4319,6 +4319,7 @@ static zend_always_inline zend_execute_data *_zend_vm_stack_push_call_frame(uint
43194319
if (check_exception) { \
43204320
OPLINE = EX(opline) + (skip); \
43214321
} else { \
4322+
ZEND_ASSERT(!EG(exception)); \
43224323
OPLINE = opline + (skip); \
43234324
} \
43244325
ZEND_VM_CONTINUE()

0 commit comments

Comments
 (0)