Skip to content

Commit b639017

Browse files
committed
Eh add check only for exceptions not Error
1 parent 9dc134f commit b639017

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

Zend/zend_execute.c

+2-1
Original file line numberDiff line numberDiff line change
@@ -3810,7 +3810,8 @@ static void cleanup_unfinished_calls(zend_execute_data *execute_data, uint32_t o
38103810
/* Do not cleanup unfinished calls for SILENCE live range as it might still get executed
38113811
* However, this can only happen if the exception is an instance of Exception
38123812
* (Error never gets suppressed) */
3813-
if (UNEXPECTED(is_in_silence_live_range(EX(func)->op_array, op_num))) {
3813+
if (UNEXPECTED(is_in_silence_live_range(EX(func)->op_array, op_num)
3814+
&& instanceof_function(zend_ce_exception, EG(exception)->ce))) {
38143815
return;
38153816
}
38163817
zend_execute_data *call = EX(call);

0 commit comments

Comments
 (0)