}
func = call->func;
- if (func->common.fn_flags & ZEND_ACC_CALL_VIA_TRAMPOLINE) {
+ if (func->common.fn_flags & (ZEND_ACC_CALL_VIA_TRAMPOLINE|ZEND_ACC_NEVER_CACHE)) {
/* TODO: Can we continue recording ??? */
return -1;
}
/* TODO: Can we continue recording ??? */
stop = ZEND_JIT_TRACE_STOP_TRAMPOLINE;
break;
+ } else if (EX(call)->func->common.fn_flags & ZEND_ACC_NEVER_CACHE) {
+ /* TODO: Can we continue recording ??? */
+ stop = ZEND_JIT_TRACE_STOP_BAD_FUNC;
+ break;
}
func = EX(call)->func;
if (func->type == ZEND_USER_FUNCTION