Lines Matching refs:scope

203 …const char *class_name = active_function->common.scope ? ZSTR_VAL(active_function->common.scope->n…  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()
875 …const char *class_name = active_function->common.scope ? ZSTR_VAL(active_function->common.scope->n… in zend_parse_va_args()
993 zend_bool is_method = EG(current_execute_data)->func->common.scope != NULL; in zend_parse_method_parameters()
1070 zend_class_entry *old_scope = EG(scope); in zend_merge_properties()
1074 EG(scope) = Z_OBJCE_P(obj); in zend_merge_properties()
1083 EG(scope) = old_scope; in zend_merge_properties()
1124 zend_class_entry **scope = EG(current_execute_data) ? &EG(scope) : &CG(active_class_entry); in zend_update_class_constants() local
1125 zend_class_entry *old_scope = *scope; in zend_update_class_constants()
1130 *scope = class_type; in zend_update_class_constants()
1151 *scope = ce; in zend_update_class_constants()
1161 *scope = old_scope; in zend_update_class_constants()
1227 zend_class_entry *prev_scope = EG(scope); in object_properties_load()
1230 EG(scope) = zend_lookup_class(cname); in object_properties_load()
1235 EG(scope) = prev_scope; in object_properties_load()
2121 ZEND_API int zend_register_functions(zend_class_entry *scope, const zend_function_entry *functions,… in zend_register_functions() argument
2148 if (scope) { in zend_register_functions()
2149 class_name_len = ZSTR_LEN(scope->name); in zend_register_functions()
2150 if ((lc_class_name = zend_memrchr(ZSTR_VAL(scope->name), '\\', class_name_len))) { in zend_register_functions()
2152 class_name_len -= (lc_class_name - ZSTR_VAL(scope->name)); in zend_register_functions()
2155 lc_class_name = zend_str_tolower_dup(ZSTR_VAL(scope->name), class_name_len); in zend_register_functions()
2163 internal_function->scope = scope; in zend_register_functions()
2167 if (ptr->flags != ZEND_ACC_DEPRECATED || scope) { in zend_register_functions()
2168 …s must be exactly one of public, protected or private", scope ? ZSTR_VAL(scope->name) : "", scope in zend_register_functions()
2199 …if (!scope && (!strcasecmp(info->class_name, "self") || !strcasecmp(info->class_name, "parent"))) { in zend_register_functions()
2213 if (scope) { in zend_register_functions()
2215 scope->ce_flags |= ZEND_ACC_IMPLICIT_ABSTRACT_CLASS; in zend_register_functions()
2216 if (!(scope->ce_flags & ZEND_ACC_INTERFACE)) { in zend_register_functions()
2220 scope->ce_flags |= ZEND_ACC_EXPLICIT_ABSTRACT_CLASS; in zend_register_functions()
2223 if (ptr->flags & ZEND_ACC_STATIC && (!scope || !(scope->ce_flags & ZEND_ACC_INTERFACE))) { in zend_register_functions()
2224 …or_type, "Static function %s%s%s() cannot be abstract", scope ? ZSTR_VAL(scope->name) : "", scope in zend_register_functions()
2227 if (scope && (scope->ce_flags & ZEND_ACC_INTERFACE)) { in zend_register_functions()
2229 …zend_error(error_type, "Interface %s cannot contain non abstract method %s()", ZSTR_VAL(scope->nam… in zend_register_functions()
2233 if (scope) { in zend_register_functions()
2236 …rror_type, "Method %s%s%s() cannot be a NULL function", scope ? ZSTR_VAL(scope->name) : "", scope in zend_register_functions()
2265 if (scope) { in zend_register_functions()
2277 …zend_error(error_type, "Destructor %s::%s() cannot take arguments", ZSTR_VAL(scope->name), ptr->fn… in zend_register_functions()
2289 scope->ce_flags |= ZEND_ACC_USE_GUARDS; in zend_register_functions()
2292 scope->ce_flags |= ZEND_ACC_USE_GUARDS; in zend_register_functions()
2295 scope->ce_flags |= ZEND_ACC_USE_GUARDS; in zend_register_functions()
2298 scope->ce_flags |= ZEND_ACC_USE_GUARDS; in zend_register_functions()
2305 zend_check_magic_method_implementation(scope, reg_function, error_type); in zend_register_functions()
2313 if (scope) { in zend_register_functions()
2321 …unction registration failed - duplicate name - %s%s%s", scope ? ZSTR_VAL(scope->name) : "", scope in zend_register_functions()
2329 if (scope) { in zend_register_functions()
2330 scope->constructor = ctor; in zend_register_functions()
2331 scope->destructor = dtor; in zend_register_functions()
2332 scope->clone = clone; in zend_register_functions()
2333 scope->__call = __call; in zend_register_functions()
2334 scope->__callstatic = __callstatic; in zend_register_functions()
2335 scope->__tostring = __tostring; in zend_register_functions()
2336 scope->__get = __get; in zend_register_functions()
2337 scope->__set = __set; in zend_register_functions()
2338 scope->__unset = __unset; in zend_register_functions()
2339 scope->__isset = __isset; in zend_register_functions()
2340 scope->__debugInfo = __debugInfo; in zend_register_functions()
2344 …zend_error(error_type, "Constructor %s::%s() cannot be static", ZSTR_VAL(scope->name), ZSTR_VAL(ct… in zend_register_functions()
2351 …zend_error(error_type, "Destructor %s::%s() cannot be static", ZSTR_VAL(scope->name), ZSTR_VAL(dto… in zend_register_functions()
2358 …zend_error(error_type, "Constructor %s::%s() cannot be static", ZSTR_VAL(scope->name), ZSTR_VAL(cl… in zend_register_functions()
2364 …zend_error(error_type, "Method %s::%s() cannot be static", ZSTR_VAL(scope->name), ZSTR_VAL(__call-… in zend_register_functions()
2370 …zend_error(error_type, "Method %s::%s() must be static", ZSTR_VAL(scope->name), ZSTR_VAL(__callsta… in zend_register_functions()
2376 …zend_error(error_type, "Method %s::%s() cannot be static", ZSTR_VAL(scope->name), ZSTR_VAL(__tostr… in zend_register_functions()
2382 …zend_error(error_type, "Method %s::%s() cannot be static", ZSTR_VAL(scope->name), ZSTR_VAL(__get->… in zend_register_functions()
2388 …zend_error(error_type, "Method %s::%s() cannot be static", ZSTR_VAL(scope->name), ZSTR_VAL(__set->… in zend_register_functions()
2394 …zend_error(error_type, "Method %s::%s() cannot be static", ZSTR_VAL(scope->name), ZSTR_VAL(__unset… in zend_register_functions()
2400 …zend_error(error_type, "Method %s::%s() cannot be static", ZSTR_VAL(scope->name), ZSTR_VAL(__isset… in zend_register_functions()
2406 …zend_error(error_type, "Method %s::%s() cannot be static", ZSTR_VAL(scope->name), ZSTR_VAL(__debug… in zend_register_functions()
2411 …CORE_ERROR, "Constructor %s::%s() cannot declare a return type", ZSTR_VAL(scope->name), ZSTR_VAL(c… in zend_register_functions()
2415 …_CORE_ERROR, "Destructor %s::%s() cannot declare a return type", ZSTR_VAL(scope->name), ZSTR_VAL(d… in zend_register_functions()
2419 …zend_error_noreturn(E_CORE_ERROR, "%s::%s() cannot declare a return type", ZSTR_VAL(scope->name), … in zend_register_functions()
2840 if (!EG(scope)) { in zend_is_callable_check_class()
2844 fcc->calling_scope = EG(scope); in zend_is_callable_check_class()
2851 if (!EG(scope)) { in zend_is_callable_check_class()
2853 } else if (!EG(scope)->parent) { in zend_is_callable_check_class()
2857 fcc->calling_scope = EG(scope)->parent; in zend_is_callable_check_class()
2879 zend_class_entry *scope; in zend_is_callable_check_class() local
2885 scope = ex ? ex->func->common.scope : NULL; in zend_is_callable_check_class()
2887 if (scope && !fcc->object) { in zend_is_callable_check_class()
2891 instanceof_function(object->ce, scope) && in zend_is_callable_check_class()
2892 instanceof_function(scope, fcc->calling_scope)) { in zend_is_callable_check_class()
2982 last_scope = EG(scope); in zend_is_callable_check_func()
2984 EG(scope) = ce_org; in zend_is_callable_check_func()
2990 EG(scope) = last_scope; in zend_is_callable_check_func()
2994 EG(scope) = last_scope; in zend_is_callable_check_func()
3028 !strict_class && EG(scope) && in zend_is_callable_check_func()
3029 instanceof_function(fcc->function_handler->common.scope, EG(scope))) { in zend_is_callable_check_func()
3032 if ((priv_fbc = zend_hash_find_ptr(&EG(scope)->function_table, lmname)) != NULL in zend_is_callable_check_func()
3034 && priv_fbc->common.scope == EG(scope)) { in zend_is_callable_check_func()
3043 …if (!zend_check_private(fcc->function_handler, fcc->object ? fcc->object->ce : EG(scope), lmname))… 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()
3141 …if (!zend_check_private(fcc->function_handler, fcc->object ? fcc->object->ce : EG(scope), lmname))… in zend_is_callable_check_func()
3151 if (!zend_check_protected(fcc->function_handler->common.scope, EG(scope))) { in zend_is_callable_check_func()
3811 ZEND_API void zend_update_property_ex(zend_class_entry *scope, zval *object, zend_string *name, zva… in zend_update_property_ex() argument
3814 zend_class_entry *old_scope = EG(scope); in zend_update_property_ex()
3816 EG(scope) = scope; in zend_update_property_ex()
3824 EG(scope) = old_scope; in zend_update_property_ex()
3828 ZEND_API void zend_update_property(zend_class_entry *scope, zval *object, const char *name, size_t … in zend_update_property() argument
3831 zend_class_entry *old_scope = EG(scope); in zend_update_property()
3833 EG(scope) = scope; in zend_update_property()
3842 EG(scope) = old_scope; in zend_update_property()
3846 ZEND_API void zend_update_property_null(zend_class_entry *scope, zval *object, const char *name, si… in zend_update_property_null() argument
3851 zend_update_property(scope, object, name, name_length, &tmp); in zend_update_property_null()
3855 ZEND_API void zend_unset_property(zend_class_entry *scope, zval *object, const char *name, size_t n… in zend_unset_property() argument
3858 zend_class_entry *old_scope = EG(scope); in zend_unset_property()
3860 EG(scope) = scope; in zend_unset_property()
3869 EG(scope) = old_scope; in zend_unset_property()
3873 ZEND_API void zend_update_property_bool(zend_class_entry *scope, zval *object, const char *name, si… in zend_update_property_bool() argument
3878 zend_update_property(scope, object, name, name_length, &tmp); in zend_update_property_bool()
3882 ZEND_API void zend_update_property_long(zend_class_entry *scope, zval *object, const char *name, si… in zend_update_property_long() argument
3887 zend_update_property(scope, object, name, name_length, &tmp); in zend_update_property_long()
3891 ZEND_API void zend_update_property_double(zend_class_entry *scope, zval *object, const char *name, … in zend_update_property_double() argument
3896 zend_update_property(scope, object, name, name_length, &tmp); in zend_update_property_double()
3900 ZEND_API void zend_update_property_str(zend_class_entry *scope, zval *object, const char *name, siz… in zend_update_property_str() argument
3905 zend_update_property(scope, object, name, name_length, &tmp); in zend_update_property_str()
3909 ZEND_API void zend_update_property_string(zend_class_entry *scope, zval *object, const char *name, … in zend_update_property_string() argument
3915 zend_update_property(scope, object, name, name_length, &tmp); in zend_update_property_string()
3919 ZEND_API void zend_update_property_stringl(zend_class_entry *scope, zval *object, const char *name,… in zend_update_property_stringl() argument
3925 zend_update_property(scope, object, name, name_length, &tmp); in zend_update_property_stringl()
3929 ZEND_API int zend_update_static_property(zend_class_entry *scope, const char *name, size_t name_len… in zend_update_static_property() argument
3932 zend_class_entry *old_scope = EG(scope); in zend_update_static_property()
3935 EG(scope) = scope; in zend_update_static_property()
3936 property = zend_std_get_static_property(scope, key, 0); in zend_update_static_property()
3937 EG(scope) = old_scope; in zend_update_static_property()
3968 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
3973 return zend_update_static_property(scope, name, name_length, &tmp); in zend_update_static_property_null()
3977 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
3982 return zend_update_static_property(scope, name, name_length, &tmp); in zend_update_static_property_bool()
3986 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
3991 return zend_update_static_property(scope, name, name_length, &tmp); in zend_update_static_property_long()
3995 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
4000 return zend_update_static_property(scope, name, name_length, &tmp); in zend_update_static_property_double()
4004 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
4010 return zend_update_static_property(scope, name, name_length, &tmp); in zend_update_static_property_string()
4014 ZEND_API int zend_update_static_property_stringl(zend_class_entry *scope, const char *name, size_t … in zend_update_static_property_stringl() argument
4020 return zend_update_static_property(scope, name, name_length, &tmp); in zend_update_static_property_stringl()
4024 ZEND_API zval *zend_read_property(zend_class_entry *scope, zval *object, const char *name, size_t n… in zend_read_property() argument
4027 zend_class_entry *old_scope = EG(scope); in zend_read_property()
4029 EG(scope) = scope; in zend_read_property()
4039 EG(scope) = old_scope; in zend_read_property()
4044 ZEND_API zval *zend_read_static_property(zend_class_entry *scope, const char *name, size_t name_len… in zend_read_static_property() argument
4047 zend_class_entry *old_scope = EG(scope); in zend_read_static_property()
4050 EG(scope) = scope; in zend_read_static_property()
4051 property = zend_std_get_static_property(scope, key, silent); in zend_read_static_property()
4052 EG(scope) = old_scope; in zend_read_static_property()
4149 !f->common.scope || in zend_resolve_method_name()
4150 !f->common.scope->trait_aliases) { in zend_resolve_method_name()
4164 return zend_find_alias_name(f->common.scope, name); in zend_resolve_method_name()