Lines Matching refs:common

208 …const char *class_name = active_function->common.scope ? ZSTR_VAL(active_function->common.scope->n…  in zend_wrong_parameters_count_error()
215 ZSTR_VAL(active_function->common.function_name), in zend_wrong_parameters_count_error()
796 const char *class_name = active_function->common.scope in zend_parse_parameters_debug_error()
797 ? ZSTR_VAL(active_function->common.scope->name) : ""; in zend_parse_parameters_debug_error()
800 ZSTR_VAL(active_function->common.function_name), msg); in zend_parse_parameters_debug_error()
876 …const char *class_name = active_function->common.scope ? ZSTR_VAL(active_function->common.scope->n… in zend_parse_va_args()
881 ZSTR_VAL(active_function->common.function_name), in zend_parse_va_args()
994 zend_bool is_method = EG(current_execute_data)->func->common.scope != NULL; in zend_parse_method_parameters()
2059 name_len = ZSTR_LEN(fptr->common.function_name); in zend_check_magic_method_implementation()
2060 …zend_str_tolower_copy(lcname, ZSTR_VAL(fptr->common.function_name), MIN(name_len, sizeof(lcname)-1… in zend_check_magic_method_implementation()
2063 … ZEND_DESTRUCTOR_FUNC_NAME, sizeof(ZEND_DESTRUCTOR_FUNC_NAME) - 1) && fptr->common.num_args != 0) { in zend_check_magic_method_implementation()
2065 …mp(lcname, ZEND_CLONE_FUNC_NAME, sizeof(ZEND_CLONE_FUNC_NAME) - 1) && fptr->common.num_args != 0) { in zend_check_magic_method_implementation()
2068 if (fptr->common.num_args != 1) { in zend_check_magic_method_implementation()
2074 if (fptr->common.num_args != 2) { in zend_check_magic_method_implementation()
2080 if (fptr->common.num_args != 1) { in zend_check_magic_method_implementation()
2086 if (fptr->common.num_args != 1) { in zend_check_magic_method_implementation()
2092 if (fptr->common.num_args != 2) { in zend_check_magic_method_implementation()
2100 if (fptr->common.num_args != 2) { in zend_check_magic_method_implementation()
2106 …!memcmp(lcname, ZEND_TOSTRING_FUNC_NAME, sizeof(ZEND_TOSTRING_FUNC_NAME)-1) && fptr->common.num_ar… in zend_check_magic_method_implementation()
2110 …!memcmp(lcname, ZEND_DEBUGINFO_FUNC_NAME, sizeof(ZEND_DEBUGINFO_FUNC_NAME)-1) && fptr->common.num_… in zend_check_magic_method_implementation()
2250 if (reg_function->common.arg_info && reg_function->common.num_args) { in zend_register_functions()
2252 for (i = 0; i < reg_function->common.num_args; i++) { in zend_register_functions()
2253 if (reg_function->common.arg_info[i].class_name || in zend_register_functions()
2254 reg_function->common.arg_info[i].type_hint) { in zend_register_functions()
2255 reg_function->common.fn_flags |= ZEND_ACC_HAS_TYPE_HINTS; in zend_register_functions()
2338 ctor->common.fn_flags |= ZEND_ACC_CTOR; in zend_register_functions()
2339 if (ctor->common.fn_flags & ZEND_ACC_STATIC) { in zend_register_functions()
2340 …nstructor %s::%s() cannot be static", ZSTR_VAL(scope->name), ZSTR_VAL(ctor->common.function_name)); in zend_register_functions()
2342 ctor->common.fn_flags &= ~ZEND_ACC_ALLOW_STATIC; in zend_register_functions()
2345 dtor->common.fn_flags |= ZEND_ACC_DTOR; in zend_register_functions()
2346 if (dtor->common.fn_flags & ZEND_ACC_STATIC) { in zend_register_functions()
2347 …estructor %s::%s() cannot be static", ZSTR_VAL(scope->name), ZSTR_VAL(dtor->common.function_name)); in zend_register_functions()
2349 dtor->common.fn_flags &= ~ZEND_ACC_ALLOW_STATIC; in zend_register_functions()
2352 clone->common.fn_flags |= ZEND_ACC_CLONE; in zend_register_functions()
2353 if (clone->common.fn_flags & ZEND_ACC_STATIC) { in zend_register_functions()
2354 …r_type, "%s::%s() cannot be static", ZSTR_VAL(scope->name), ZSTR_VAL(clone->common.function_name)); in zend_register_functions()
2356 clone->common.fn_flags &= ~ZEND_ACC_ALLOW_STATIC; in zend_register_functions()
2359 if (__call->common.fn_flags & ZEND_ACC_STATIC) { in zend_register_functions()
2360 …"Method %s::%s() cannot be static", ZSTR_VAL(scope->name), ZSTR_VAL(__call->common.function_name)); in zend_register_functions()
2362 __call->common.fn_flags &= ~ZEND_ACC_ALLOW_STATIC; in zend_register_functions()
2365 if (!(__callstatic->common.fn_flags & ZEND_ACC_STATIC)) { in zend_register_functions()
2366 …hod %s::%s() must be static", ZSTR_VAL(scope->name), ZSTR_VAL(__callstatic->common.function_name)); in zend_register_functions()
2368 __callstatic->common.fn_flags |= ZEND_ACC_STATIC; in zend_register_functions()
2371 if (__tostring->common.fn_flags & ZEND_ACC_STATIC) { in zend_register_functions()
2372 …hod %s::%s() cannot be static", ZSTR_VAL(scope->name), ZSTR_VAL(__tostring->common.function_name)); in zend_register_functions()
2374 __tostring->common.fn_flags &= ~ZEND_ACC_ALLOW_STATIC; in zend_register_functions()
2377 if (__get->common.fn_flags & ZEND_ACC_STATIC) { in zend_register_functions()
2378 … "Method %s::%s() cannot be static", ZSTR_VAL(scope->name), ZSTR_VAL(__get->common.function_name)); in zend_register_functions()
2380 __get->common.fn_flags &= ~ZEND_ACC_ALLOW_STATIC; in zend_register_functions()
2383 if (__set->common.fn_flags & ZEND_ACC_STATIC) { in zend_register_functions()
2384 … "Method %s::%s() cannot be static", ZSTR_VAL(scope->name), ZSTR_VAL(__set->common.function_name)); in zend_register_functions()
2386 __set->common.fn_flags &= ~ZEND_ACC_ALLOW_STATIC; in zend_register_functions()
2389 if (__unset->common.fn_flags & ZEND_ACC_STATIC) { in zend_register_functions()
2390 …Method %s::%s() cannot be static", ZSTR_VAL(scope->name), ZSTR_VAL(__unset->common.function_name)); in zend_register_functions()
2392 __unset->common.fn_flags &= ~ZEND_ACC_ALLOW_STATIC; in zend_register_functions()
2395 if (__isset->common.fn_flags & ZEND_ACC_STATIC) { in zend_register_functions()
2396 …Method %s::%s() cannot be static", ZSTR_VAL(scope->name), ZSTR_VAL(__isset->common.function_name)); in zend_register_functions()
2398 __isset->common.fn_flags &= ~ZEND_ACC_ALLOW_STATIC; in zend_register_functions()
2401 if (__debugInfo->common.fn_flags & ZEND_ACC_STATIC) { in zend_register_functions()
2402 …od %s::%s() cannot be static", ZSTR_VAL(scope->name), ZSTR_VAL(__debugInfo->common.function_name)); in zend_register_functions()
2406 …if (ctor && ctor->common.fn_flags & ZEND_ACC_HAS_RETURN_TYPE && ctor->common.fn_flags & ZEND_ACC_C… in zend_register_functions()
2407 …::%s() cannot declare a return type", ZSTR_VAL(scope->name), ZSTR_VAL(ctor->common.function_name)); in zend_register_functions()
2410 …if (dtor && dtor->common.fn_flags & ZEND_ACC_HAS_RETURN_TYPE && dtor->common.fn_flags & ZEND_ACC_D… in zend_register_functions()
2411 …::%s() cannot declare a return type", ZSTR_VAL(scope->name), ZSTR_VAL(dtor->common.function_name)); in zend_register_functions()
2414 if (clone && (clone->common.fn_flags & ZEND_ACC_HAS_RETURN_TYPE)) { in zend_register_functions()
2415 …:%s() cannot declare a return type", ZSTR_VAL(scope->name), ZSTR_VAL(clone->common.function_name)); in zend_register_functions()
2882 scope = ex ? ex->func->common.scope : NULL; in zend_is_callable_check_class()
3028 instanceof_function(fcc->function_handler->common.scope, scope)) { in zend_is_callable_check_func()
3032 && priv_fbc->common.fn_flags & ZEND_ACC_PRIVATE in zend_is_callable_check_func()
3033 && priv_fbc->common.scope == scope) { in zend_is_callable_check_func()
3049 } else if (fcc->function_handler->common.fn_flags & ZEND_ACC_PROTECTED) { in zend_is_callable_check_func()
3051 if (!zend_check_protected(fcc->function_handler->common.scope, scope)) { in zend_is_callable_check_func()
3069 (!fcc->function_handler->common.scope || in zend_is_callable_check_func()
3070 !instanceof_function(ce_org, fcc->function_handler->common.scope))) { in zend_is_callable_check_func()
3071 if (fcc->function_handler->common.fn_flags & ZEND_ACC_CALL_VIA_TRAMPOLINE) { in zend_is_callable_check_func()
3073 fcc->function_handler->common.function_name) { in zend_is_callable_check_func()
3074 zend_string_release(fcc->function_handler->common.function_name); in zend_is_callable_check_func()
3080 … call_via_handler = (fcc->function_handler->common.fn_flags & ZEND_ACC_CALL_VIA_TRAMPOLINE) != 0; in zend_is_callable_check_func()
3092 call_via_handler = (fcc->function_handler->common.fn_flags & ZEND_ACC_CALL_VIA_TRAMPOLINE) != 0; in zend_is_callable_check_func()
3106 if (fcc->function_handler->common.fn_flags & ZEND_ACC_ABSTRACT) { in zend_is_callable_check_func()
3108 …:%s()", ZSTR_VAL(fcc->calling_scope->name), ZSTR_VAL(fcc->function_handler->common.function_name)); in zend_is_callable_check_func()
3111 …:%s()", ZSTR_VAL(fcc->calling_scope->name), ZSTR_VAL(fcc->function_handler->common.function_name)); in zend_is_callable_check_func()
3114 } else if (!fcc->object && !(fcc->function_handler->common.fn_flags & ZEND_ACC_STATIC)) { in zend_is_callable_check_func()
3117 if (fcc->function_handler->common.fn_flags & ZEND_ACC_ALLOW_STATIC) { in zend_is_callable_check_func()
3129 …ly", ZSTR_VAL(fcc->calling_scope->name), ZSTR_VAL(fcc->function_handler->common.function_name), ve… in zend_is_callable_check_func()
3135 …ly", ZSTR_VAL(fcc->calling_scope->name), ZSTR_VAL(fcc->function_handler->common.function_name), ve… in zend_is_callable_check_func()
3137 …ly", ZSTR_VAL(fcc->calling_scope->name), ZSTR_VAL(fcc->function_handler->common.function_name), ve… in zend_is_callable_check_func()
3149 …:%s()", ZSTR_VAL(fcc->calling_scope->name), ZSTR_VAL(fcc->function_handler->common.function_name)); in zend_is_callable_check_func()
3153 } else if ((fcc->function_handler->common.fn_flags & ZEND_ACC_PROTECTED)) { in zend_is_callable_check_func()
3155 if (!zend_check_protected(fcc->function_handler->common.scope, scope)) { in zend_is_callable_check_func()
3160 …:%s()", ZSTR_VAL(fcc->calling_scope->name), ZSTR_VAL(fcc->function_handler->common.function_name)); in zend_is_callable_check_func()
3242 ((fcc->function_handler->common.fn_flags & ZEND_ACC_CALL_VIA_TRAMPOLINE) || in zend_is_callable_ex()
3246 fcc->function_handler->common.function_name) { in zend_is_callable_ex()
3247 zend_string_release(fcc->function_handler->common.function_name); in zend_is_callable_ex()
3330 ((fcc->function_handler->common.fn_flags & ZEND_ACC_CALL_VIA_TRAMPOLINE) || in zend_is_callable_ex()
3334 fcc->function_handler->common.function_name) { in zend_is_callable_ex()
3335 zend_string_release(fcc->function_handler->common.function_name); in zend_is_callable_ex()
3404 add_next_index_str(callable, zend_string_copy(fcc.function_handler->common.function_name)); in zend_make_callable()
3407 ((fcc.function_handler->common.fn_flags & ZEND_ACC_CALL_VIA_TRAMPOLINE) || in zend_make_callable()
3411 zend_string_release(fcc.function_handler->common.function_name); in zend_make_callable()
4198 if (f->common.type != ZEND_USER_FUNCTION || in zend_resolve_method_name()
4200 !f->common.scope || in zend_resolve_method_name()
4201 !f->common.scope->trait_aliases) { in zend_resolve_method_name()
4202 return f->common.function_name; in zend_resolve_method_name()
4209 return f->common.function_name; in zend_resolve_method_name()
4211 if (ZSTR_LEN(name) == ZSTR_LEN(f->common.function_name) && in zend_resolve_method_name()
4212 …!strncasecmp(ZSTR_VAL(name), ZSTR_VAL(f->common.function_name), ZSTR_LEN(f->common.function_name))… in zend_resolve_method_name()
4213 return f->common.function_name; in zend_resolve_method_name()
4215 return zend_find_alias_name(f->common.scope, name); in zend_resolve_method_name()
4218 return f->common.function_name; in zend_resolve_method_name()