Lines Matching refs:scope

771 …	const char *class_name = active_function->common.scope ? active_function->common.scope->name : "";  in zend_parse_va_args()
791 … const char *class_name = active_function->common.scope ? active_function->common.scope->name : ""; in zend_parse_va_args()
814 … const char *class_name = active_function->common.scope ? active_function->common.scope->name : ""; in zend_parse_va_args()
1041 zend_class_entry *old_scope = EG(scope); in zend_merge_properties()
1043 EG(scope) = Z_OBJCE_P(obj); in zend_merge_properties()
1045 EG(scope) = old_scope; in zend_merge_properties()
1058 zend_class_entry **scope = EG(in_execution)?&EG(scope):&CG(active_class_entry); in zval_update_class_constant() local
1060 if ((*scope)->parent) { in zval_update_class_constant()
1061 zend_class_entry *ce = *scope; in zval_update_class_constant()
1072 zend_class_entry *old_scope = *scope; in zval_update_class_constant()
1073 *scope = prop_info->ce; in zval_update_class_constant()
1075 *scope = old_scope; in zval_update_class_constant()
1092 zend_class_entry **scope = EG(in_execution)?&EG(scope):&CG(active_class_entry); in zend_update_class_constants() local
1093 zend_class_entry *old_scope = *scope; in zend_update_class_constants()
1096 *scope = class_type; in zend_update_class_constants()
1145 *scope = old_scope; in zend_update_class_constants()
2027 ZEND_API int zend_register_functions(zend_class_entry *scope, const zend_function_entry *functions,… in zend_register_functions() argument
2053 if (scope) { in zend_register_functions()
2054 class_name_len = strlen(scope->name); in zend_register_functions()
2055 if ((lc_class_name = zend_memrchr(scope->name, '\\', class_name_len))) { in zend_register_functions()
2057 class_name_len -= (lc_class_name - scope->name); in zend_register_functions()
2060 lc_class_name = zend_str_tolower_dup(scope->name, class_name_len); in zend_register_functions()
2067 internal_function->scope = scope; in zend_register_functions()
2071 if (ptr->flags != ZEND_ACC_DEPRECATED || scope) { in zend_register_functions()
2072 …access must be exactly one of public, protected or private", scope ? scope->name : "", scope ? "::… in zend_register_functions()
2108 if (scope) { in zend_register_functions()
2110 scope->ce_flags |= ZEND_ACC_IMPLICIT_ABSTRACT_CLASS; in zend_register_functions()
2111 if (!(scope->ce_flags & ZEND_ACC_INTERFACE)) { in zend_register_functions()
2115 scope->ce_flags |= ZEND_ACC_EXPLICIT_ABSTRACT_CLASS; in zend_register_functions()
2118 if (ptr->flags & ZEND_ACC_STATIC && (!scope || !(scope->ce_flags & ZEND_ACC_INTERFACE))) { in zend_register_functions()
2119 …r(error_type, "Static function %s%s%s() cannot be abstract", scope ? scope->name : "", scope ? "::… in zend_register_functions()
2122 if (scope && (scope->ce_flags & ZEND_ACC_INTERFACE)) { in zend_register_functions()
2124 …zend_error(error_type, "Interface %s cannot contain non abstract method %s()", scope->name, ptr->f… in zend_register_functions()
2128 if (scope) { in zend_register_functions()
2131 …ror(error_type, "Method %s%s%s() cannot be a NULL function", scope ? scope->name : "", scope ? "::… in zend_register_functions()
2148 if (scope) { in zend_register_functions()
2160 zend_error(error_type, "Destructor %s::%s() cannot take arguments", scope->name, ptr->fname); in zend_register_functions()
2182 zend_check_magic_method_implementation(scope, reg_function, error_type TSRMLS_CC); in zend_register_functions()
2190 if (scope) { in zend_register_functions()
2197 …e, "Function registration failed - duplicate name - %s%s%s", scope ? scope->name : "", scope ? "::… in zend_register_functions()
2205 if (scope) { in zend_register_functions()
2206 scope->constructor = ctor; in zend_register_functions()
2207 scope->destructor = dtor; in zend_register_functions()
2208 scope->clone = clone; in zend_register_functions()
2209 scope->__call = __call; in zend_register_functions()
2210 scope->__callstatic = __callstatic; in zend_register_functions()
2211 scope->__tostring = __tostring; in zend_register_functions()
2212 scope->__get = __get; in zend_register_functions()
2213 scope->__set = __set; in zend_register_functions()
2214 scope->__unset = __unset; in zend_register_functions()
2215 scope->__isset = __isset; in zend_register_functions()
2219 …zend_error(error_type, "Constructor %s::%s() cannot be static", scope->name, ctor->common.function… in zend_register_functions()
2226 …zend_error(error_type, "Destructor %s::%s() cannot be static", scope->name, dtor->common.function_… in zend_register_functions()
2233 …zend_error(error_type, "Constructor %s::%s() cannot be static", scope->name, clone->common.functio… in zend_register_functions()
2239 …zend_error(error_type, "Method %s::%s() cannot be static", scope->name, __call->common.function_na… in zend_register_functions()
2245 …zend_error(error_type, "Method %s::%s() must be static", scope->name, __callstatic->common.functio… in zend_register_functions()
2251 …zend_error(error_type, "Method %s::%s() cannot be static", scope->name, __tostring->common.functio… in zend_register_functions()
2257 …zend_error(error_type, "Method %s::%s() cannot be static", scope->name, __get->common.function_nam… in zend_register_functions()
2263 …zend_error(error_type, "Method %s::%s() cannot be static", scope->name, __set->common.function_nam… in zend_register_functions()
2269 …zend_error(error_type, "Method %s::%s() cannot be static", scope->name, __unset->common.function_n… in zend_register_functions()
2275 …zend_error(error_type, "Method %s::%s() cannot be static", scope->name, __isset->common.function_n… in zend_register_functions()
2683 if (!EG(scope)) { in zend_is_callable_check_class()
2687 fcc->calling_scope = EG(scope); in zend_is_callable_check_class()
2695 if (!EG(scope)) { in zend_is_callable_check_class()
2697 } else if (!EG(scope)->parent) { in zend_is_callable_check_class()
2701 fcc->calling_scope = EG(scope)->parent; in zend_is_callable_check_class()
2722 zend_class_entry *scope = EG(active_op_array) ? EG(active_op_array)->scope : NULL; in zend_is_callable_check_class() local
2725 if (scope && !fcc->object_ptr && EG(This) && in zend_is_callable_check_class()
2726 instanceof_function(Z_OBJCE_P(EG(This)), scope TSRMLS_CC) && in zend_is_callable_check_class()
2727 instanceof_function(scope, fcc->calling_scope TSRMLS_CC)) { in zend_is_callable_check_class()
2795 last_scope = EG(scope); in zend_is_callable_check_func()
2797 EG(scope) = ce_org; in zend_is_callable_check_func()
2801 EG(scope) = last_scope; in zend_is_callable_check_func()
2804 EG(scope) = last_scope; in zend_is_callable_check_func()
2838 !strict_class && EG(scope) && in zend_is_callable_check_func()
2839 instanceof_function(fcc->function_handler->common.scope, EG(scope) TSRMLS_CC)) { in zend_is_callable_check_func()
2842 if (zend_hash_find(&EG(scope)->function_table, lmname, mlen+1, (void **) &priv_fbc)==SUCCESS in zend_is_callable_check_func()
2844 && priv_fbc->common.scope == EG(scope)) { in zend_is_callable_check_func()
2853 …(fcc->function_handler, fcc->object_ptr ? Z_OBJCE_P(fcc->object_ptr) : EG(scope), lmname, mlen TSR… in zend_is_callable_check_func()
2859 if (!zend_check_protected(fcc->function_handler->common.scope, EG(scope))) { in zend_is_callable_check_func()
2876 fcc->function_handler->internal_function.scope = ce_org; in zend_is_callable_check_func()
2885 (!fcc->function_handler->common.scope || in zend_is_callable_check_func()
2886 !instanceof_function(ce_org, fcc->function_handler->common.scope TSRMLS_CC))) { in zend_is_callable_check_func()
2963 …(fcc->function_handler, fcc->object_ptr ? Z_OBJCE_P(fcc->object_ptr) : EG(scope), lmname, mlen TSR… in zend_is_callable_check_func()
2973 if (!zend_check_protected(fcc->function_handler->common.scope, EG(scope))) { in zend_is_callable_check_func()
3700 ZEND_API void zend_update_property(zend_class_entry *scope, zval *object, const char *name, int nam… in zend_update_property() argument
3703 zend_class_entry *old_scope = EG(scope); in zend_update_property()
3705 EG(scope) = scope; in zend_update_property()
3720 EG(scope) = old_scope; in zend_update_property()
3724 ZEND_API void zend_update_property_null(zend_class_entry *scope, zval *object, const char *name, in… in zend_update_property_null() argument
3732 zend_update_property(scope, object, name, name_length, tmp TSRMLS_CC); in zend_update_property_null()
3736 ZEND_API void zend_update_property_bool(zend_class_entry *scope, zval *object, const char *name, in… in zend_update_property_bool() argument
3744 zend_update_property(scope, object, name, name_length, tmp TSRMLS_CC); in zend_update_property_bool()
3748 ZEND_API void zend_update_property_long(zend_class_entry *scope, zval *object, const char *name, in… in zend_update_property_long() argument
3756 zend_update_property(scope, object, name, name_length, tmp TSRMLS_CC); in zend_update_property_long()
3760 ZEND_API void zend_update_property_double(zend_class_entry *scope, zval *object, const char *name, … in zend_update_property_double() argument
3768 zend_update_property(scope, object, name, name_length, tmp TSRMLS_CC); in zend_update_property_double()
3772 ZEND_API void zend_update_property_string(zend_class_entry *scope, zval *object, const char *name, … in zend_update_property_string() argument
3780 zend_update_property(scope, object, name, name_length, tmp TSRMLS_CC); in zend_update_property_string()
3784 ZEND_API void zend_update_property_stringl(zend_class_entry *scope, zval *object, const char *name,… in zend_update_property_stringl() argument
3792 zend_update_property(scope, object, name, name_length, tmp TSRMLS_CC); in zend_update_property_stringl()
3796 ZEND_API int zend_update_static_property(zend_class_entry *scope, const char *name, int name_length… in zend_update_static_property() argument
3799 zend_class_entry *old_scope = EG(scope); in zend_update_static_property()
3801 EG(scope) = scope; in zend_update_static_property()
3802 property = zend_std_get_static_property(scope, name, name_length, 0, NULL TSRMLS_CC); in zend_update_static_property()
3803 EG(scope) = old_scope; in zend_update_static_property()
3833 ZEND_API int zend_update_static_property_null(zend_class_entry *scope, const char *name, int name_l… in zend_update_static_property_null() argument
3841 return zend_update_static_property(scope, name, name_length, tmp TSRMLS_CC); in zend_update_static_property_null()
3845 ZEND_API int zend_update_static_property_bool(zend_class_entry *scope, const char *name, int name_l… in zend_update_static_property_bool() argument
3853 return zend_update_static_property(scope, name, name_length, tmp TSRMLS_CC); in zend_update_static_property_bool()
3857 ZEND_API int zend_update_static_property_long(zend_class_entry *scope, const char *name, int name_l… in zend_update_static_property_long() argument
3865 return zend_update_static_property(scope, name, name_length, tmp TSRMLS_CC); in zend_update_static_property_long()
3869 ZEND_API int zend_update_static_property_double(zend_class_entry *scope, const char *name, int name… in zend_update_static_property_double() argument
3877 return zend_update_static_property(scope, name, name_length, tmp TSRMLS_CC); in zend_update_static_property_double()
3881 ZEND_API int zend_update_static_property_string(zend_class_entry *scope, const char *name, int name… in zend_update_static_property_string() argument
3889 return zend_update_static_property(scope, name, name_length, tmp TSRMLS_CC); in zend_update_static_property_string()
3893 ZEND_API int zend_update_static_property_stringl(zend_class_entry *scope, const char *name, int nam… in zend_update_static_property_stringl() argument
3901 return zend_update_static_property(scope, name, name_length, tmp TSRMLS_CC); in zend_update_static_property_stringl()
3905 ZEND_API zval *zend_read_property(zend_class_entry *scope, zval *object, const char *name, int name… in zend_read_property() argument
3908 zend_class_entry *old_scope = EG(scope); in zend_read_property()
3910 EG(scope) = scope; in zend_read_property()
3925 EG(scope) = old_scope; in zend_read_property()
3930 ZEND_API zval *zend_read_static_property(zend_class_entry *scope, const char *name, int name_length… in zend_read_static_property() argument
3933 zend_class_entry *old_scope = EG(scope); in zend_read_static_property()
3935 EG(scope) = scope; in zend_read_static_property()
3936 property = zend_std_get_static_property(scope, name, name_length, silent, NULL TSRMLS_CC); in zend_read_static_property()
3937 EG(scope) = old_scope; in zend_read_static_property()
4012 !f->common.scope || in zend_resolve_method_name()
4013 !f->common.scope->trait_aliases) { in zend_resolve_method_name()
4033 return zend_find_alias_name(f->common.scope, name, len); in zend_resolve_method_name()