Skip to content

Commit ec099be

Browse files
committed
Eh add check only for exceptions not Error
1 parent ad28e92 commit ec099be

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

Zend/zend_execute.c

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3901,7 +3901,8 @@ static void cleanup_unfinished_calls(zend_execute_data *execute_data, uint32_t o
39013901
/* Do not cleanup unfinished calls for SILENCE live range as it might still get executed
39023902
* However, this can only happen if the exception is an instance of Exception
39033903
* (Error never gets suppressed) */
3904-
if (UNEXPECTED(is_in_silence_live_range(EX(func)->op_array, op_num))) {
3904+
if (UNEXPECTED(is_in_silence_live_range(EX(func)->op_array, op_num)
3905+
&& instanceof_function(zend_ce_exception, EG(exception)->ce))) {
39053906
return;
39063907
}
39073908
zend_execute_data *call = EX(call);

0 commit comments

Comments
 (0)