Skip to content

Commit f1d36ca

Browse files
authored
fix(tracing): hook is_internal was backwards (#3625)
1 parent 6843f96 commit f1d36ca

File tree

1 file changed

+1
-1
lines changed
  • zend_abstract_interface/hook

1 file changed

+1
-1
lines changed

zend_abstract_interface/hook/hook.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -399,7 +399,7 @@ static void zai_hook_resolve_hooks_entry(zai_hooks_entry *hooks, zend_function *
399399
hooks->run_time_cache = ZEND_MAP_PTR(resolved->common.run_time_cache);
400400
#endif
401401
}
402-
hooks->is_internal = ZEND_USER_CODE(resolved->type);
402+
hooks->is_internal = !ZEND_USER_CODE(resolved->type);
403403
hooks->is_generator = (resolved->common.fn_flags & ZEND_ACC_GENERATOR) != 0;
404404
if (hooks->is_generator) {
405405
#if ZAI_JIT_BLACKLIST_ACTIVE

0 commit comments

Comments
 (0)