Lines Matching refs:class_name
176 if (arg_info->class_name && zend_string_equals_literal_ci(arg_info->class_name, "Traversable")) { in zend_iterable_compatibility_check()
186 if (ZEND_LOG_XOR(fe_arg_info->class_name, proto_arg_info->class_name)) { in zend_do_perform_type_hint_check()
191 if (fe_arg_info->class_name) { in zend_do_perform_type_hint_check()
193 const char *class_name; in zend_do_perform_type_hint_check() local
197 class_name = ((zend_internal_arg_info*)fe_arg_info)->class_name; in zend_do_perform_type_hint_check()
199 fe_class_name = fe_arg_info->class_name; in zend_do_perform_type_hint_check()
200 class_name = ZSTR_VAL(fe_arg_info->class_name); in zend_do_perform_type_hint_check()
202 if (!strcasecmp(class_name, "parent") && proto->common.scope) { in zend_do_perform_type_hint_check()
204 } else if (!strcasecmp(class_name, "self") && fe->common.scope) { in zend_do_perform_type_hint_check()
209 fe_class_name = zend_string_init(class_name, strlen(class_name), 0); in zend_do_perform_type_hint_check()
214 class_name = ((zend_internal_arg_info*)proto_arg_info)->class_name; in zend_do_perform_type_hint_check()
216 proto_class_name = proto_arg_info->class_name; in zend_do_perform_type_hint_check()
217 class_name = ZSTR_VAL(proto_arg_info->class_name); in zend_do_perform_type_hint_check()
219 if (!strcasecmp(class_name, "parent") && proto->common.scope && proto->common.scope->parent) { in zend_do_perform_type_hint_check()
221 } else if (!strcasecmp(class_name, "self") && proto->common.scope) { in zend_do_perform_type_hint_check()
226 proto_class_name = zend_string_init(class_name, strlen(class_name), 0); in zend_do_perform_type_hint_check()
393 if (arg_info->class_name) { in zend_append_type_hint()
394 const char *class_name; in zend_append_type_hint() local
398 class_name = ((zend_internal_arg_info*)arg_info)->class_name; in zend_append_type_hint()
399 class_name_len = strlen(class_name); in zend_append_type_hint()
401 class_name = ZSTR_VAL(arg_info->class_name); in zend_append_type_hint()
402 class_name_len = ZSTR_LEN(arg_info->class_name); in zend_append_type_hint()
405 if (!strcasecmp(class_name, "self") && fptr->common.scope) { in zend_append_type_hint()
406 class_name = ZSTR_VAL(fptr->common.scope->name); in zend_append_type_hint()
408 …} else if (!strcasecmp(class_name, "parent") && fptr->common.scope && fptr->common.scope->parent) { in zend_append_type_hint()
409 class_name = ZSTR_VAL(fptr->common.scope->parent->name); in zend_append_type_hint()
413 smart_str_appendl(str, class_name, class_name_len); in zend_append_type_hint()
1364 if (!(cur_precedence->trait_method->ce = zend_fetch_class(cur_method_ref->class_name, in zend_traits_init_trait_structures()
1366 …d_error_noreturn(E_COMPILE_ERROR, "Could not find trait %s", ZSTR_VAL(cur_method_ref->class_name)); in zend_traits_init_trait_structures()
1389 while (cur_precedence->exclude_from_classes[j].class_name) { in zend_traits_init_trait_structures()
1390 zend_string* class_name = cur_precedence->exclude_from_classes[j].class_name; in zend_traits_init_trait_structures() local
1392 …if (!(cur_precedence->exclude_from_classes[j].ce = zend_fetch_class(class_name, ZEND_FETCH_CLASS_T… in zend_traits_init_trait_structures()
1393 zend_error_noreturn(E_COMPILE_ERROR, "Could not find trait %s", ZSTR_VAL(class_name)); in zend_traits_init_trait_structures()
1408 zend_string_release(class_name); in zend_traits_init_trait_structures()
1421 if (ce->trait_aliases[i]->trait_method->class_name) { in zend_traits_init_trait_structures()
1423 …if (!(cur_method_ref->ce = zend_fetch_class(cur_method_ref->class_name, ZEND_FETCH_CLASS_TRAIT|ZEN… in zend_traits_init_trait_structures()
1424 …d_error_noreturn(E_COMPILE_ERROR, "Could not find trait %s", ZSTR_VAL(cur_method_ref->class_name)); in zend_traits_init_trait_structures()