Skip to content

Commit 7aa4afc

Browse files
committed
Eh add check only for exceptions not Error
1 parent 9771000 commit 7aa4afc

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
@@ -4095,7 +4095,8 @@ static void cleanup_unfinished_calls(zend_execute_data *execute_data, uint32_t o
40954095
/* Do not cleanup unfinished calls for SILENCE live range as it might still get executed
40964096
* However, this can only happen if the exception is an instance of Exception
40974097
* (Error never gets suppressed) */
4098-
if (UNEXPECTED(is_in_silence_live_range(EX(func)->op_array, op_num))) {
4098+
if (UNEXPECTED(is_in_silence_live_range(EX(func)->op_array, op_num)
4099+
&& instanceof_function(zend_ce_exception, EG(exception)->ce))) {
40994100
return;
41004101
}
41014102
zend_execute_data *call = EX(call);

0 commit comments

Comments
 (0)