Skip to content

Commit 6fd8808

Browse files
committed
Add exception check to zend_jit_fetch_obj_w_slow()
This ports 247105a to the JIT implementation. The issue doesn't trigger on the original test case with JIT, but I ran into a case that does trigger with JIT once we have typed properties.
1 parent 982c833 commit 6fd8808

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

ext/opcache/jit/zend_jit_helpers.c

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1764,6 +1764,10 @@ static void ZEND_FASTCALL zend_jit_fetch_obj_w_slow(zend_object *zobj)
17641764
}
17651765
return;
17661766
}
1767+
if (UNEXPECTED(EG(exception))) {
1768+
ZVAL_ERROR(result);
1769+
return;
1770+
}
17671771
} else if (UNEXPECTED(Z_ISERROR_P(retval))) {
17681772
ZVAL_ERROR(result);
17691773
return;

0 commit comments

Comments
 (0)