Lines Matching refs:hooks
1301 zend_type set_type = parent->hooks[ZEND_PROPERTY_HOOK_SET]->common.arg_info[0].type; in emit_set_hook_type_error()
1327 ZEND_ASSERT(parent_info->hooks); in verify_property_type_compatibility()
1328 if (parent_info->hooks[ZEND_PROPERTY_HOOK_SET] in verify_property_type_compatibility()
1329 && (!child_info->hooks || !child_info->hooks[ZEND_PROPERTY_HOOK_SET])) { in verify_property_type_compatibility()
1330 zend_type set_type = parent_info->hooks[ZEND_PROPERTY_HOOK_SET]->common.arg_info[0].type; in verify_property_type_compatibility()
1345 || (prop_info->hooks && prop_info->hooks[kind]); in property_has_operation()
1354 zend_function *parent = parent_info->hooks ? parent_info->hooks[kind] : NULL; in inherit_property_hook()
1355 zend_function *child = child_info->hooks ? child_info->hooks[kind] : NULL; in inherit_property_hook()
1375 if (!child_info->hooks) { in inherit_property_hook()
1377 child_info->hooks = zend_arena_alloc(&CG(arena), ZEND_PROPERTY_HOOK_STRUCT_SIZE); in inherit_property_hook()
1378 memset(child_info->hooks, 0, ZEND_PROPERTY_HOOK_STRUCT_SIZE); in inherit_property_hook()
1380 child_info->hooks[kind] = zend_duplicate_function(parent, ce); in inherit_property_hook()
1412 if (unbacked && prop_info->hooks) { in prop_get_variance()
1413 if (!prop_info->hooks[ZEND_PROPERTY_HOOK_SET]) { in prop_get_variance()
1416 if (!prop_info->hooks[ZEND_PROPERTY_HOOK_GET]) { in prop_get_variance()
1459 …&& !(parent_info->hooks && (parent_info->flags & ZEND_ACC_VIRTUAL) && !parent_info->hooks[ZEND_PRO… in do_inherit_property()
1495 if (parent_info->hooks || child_info->hooks) { in do_inherit_property()
1517 zend_function **hooks = parent_info->hooks; in do_inherit_property() local
1518 if (hooks) { in do_inherit_property()
1673 if (!prop_info->hooks) { in zend_verify_hooked_property()
1691 zend_function *func = prop_info->hooks[i]; in zend_verify_hooked_property()
1696 && prop_info->hooks[ZEND_PROPERTY_HOOK_SET]) { in zend_verify_hooked_property()
1711 && (!prop_info->hooks[ZEND_PROPERTY_HOOK_GET] || !prop_info->hooks[ZEND_PROPERTY_HOOK_SET])) { in zend_verify_hooked_property()
1712 const char *prefix = !prop_info->hooks[ZEND_PROPERTY_HOOK_GET] in zend_verify_hooked_property()
1728 …zend_string *value_param_name = prop_info->hooks[ZEND_PROPERTY_HOOK_SET]->op_array.arg_info[0].nam… in zend_hooked_property_variance_error()
1734 ZEND_ASSERT(prop_info->hooks && prop_info->hooks[ZEND_PROPERTY_HOOK_SET] == func); in zend_verify_property_hook_variance()
1912 if (property_info->ce == ce && property_info->hooks) { in zend_do_inheritance_ex()
2248 if (!prop->hooks) { in zend_inheritance_check_override()
2252 f = prop->hooks[i]; in zend_inheritance_check_override()
2826 if (colliding_prop->hooks || property_info->hooks) { in zend_do_traits_property_binding()
2904 if (property_info->hooks) { in zend_do_traits_property_binding()
2905 zend_function **hooks = new_prop->hooks = in zend_do_traits_property_binding() local
2907 memcpy(hooks, property_info->hooks, ZEND_PROPERTY_HOOK_STRUCT_SIZE); in zend_do_traits_property_binding()
2909 if (hooks[i]) { in zend_do_traits_property_binding()
2910 zend_function *old_fn = hooks[i]; in zend_do_traits_property_binding()
2925 hooks[i] = new_fn; in zend_do_traits_property_binding()
3005 if (prop_info->hooks) { in zend_verify_abstract_class()
3007 const zend_function *fn = prop_info->hooks[i]; in zend_verify_abstract_class()
3387 if (new_prop_info->hooks) { in zend_lazy_class_load()
3388 new_prop_info->hooks = zend_arena_alloc(&CG(arena), ZEND_PROPERTY_HOOK_STRUCT_SIZE); in zend_lazy_class_load()
3389 memcpy(new_prop_info->hooks, prop_info->hooks, ZEND_PROPERTY_HOOK_STRUCT_SIZE); in zend_lazy_class_load()
3391 if (new_prop_info->hooks[i]) { in zend_lazy_class_load()
3392 … zend_op_array *hook = zend_lazy_method_load((zend_op_array *) new_prop_info->hooks[i], ce, pce); in zend_lazy_class_load()
3396 new_prop_info->hooks[i] = (zend_function *) hook; in zend_lazy_class_load()
3607 if (prop_info->ce == ce && prop_info->hooks && prop_info->hooks[ZEND_PROPERTY_HOOK_SET]) { in zend_do_link_class()
3608 … switch (zend_verify_property_hook_variance(prop_info, prop_info->hooks[ZEND_PROPERTY_HOOK_SET])) { in zend_do_link_class()
3615 add_property_hook_obligation(ce, prop_info, prop_info->hooks[ZEND_PROPERTY_HOOK_SET]); in zend_do_link_class()