Lines Matching refs:common

203 …const char *class_name = active_function->common.scope ? ZSTR_VAL(active_function->common.scope->n…  in zend_wrong_paramers_count_error()
208 ZSTR_VAL(active_function->common.function_name), in zend_wrong_paramers_count_error()
795 const char *class_name = active_function->common.scope in zend_parse_parameters_debug_error()
796 ? ZSTR_VAL(active_function->common.scope->name) : ""; in zend_parse_parameters_debug_error()
799 ZSTR_VAL(active_function->common.function_name), msg); in zend_parse_parameters_debug_error()
875 …const char *class_name = active_function->common.scope ? ZSTR_VAL(active_function->common.scope->n… in zend_parse_va_args()
880 ZSTR_VAL(active_function->common.function_name), in zend_parse_va_args()
993 zend_bool is_method = EG(current_execute_data)->func->common.scope != NULL; in zend_parse_method_parameters()
2063 name_len = ZSTR_LEN(fptr->common.function_name); in zend_check_magic_method_implementation()
2064 …zend_str_tolower_copy(lcname, ZSTR_VAL(fptr->common.function_name), MIN(name_len, sizeof(lcname)-1… in zend_check_magic_method_implementation()
2067 … ZEND_DESTRUCTOR_FUNC_NAME, sizeof(ZEND_DESTRUCTOR_FUNC_NAME) - 1) && fptr->common.num_args != 0) { in zend_check_magic_method_implementation()
2069 …mp(lcname, ZEND_CLONE_FUNC_NAME, sizeof(ZEND_CLONE_FUNC_NAME) - 1) && fptr->common.num_args != 0) { in zend_check_magic_method_implementation()
2072 if (fptr->common.num_args != 1) { in zend_check_magic_method_implementation()
2078 if (fptr->common.num_args != 2) { in zend_check_magic_method_implementation()
2084 if (fptr->common.num_args != 1) { in zend_check_magic_method_implementation()
2090 if (fptr->common.num_args != 1) { in zend_check_magic_method_implementation()
2096 if (fptr->common.num_args != 2) { in zend_check_magic_method_implementation()
2104 if (fptr->common.num_args != 2) { in zend_check_magic_method_implementation()
2110 …!memcmp(lcname, ZEND_TOSTRING_FUNC_NAME, sizeof(ZEND_TOSTRING_FUNC_NAME)-1) && fptr->common.num_ar… in zend_check_magic_method_implementation()
2114 …!memcmp(lcname, ZEND_DEBUGINFO_FUNC_NAME, sizeof(ZEND_DEBUGINFO_FUNC_NAME)-1) && fptr->common.num_… in zend_check_magic_method_implementation()
2254 if (reg_function->common.arg_info && reg_function->common.num_args) { in zend_register_functions()
2256 for (i = 0; i < reg_function->common.num_args; i++) { in zend_register_functions()
2257 if (reg_function->common.arg_info[i].class_name || in zend_register_functions()
2258 reg_function->common.arg_info[i].type_hint) { in zend_register_functions()
2259 reg_function->common.fn_flags |= ZEND_ACC_HAS_TYPE_HINTS; in zend_register_functions()
2342 ctor->common.fn_flags |= ZEND_ACC_CTOR; in zend_register_functions()
2343 if (ctor->common.fn_flags & ZEND_ACC_STATIC) { in zend_register_functions()
2344 …nstructor %s::%s() cannot be static", ZSTR_VAL(scope->name), ZSTR_VAL(ctor->common.function_name)); in zend_register_functions()
2346 ctor->common.fn_flags &= ~ZEND_ACC_ALLOW_STATIC; in zend_register_functions()
2349 dtor->common.fn_flags |= ZEND_ACC_DTOR; in zend_register_functions()
2350 if (dtor->common.fn_flags & ZEND_ACC_STATIC) { in zend_register_functions()
2351 …estructor %s::%s() cannot be static", ZSTR_VAL(scope->name), ZSTR_VAL(dtor->common.function_name)); in zend_register_functions()
2353 dtor->common.fn_flags &= ~ZEND_ACC_ALLOW_STATIC; in zend_register_functions()
2356 clone->common.fn_flags |= ZEND_ACC_CLONE; in zend_register_functions()
2357 if (clone->common.fn_flags & ZEND_ACC_STATIC) { in zend_register_functions()
2358 …structor %s::%s() cannot be static", ZSTR_VAL(scope->name), ZSTR_VAL(clone->common.function_name)); in zend_register_functions()
2360 clone->common.fn_flags &= ~ZEND_ACC_ALLOW_STATIC; in zend_register_functions()
2363 if (__call->common.fn_flags & ZEND_ACC_STATIC) { in zend_register_functions()
2364 …"Method %s::%s() cannot be static", ZSTR_VAL(scope->name), ZSTR_VAL(__call->common.function_name)); in zend_register_functions()
2366 __call->common.fn_flags &= ~ZEND_ACC_ALLOW_STATIC; in zend_register_functions()
2369 if (!(__callstatic->common.fn_flags & ZEND_ACC_STATIC)) { in zend_register_functions()
2370 …hod %s::%s() must be static", ZSTR_VAL(scope->name), ZSTR_VAL(__callstatic->common.function_name)); in zend_register_functions()
2372 __callstatic->common.fn_flags |= ZEND_ACC_STATIC; in zend_register_functions()
2375 if (__tostring->common.fn_flags & ZEND_ACC_STATIC) { in zend_register_functions()
2376 …hod %s::%s() cannot be static", ZSTR_VAL(scope->name), ZSTR_VAL(__tostring->common.function_name)); in zend_register_functions()
2378 __tostring->common.fn_flags &= ~ZEND_ACC_ALLOW_STATIC; in zend_register_functions()
2381 if (__get->common.fn_flags & ZEND_ACC_STATIC) { in zend_register_functions()
2382 … "Method %s::%s() cannot be static", ZSTR_VAL(scope->name), ZSTR_VAL(__get->common.function_name)); in zend_register_functions()
2384 __get->common.fn_flags &= ~ZEND_ACC_ALLOW_STATIC; in zend_register_functions()
2387 if (__set->common.fn_flags & ZEND_ACC_STATIC) { in zend_register_functions()
2388 … "Method %s::%s() cannot be static", ZSTR_VAL(scope->name), ZSTR_VAL(__set->common.function_name)); in zend_register_functions()
2390 __set->common.fn_flags &= ~ZEND_ACC_ALLOW_STATIC; in zend_register_functions()
2393 if (__unset->common.fn_flags & ZEND_ACC_STATIC) { in zend_register_functions()
2394 …Method %s::%s() cannot be static", ZSTR_VAL(scope->name), ZSTR_VAL(__unset->common.function_name)); in zend_register_functions()
2396 __unset->common.fn_flags &= ~ZEND_ACC_ALLOW_STATIC; in zend_register_functions()
2399 if (__isset->common.fn_flags & ZEND_ACC_STATIC) { in zend_register_functions()
2400 …Method %s::%s() cannot be static", ZSTR_VAL(scope->name), ZSTR_VAL(__isset->common.function_name)); in zend_register_functions()
2402 __isset->common.fn_flags &= ~ZEND_ACC_ALLOW_STATIC; in zend_register_functions()
2405 if (__debugInfo->common.fn_flags & ZEND_ACC_STATIC) { in zend_register_functions()
2406 …od %s::%s() cannot be static", ZSTR_VAL(scope->name), ZSTR_VAL(__debugInfo->common.function_name)); in zend_register_functions()
2410 …if (ctor && ctor->common.fn_flags & ZEND_ACC_HAS_RETURN_TYPE && ctor->common.fn_flags & ZEND_ACC_C… in zend_register_functions()
2411 …::%s() cannot declare a return type", ZSTR_VAL(scope->name), ZSTR_VAL(ctor->common.function_name)); in zend_register_functions()
2414 …if (dtor && dtor->common.fn_flags & ZEND_ACC_HAS_RETURN_TYPE && dtor->common.fn_flags & ZEND_ACC_D… in zend_register_functions()
2415 …::%s() cannot declare a return type", ZSTR_VAL(scope->name), ZSTR_VAL(dtor->common.function_name)); in zend_register_functions()
2418 …if (clone && clone->common.fn_flags & ZEND_ACC_HAS_RETURN_TYPE && dtor->common.fn_flags & ZEND_ACC… in zend_register_functions()
2419 …:%s() cannot declare a return type", ZSTR_VAL(scope->name), ZSTR_VAL(clone->common.function_name)); in zend_register_functions()
2885 scope = ex ? ex->func->common.scope : NULL; in zend_is_callable_check_class()
3029 instanceof_function(fcc->function_handler->common.scope, EG(scope))) { in zend_is_callable_check_func()
3033 && priv_fbc->common.fn_flags & ZEND_ACC_PRIVATE in zend_is_callable_check_func()
3034 && priv_fbc->common.scope == EG(scope)) { in zend_is_callable_check_func()
3048 } else if (fcc->function_handler->common.fn_flags & ZEND_ACC_PROTECTED) { in zend_is_callable_check_func()
3049 if (!zend_check_protected(fcc->function_handler->common.scope, EG(scope))) { in zend_is_callable_check_func()
3067 (!fcc->function_handler->common.scope || in zend_is_callable_check_func()
3068 !instanceof_function(ce_org, fcc->function_handler->common.scope))) { in zend_is_callable_check_func()
3069 if (fcc->function_handler->common.fn_flags & ZEND_ACC_CALL_VIA_TRAMPOLINE) { in zend_is_callable_check_func()
3071 fcc->function_handler->common.function_name) { in zend_is_callable_check_func()
3072 zend_string_release(fcc->function_handler->common.function_name); in zend_is_callable_check_func()
3078 … call_via_handler = (fcc->function_handler->common.fn_flags & ZEND_ACC_CALL_VIA_TRAMPOLINE) != 0; in zend_is_callable_check_func()
3090 call_via_handler = (fcc->function_handler->common.fn_flags & ZEND_ACC_CALL_VIA_TRAMPOLINE) != 0; in zend_is_callable_check_func()
3104 if (fcc->function_handler->common.fn_flags & ZEND_ACC_ABSTRACT) { in zend_is_callable_check_func()
3106 …:%s()", ZSTR_VAL(fcc->calling_scope->name), ZSTR_VAL(fcc->function_handler->common.function_name)); in zend_is_callable_check_func()
3109 …:%s()", ZSTR_VAL(fcc->calling_scope->name), ZSTR_VAL(fcc->function_handler->common.function_name)); in zend_is_callable_check_func()
3112 } else if (!fcc->object && !(fcc->function_handler->common.fn_flags & ZEND_ACC_STATIC)) { in zend_is_callable_check_func()
3115 if (fcc->function_handler->common.fn_flags & ZEND_ACC_ALLOW_STATIC) { in zend_is_callable_check_func()
3127 …ly", ZSTR_VAL(fcc->calling_scope->name), ZSTR_VAL(fcc->function_handler->common.function_name), ve… in zend_is_callable_check_func()
3133 …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()
3146 …:%s()", ZSTR_VAL(fcc->calling_scope->name), ZSTR_VAL(fcc->function_handler->common.function_name)); in zend_is_callable_check_func()
3150 } else if ((fcc->function_handler->common.fn_flags & ZEND_ACC_PROTECTED)) { in zend_is_callable_check_func()
3151 if (!zend_check_protected(fcc->function_handler->common.scope, EG(scope))) { in zend_is_callable_check_func()
3156 …:%s()", ZSTR_VAL(fcc->calling_scope->name), ZSTR_VAL(fcc->function_handler->common.function_name)); in zend_is_callable_check_func()
3238 ((fcc->function_handler->common.fn_flags & ZEND_ACC_CALL_VIA_TRAMPOLINE) || in zend_is_callable_ex()
3242 fcc->function_handler->common.function_name) { in zend_is_callable_ex()
3243 zend_string_release(fcc->function_handler->common.function_name); in zend_is_callable_ex()
3326 ((fcc->function_handler->common.fn_flags & ZEND_ACC_CALL_VIA_TRAMPOLINE) || in zend_is_callable_ex()
3330 fcc->function_handler->common.function_name) { in zend_is_callable_ex()
3331 zend_string_release(fcc->function_handler->common.function_name); in zend_is_callable_ex()
3400 add_next_index_str(callable, zend_string_copy(fcc.function_handler->common.function_name)); in zend_make_callable()
3403 ((fcc.function_handler->common.fn_flags & ZEND_ACC_CALL_VIA_TRAMPOLINE) || in zend_make_callable()
3407 zend_string_release(fcc.function_handler->common.function_name); in zend_make_callable()
4147 if (f->common.type != ZEND_USER_FUNCTION || in zend_resolve_method_name()
4149 !f->common.scope || in zend_resolve_method_name()
4150 !f->common.scope->trait_aliases) { in zend_resolve_method_name()
4151 return f->common.function_name; in zend_resolve_method_name()
4158 return f->common.function_name; in zend_resolve_method_name()
4160 if (ZSTR_LEN(name) == ZSTR_LEN(f->common.function_name) && in zend_resolve_method_name()
4161 …!strncasecmp(ZSTR_VAL(name), ZSTR_VAL(f->common.function_name), ZSTR_LEN(f->common.function_name))… in zend_resolve_method_name()
4162 return f->common.function_name; in zend_resolve_method_name()
4164 return zend_find_alias_name(f->common.scope, name); in zend_resolve_method_name()
4167 return f->common.function_name; in zend_resolve_method_name()