Lines Matching refs:scope

176 …const char *class_name = active_function->common.scope ? ZSTR_VAL(active_function->common.scope->n…  in zend_wrong_parameters_none_error()
196 …const char *class_name = active_function->common.scope ? ZSTR_VAL(active_function->common.scope->n… in zend_wrong_parameters_none_exception()
216 …const char *class_name = active_function->common.scope ? ZSTR_VAL(active_function->common.scope->n… in zend_wrong_parameters_count_error()
235 …const char *class_name = active_function->common.scope ? ZSTR_VAL(active_function->common.scope->n… in zend_wrong_parameters_count_exception()
862 const char *class_name = active_function->common.scope in zend_parse_parameters_debug_error()
863 ? ZSTR_VAL(active_function->common.scope->name) : ""; in zend_parse_parameters_debug_error()
942 …const char *class_name = active_function->common.scope ? ZSTR_VAL(active_function->common.scope->n… in zend_parse_va_args()
1060 zend_bool is_method = EG(current_execute_data)->func->common.scope != NULL; in zend_parse_method_parameters()
2158 ZEND_API int zend_register_functions(zend_class_entry *scope, const zend_function_entry *functions,… in zend_register_functions() argument
2185 if (scope) { in zend_register_functions()
2186 class_name_len = ZSTR_LEN(scope->name); in zend_register_functions()
2187 if ((lc_class_name = zend_memrchr(ZSTR_VAL(scope->name), '\\', class_name_len))) { in zend_register_functions()
2189 class_name_len -= (lc_class_name - ZSTR_VAL(scope->name)); in zend_register_functions()
2192 lc_class_name = zend_str_tolower_dup(ZSTR_VAL(scope->name), class_name_len); in zend_register_functions()
2200 internal_function->scope = scope; in zend_register_functions()
2204 if (ptr->flags != ZEND_ACC_DEPRECATED && scope) { in zend_register_functions()
2205 …s must be exactly one of public, protected or private", scope ? ZSTR_VAL(scope->name) : "", scope in zend_register_functions()
2240 if (!scope && (!strcasecmp(type_name, "self") || !strcasecmp(type_name, "parent"))) { in zend_register_functions()
2254 if (scope) { in zend_register_functions()
2256 scope->ce_flags |= ZEND_ACC_IMPLICIT_ABSTRACT_CLASS; in zend_register_functions()
2257 if (!(scope->ce_flags & ZEND_ACC_INTERFACE)) { in zend_register_functions()
2261 scope->ce_flags |= ZEND_ACC_EXPLICIT_ABSTRACT_CLASS; in zend_register_functions()
2264 if (ptr->flags & ZEND_ACC_STATIC && (!scope || !(scope->ce_flags & ZEND_ACC_INTERFACE))) { in zend_register_functions()
2265 …or_type, "Static function %s%s%s() cannot be abstract", scope ? ZSTR_VAL(scope->name) : "", scope in zend_register_functions()
2268 if (scope && (scope->ce_flags & ZEND_ACC_INTERFACE)) { in zend_register_functions()
2270 …zend_error(error_type, "Interface %s cannot contain non abstract method %s()", ZSTR_VAL(scope->nam… in zend_register_functions()
2274 if (scope) { in zend_register_functions()
2277 …rror_type, "Method %s%s%s() cannot be a NULL function", scope ? ZSTR_VAL(scope->name) : "", scope in zend_register_functions()
2334 if (scope) { in zend_register_functions()
2348 …zend_error(error_type, "Destructor %s::%s() cannot take arguments", ZSTR_VAL(scope->name), ptr->fn… in zend_register_functions()
2360 scope->ce_flags |= ZEND_ACC_USE_GUARDS; in zend_register_functions()
2363 scope->ce_flags |= ZEND_ACC_USE_GUARDS; in zend_register_functions()
2366 scope->ce_flags |= ZEND_ACC_USE_GUARDS; in zend_register_functions()
2369 scope->ce_flags |= ZEND_ACC_USE_GUARDS; in zend_register_functions()
2376 zend_check_magic_method_implementation(scope, reg_function, error_type); in zend_register_functions()
2384 if (scope) { in zend_register_functions()
2392 …unction registration failed - duplicate name - %s%s%s", scope ? ZSTR_VAL(scope->name) : "", scope in zend_register_functions()
2400 if (scope) { in zend_register_functions()
2401 scope->constructor = ctor; in zend_register_functions()
2402 scope->destructor = dtor; in zend_register_functions()
2403 scope->clone = clone; in zend_register_functions()
2404 scope->__call = __call; in zend_register_functions()
2405 scope->__callstatic = __callstatic; in zend_register_functions()
2406 scope->__tostring = __tostring; in zend_register_functions()
2407 scope->__get = __get; in zend_register_functions()
2408 scope->__set = __set; in zend_register_functions()
2409 scope->__unset = __unset; in zend_register_functions()
2410 scope->__isset = __isset; in zend_register_functions()
2411 scope->__debugInfo = __debugInfo; in zend_register_functions()
2415 …zend_error(error_type, "Constructor %s::%s() cannot be static", ZSTR_VAL(scope->name), ZSTR_VAL(ct… in zend_register_functions()
2422 …zend_error(error_type, "Destructor %s::%s() cannot be static", ZSTR_VAL(scope->name), ZSTR_VAL(dto… in zend_register_functions()
2428 …zend_error(error_type, "%s::%s() cannot be static", ZSTR_VAL(scope->name), ZSTR_VAL(clone->common.… in zend_register_functions()
2434 …zend_error(error_type, "Method %s::%s() cannot be static", ZSTR_VAL(scope->name), ZSTR_VAL(__call-… in zend_register_functions()
2440 …zend_error(error_type, "Method %s::%s() must be static", ZSTR_VAL(scope->name), ZSTR_VAL(__callsta… in zend_register_functions()
2446 …zend_error(error_type, "Method %s::%s() cannot be static", ZSTR_VAL(scope->name), ZSTR_VAL(__tostr… in zend_register_functions()
2452 …zend_error(error_type, "Method %s::%s() cannot be static", ZSTR_VAL(scope->name), ZSTR_VAL(__get->… in zend_register_functions()
2458 …zend_error(error_type, "Method %s::%s() cannot be static", ZSTR_VAL(scope->name), ZSTR_VAL(__set->… in zend_register_functions()
2464 …zend_error(error_type, "Method %s::%s() cannot be static", ZSTR_VAL(scope->name), ZSTR_VAL(__unset… in zend_register_functions()
2470 …zend_error(error_type, "Method %s::%s() cannot be static", ZSTR_VAL(scope->name), ZSTR_VAL(__isset… in zend_register_functions()
2476 …zend_error(error_type, "Method %s::%s() cannot be static", ZSTR_VAL(scope->name), ZSTR_VAL(__debug… in zend_register_functions()
2481 …CORE_ERROR, "Constructor %s::%s() cannot declare a return type", ZSTR_VAL(scope->name), ZSTR_VAL(c… in zend_register_functions()
2485 …_CORE_ERROR, "Destructor %s::%s() cannot declare a return type", ZSTR_VAL(scope->name), ZSTR_VAL(d… in zend_register_functions()
2489 …zend_error_noreturn(E_CORE_ERROR, "%s::%s() cannot declare a return type", ZSTR_VAL(scope->name), … in zend_register_functions()
2911 static int zend_is_callable_check_class(zend_string *name, zend_class_entry *scope, zend_fcall_info… in zend_is_callable_check_class() argument
2924 if (!scope) { in zend_is_callable_check_class()
2928 fcc->calling_scope = scope; in zend_is_callable_check_class()
2935 if (!scope) { in zend_is_callable_check_class()
2937 } else if (!scope->parent) { in zend_is_callable_check_class()
2941 fcc->calling_scope = scope->parent; in zend_is_callable_check_class()
2963 zend_class_entry *scope; in zend_is_callable_check_class() local
2969 scope = ex ? ex->func->common.scope : NULL; in zend_is_callable_check_class()
2971 if (scope && !fcc->object) { in zend_is_callable_check_class()
2975 instanceof_function(object->ce, scope) && in zend_is_callable_check_class()
2976 instanceof_function(scope, ce)) { in zend_is_callable_check_class()
3005 zend_class_entry *scope; in zend_is_callable_check_func() local
3058 scope = ce_org; in zend_is_callable_check_func()
3060 scope = zend_get_executed_scope(); in zend_is_callable_check_func()
3064 if (!zend_is_callable_check_class(cname, scope, fcc, &strict_class, error)) { in zend_is_callable_check_func()
3103 scope = zend_get_executed_scope(); in zend_is_callable_check_func()
3104 if (scope && in zend_is_callable_check_func()
3105 instanceof_function(fcc->function_handler->common.scope, scope)) { in zend_is_callable_check_func()
3107 zv = zend_hash_find(&scope->function_table, lmname); in zend_is_callable_check_func()
3112 && priv_fbc->common.scope == scope) { in zend_is_callable_check_func()
3123 scope = zend_get_executed_scope(); in zend_is_callable_check_func()
3124 if (!zend_check_private(fcc->function_handler, fcc->object ? fcc->object->ce : scope, lmname)) { in zend_is_callable_check_func()
3130 scope = zend_get_executed_scope(); in zend_is_callable_check_func()
3131 if (!zend_check_protected(fcc->function_handler->common.scope, scope)) { in zend_is_callable_check_func()
3149 (!fcc->function_handler->common.scope || in zend_is_callable_check_func()
3150 !instanceof_function(ce_org, fcc->function_handler->common.scope))) { in zend_is_callable_check_func()
3223 scope = zend_get_executed_scope(); in zend_is_callable_check_func()
3224 … if (!zend_check_private(fcc->function_handler, fcc->object ? fcc->object->ce : scope, lmname)) { in zend_is_callable_check_func()
3234 scope = zend_get_executed_scope(); in zend_is_callable_check_func()
3235 if (!zend_check_protected(fcc->function_handler->common.scope, scope)) { in zend_is_callable_check_func()
3962 ZEND_API void zend_update_property_ex(zend_class_entry *scope, zval *object, zend_string *name, zva… in zend_update_property_ex() argument
3967 EG(fake_scope) = scope; in zend_update_property_ex()
3979 ZEND_API void zend_update_property(zend_class_entry *scope, zval *object, const char *name, size_t … in zend_update_property() argument
3984 EG(fake_scope) = scope; in zend_update_property()
3997 ZEND_API void zend_update_property_null(zend_class_entry *scope, zval *object, const char *name, si… in zend_update_property_null() argument
4002 zend_update_property(scope, object, name, name_length, &tmp); in zend_update_property_null()
4006 ZEND_API void zend_unset_property(zend_class_entry *scope, zval *object, const char *name, size_t n… in zend_unset_property() argument
4011 EG(fake_scope) = scope; in zend_unset_property()
4024 ZEND_API void zend_update_property_bool(zend_class_entry *scope, zval *object, const char *name, si… in zend_update_property_bool() argument
4029 zend_update_property(scope, object, name, name_length, &tmp); in zend_update_property_bool()
4033 ZEND_API void zend_update_property_long(zend_class_entry *scope, zval *object, const char *name, si… in zend_update_property_long() argument
4038 zend_update_property(scope, object, name, name_length, &tmp); in zend_update_property_long()
4042 ZEND_API void zend_update_property_double(zend_class_entry *scope, zval *object, const char *name, … in zend_update_property_double() argument
4047 zend_update_property(scope, object, name, name_length, &tmp); in zend_update_property_double()
4051 ZEND_API void zend_update_property_str(zend_class_entry *scope, zval *object, const char *name, siz… in zend_update_property_str() argument
4056 zend_update_property(scope, object, name, name_length, &tmp); in zend_update_property_str()
4060 ZEND_API void zend_update_property_string(zend_class_entry *scope, zval *object, const char *name, … in zend_update_property_string() argument
4066 zend_update_property(scope, object, name, name_length, &tmp); in zend_update_property_string()
4070 ZEND_API void zend_update_property_stringl(zend_class_entry *scope, zval *object, const char *name,… in zend_update_property_stringl() argument
4076 zend_update_property(scope, object, name, name_length, &tmp); in zend_update_property_stringl()
4080 ZEND_API int zend_update_static_property_ex(zend_class_entry *scope, zend_string *name, zval *value… in zend_update_static_property_ex() argument
4085 if (UNEXPECTED(!(scope->ce_flags & ZEND_ACC_CONSTANTS_UPDATED))) { in zend_update_static_property_ex()
4086 if (UNEXPECTED(zend_update_class_constants(scope)) != SUCCESS) { in zend_update_static_property_ex()
4091 EG(fake_scope) = scope; in zend_update_static_property_ex()
4092 property = zend_std_get_static_property(scope, name, 0); in zend_update_static_property_ex()
4111 ZEND_API int zend_update_static_property(zend_class_entry *scope, const char *name, size_t name_len… in zend_update_static_property() argument
4114 int retval = zend_update_static_property_ex(scope, key, value); in zend_update_static_property()
4120 ZEND_API int zend_update_static_property_null(zend_class_entry *scope, const char *name, size_t nam… in zend_update_static_property_null() argument
4125 return zend_update_static_property(scope, name, name_length, &tmp); in zend_update_static_property_null()
4129 ZEND_API int zend_update_static_property_bool(zend_class_entry *scope, const char *name, size_t nam… in zend_update_static_property_bool() argument
4134 return zend_update_static_property(scope, name, name_length, &tmp); in zend_update_static_property_bool()
4138 ZEND_API int zend_update_static_property_long(zend_class_entry *scope, const char *name, size_t nam… in zend_update_static_property_long() argument
4143 return zend_update_static_property(scope, name, name_length, &tmp); in zend_update_static_property_long()
4147 ZEND_API int zend_update_static_property_double(zend_class_entry *scope, const char *name, size_t n… in zend_update_static_property_double() argument
4152 return zend_update_static_property(scope, name, name_length, &tmp); in zend_update_static_property_double()
4156 ZEND_API int zend_update_static_property_string(zend_class_entry *scope, const char *name, size_t n… in zend_update_static_property_string() argument
4162 return zend_update_static_property(scope, name, name_length, &tmp); in zend_update_static_property_string()
4166 ZEND_API int zend_update_static_property_stringl(zend_class_entry *scope, const char *name, size_t … in zend_update_static_property_stringl() argument
4172 return zend_update_static_property(scope, name, name_length, &tmp); in zend_update_static_property_stringl()
4176 ZEND_API zval *zend_read_property_ex(zend_class_entry *scope, zval *object, zend_string *name, zend… in zend_read_property_ex() argument
4181 EG(fake_scope) = scope; in zend_read_property_ex()
4195 ZEND_API zval *zend_read_property(zend_class_entry *scope, zval *object, const char *name, size_t n… in zend_read_property() argument
4201 value = zend_read_property_ex(scope, object, str, silent, rv); in zend_read_property()
4207 ZEND_API zval *zend_read_static_property_ex(zend_class_entry *scope, zend_string *name, zend_bool s… in zend_read_static_property_ex() argument
4212 EG(fake_scope) = scope; in zend_read_static_property_ex()
4213 property = zend_std_get_static_property(scope, name, silent); in zend_read_static_property_ex()
4220 ZEND_API zval *zend_read_static_property(zend_class_entry *scope, const char *name, size_t name_len… in zend_read_static_property() argument
4223 zval *property = zend_read_static_property_ex(scope, key, silent); in zend_read_static_property()
4282 !f->common.scope || in zend_resolve_method_name()
4283 !f->common.scope->trait_aliases) { in zend_resolve_method_name()
4297 return zend_find_alias_name(f->common.scope, name); in zend_resolve_method_name()