Skip to content

Commit e57acee

Browse files
committed
Fixed access to wrong opline (it may be the last ZEND_THROW in op_array->opcodes)
1 parent 5ea4294 commit e57acee

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Zend/zend_exceptions.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -125,7 +125,7 @@ ZEND_API void zend_throw_exception_internal(zval *exception) /* {{{ */
125125

126126
if (!EG(current_execute_data)->func ||
127127
!ZEND_USER_CODE(EG(current_execute_data)->func->common.type) ||
128-
(EG(current_execute_data)->opline+1)->opcode == ZEND_HANDLE_EXCEPTION) {
128+
EG(current_execute_data)->opline->opcode == ZEND_HANDLE_EXCEPTION) {
129129
/* no need to rethrow the exception */
130130
return;
131131
}

0 commit comments

Comments
 (0)