diff --git a/ext/opcache/jit/zend_jit_helpers.c b/ext/opcache/jit/zend_jit_helpers.c index 957f01584fb..da8a53a5fdb 100644 --- a/ext/opcache/jit/zend_jit_helpers.c +++ b/ext/opcache/jit/zend_jit_helpers.c @@ -1764,6 +1764,10 @@ static void ZEND_FASTCALL zend_jit_fetch_obj_w_slow(zend_object *zobj) } return; } + if (UNEXPECTED(EG(exception))) { + ZVAL_ERROR(result); + return; + } } else if (UNEXPECTED(Z_ISERROR_P(retval))) { ZVAL_ERROR(result); return;