Lines Matching refs:scope

1024 	const char *class_name = active_function->common.scope  in zend_parse_parameters_debug_error()
1025 ? ZSTR_VAL(active_function->common.scope->name) : ""; in zend_parse_parameters_debug_error()
1214 bool is_method = EG(current_execute_data)->func->common.scope != NULL; in zend_parse_method_parameters()
2652 ZEND_API zend_result zend_register_functions(zend_class_entry *scope, const zend_function_entry *fu… in ZEND_END_ARG_INFO()
2680 internal_function->scope = scope; in ZEND_END_ARG_INFO()
2685 if (ptr->flags != ZEND_ACC_DEPRECATED && scope) { in ZEND_END_ARG_INFO()
2686 …s must be exactly one of public, protected or private", scope ? ZSTR_VAL(scope->name) : "", scope in ZEND_END_ARG_INFO()
2717 if (!scope && (!strcasecmp(type_name, "self") || !strcasecmp(type_name, "parent"))) { in ZEND_END_ARG_INFO()
2726 scope ? ZSTR_VAL(scope->name) : "", scope ? "::" : "", ptr->fname); in ZEND_END_ARG_INFO()
2735 if (scope && zend_string_equals_literal_ci(internal_function->function_name, "__tostring") && in ZEND_END_ARG_INFO()
2745 if (scope) { in ZEND_END_ARG_INFO()
2747 scope->ce_flags |= ZEND_ACC_IMPLICIT_ABSTRACT_CLASS; in ZEND_END_ARG_INFO()
2748 if (!(scope->ce_flags & ZEND_ACC_INTERFACE)) { in ZEND_END_ARG_INFO()
2752 scope->ce_flags |= ZEND_ACC_EXPLICIT_ABSTRACT_CLASS; in ZEND_END_ARG_INFO()
2755 if ((ptr->flags & ZEND_ACC_STATIC) && (!scope || !(scope->ce_flags & ZEND_ACC_INTERFACE))) { in ZEND_END_ARG_INFO()
2756 …or_type, "Static function %s%s%s() cannot be abstract", scope ? ZSTR_VAL(scope->name) : "", scope in ZEND_END_ARG_INFO()
2759 if (scope && (scope->ce_flags & ZEND_ACC_INTERFACE)) { in ZEND_END_ARG_INFO()
2760 …zend_error(error_type, "Interface %s cannot contain non abstract method %s()", ZSTR_VAL(scope->nam… in ZEND_END_ARG_INFO()
2764 …rror_type, "Method %s%s%s() cannot be a NULL function", scope ? ZSTR_VAL(scope->name) : "", scope in ZEND_END_ARG_INFO()
2800 scope ? ZSTR_VAL(scope->name) : "", scope ? "::" : "", ptr->fname); in ZEND_END_ARG_INFO()
2861 if (scope) { in ZEND_END_ARG_INFO()
2863 scope, reg_function, lowercase_name, E_CORE_ERROR); in ZEND_END_ARG_INFO()
2864 zend_add_magic_method(scope, reg_function, lowercase_name); in ZEND_END_ARG_INFO()
2876 …unction registration failed - duplicate name - %s%s%s", scope ? ZSTR_VAL(scope->name) : "", scope in ZEND_END_ARG_INFO()
3340 fn->common.scope == disabled_class) { in zend_disable_class()
3359 return frame && frame->func ? frame->func->common.scope : NULL; in get_scope()
3362 static bool zend_is_callable_check_class(zend_string *name, zend_class_entry *scope, zend_execute_d… in zend_is_callable_check_class() argument
3375 if (!scope) { in zend_is_callable_check_class()
3379 if (!fcc->called_scope || !instanceof_function(fcc->called_scope, scope)) { in zend_is_callable_check_class()
3380 fcc->called_scope = scope; in zend_is_callable_check_class()
3382 fcc->calling_scope = scope; in zend_is_callable_check_class()
3389 if (!scope) { in zend_is_callable_check_class()
3391 } else if (!scope->parent) { in zend_is_callable_check_class()
3395 if (!fcc->called_scope || !instanceof_function(fcc->called_scope, scope->parent)) { in zend_is_callable_check_class()
3396 fcc->called_scope = scope->parent; in zend_is_callable_check_class()
3398 fcc->calling_scope = scope->parent; in zend_is_callable_check_class()
3420 zend_class_entry *scope = get_scope(frame); in zend_is_callable_check_class() local
3422 if (scope && !fcc->object) { in zend_is_callable_check_class()
3426 instanceof_function(object->ce, scope) && in zend_is_callable_check_class()
3427 instanceof_function(scope, ce)) { in zend_is_callable_check_class()
3467 zend_class_entry *scope; in zend_is_callable_check_func() local
3520 scope = ce_org; in zend_is_callable_check_func()
3522 scope = get_scope(frame); in zend_is_callable_check_func()
3528 if (scope && !fcc->object) { in zend_is_callable_check_func()
3532 instanceof_function(object->ce, scope) && in zend_is_callable_check_func()
3533 instanceof_function(scope, fcc->calling_scope)) { in zend_is_callable_check_func()
3543 } else if (!zend_is_callable_check_class(cname, scope, frame, fcc, &strict_class, error)) { in zend_is_callable_check_func()
3582 scope = get_scope(frame); in zend_is_callable_check_func()
3583 if (scope && in zend_is_callable_check_func()
3584 instanceof_function(fcc->function_handler->common.scope, scope)) { in zend_is_callable_check_func()
3586 zv = zend_hash_find(&scope->function_table, lmname); in zend_is_callable_check_func()
3591 && priv_fbc->common.scope == scope) { in zend_is_callable_check_func()
3601 scope = get_scope(frame); in zend_is_callable_check_func()
3602 if (fcc->function_handler->common.scope != scope) { in zend_is_callable_check_func()
3604 || !zend_check_protected(zend_get_function_root_class(fcc->function_handler), scope)) { in zend_is_callable_check_func()
3622 (!fcc->function_handler->common.scope || in zend_is_callable_check_func()
3623 !instanceof_function(ce_org, fcc->function_handler->common.scope))) { in zend_is_callable_check_func()
3666 scope = get_scope(frame); in zend_is_callable_check_func()
3667 if (fcc->function_handler->common.scope != scope) { in zend_is_callable_check_func()
3669 || (!zend_check_protected(zend_get_function_root_class(fcc->function_handler), scope))) { in zend_is_callable_check_func()
4525 ZEND_API void zend_update_property_ex(zend_class_entry *scope, zend_object *object, zend_string *na… in zend_update_property_ex() argument
4529 EG(fake_scope) = scope; in zend_update_property_ex()
4537 ZEND_API void zend_update_property(zend_class_entry *scope, zend_object *object, const char *name, … in zend_update_property() argument
4542 EG(fake_scope) = scope; in zend_update_property()
4552 ZEND_API void zend_update_property_null(zend_class_entry *scope, zend_object *object, const char *n… in zend_update_property_null() argument
4557 zend_update_property(scope, object, name, name_length, &tmp); in zend_update_property_null()
4561 ZEND_API void zend_unset_property(zend_class_entry *scope, zend_object *object, const char *name, s… in zend_unset_property() argument
4566 EG(fake_scope) = scope; in zend_unset_property()
4576 ZEND_API void zend_update_property_bool(zend_class_entry *scope, zend_object *object, const char *n… in zend_update_property_bool() argument
4581 zend_update_property(scope, object, name, name_length, &tmp); in zend_update_property_bool()
4585 ZEND_API void zend_update_property_long(zend_class_entry *scope, zend_object *object, const char *n… in zend_update_property_long() argument
4590 zend_update_property(scope, object, name, name_length, &tmp); in zend_update_property_long()
4594 ZEND_API void zend_update_property_double(zend_class_entry *scope, zend_object *object, const char … in zend_update_property_double() argument
4599 zend_update_property(scope, object, name, name_length, &tmp); in zend_update_property_double()
4603 ZEND_API void zend_update_property_str(zend_class_entry *scope, zend_object *object, const char *na… in zend_update_property_str() argument
4608 zend_update_property(scope, object, name, name_length, &tmp); in zend_update_property_str()
4612 ZEND_API void zend_update_property_string(zend_class_entry *scope, zend_object *object, const char … in zend_update_property_string() argument
4618 zend_update_property(scope, object, name, name_length, &tmp); in zend_update_property_string()
4622 ZEND_API void zend_update_property_stringl(zend_class_entry *scope, zend_object *object, const char… in zend_update_property_stringl() argument
4628 zend_update_property(scope, object, name, name_length, &tmp); in zend_update_property_stringl()
4632 ZEND_API zend_result zend_update_static_property_ex(zend_class_entry *scope, zend_string *name, zva… in zend_update_static_property_ex() argument
4638 if (UNEXPECTED(!(scope->ce_flags & ZEND_ACC_CONSTANTS_UPDATED))) { in zend_update_static_property_ex()
4639 if (UNEXPECTED(zend_update_class_constants(scope)) != SUCCESS) { in zend_update_static_property_ex()
4644 EG(fake_scope) = scope; in zend_update_static_property_ex()
4645 property = zend_std_get_static_property_with_info(scope, name, BP_VAR_W, &prop_info); in zend_update_static_property_ex()
4668 ZEND_API zend_result zend_update_static_property(zend_class_entry *scope, const char *name, size_t … in zend_update_static_property() argument
4671 zend_result retval = zend_update_static_property_ex(scope, key, value); in zend_update_static_property()
4677 ZEND_API zend_result zend_update_static_property_null(zend_class_entry *scope, const char *name, si… in zend_update_static_property_null() argument
4682 return zend_update_static_property(scope, name, name_length, &tmp); in zend_update_static_property_null()
4686 ZEND_API zend_result zend_update_static_property_bool(zend_class_entry *scope, const char *name, si… in zend_update_static_property_bool() argument
4691 return zend_update_static_property(scope, name, name_length, &tmp); in zend_update_static_property_bool()
4695 ZEND_API zend_result zend_update_static_property_long(zend_class_entry *scope, const char *name, si… in zend_update_static_property_long() argument
4700 return zend_update_static_property(scope, name, name_length, &tmp); in zend_update_static_property_long()
4704 ZEND_API zend_result zend_update_static_property_double(zend_class_entry *scope, const char *name, … in zend_update_static_property_double() argument
4709 return zend_update_static_property(scope, name, name_length, &tmp); in zend_update_static_property_double()
4713 ZEND_API zend_result zend_update_static_property_string(zend_class_entry *scope, const char *name, … in zend_update_static_property_string() argument
4719 return zend_update_static_property(scope, name, name_length, &tmp); in zend_update_static_property_string()
4723 ZEND_API zend_result zend_update_static_property_stringl(zend_class_entry *scope, const char *name,… in zend_update_static_property_stringl() argument
4729 return zend_update_static_property(scope, name, name_length, &tmp); in zend_update_static_property_stringl()
4733 ZEND_API zval *zend_read_property_ex(zend_class_entry *scope, zend_object *object, zend_string *nam… in zend_read_property_ex() argument
4738 EG(fake_scope) = scope; in zend_read_property_ex()
4747 ZEND_API zval *zend_read_property(zend_class_entry *scope, zend_object *object, const char *name, s… in zend_read_property() argument
4753 value = zend_read_property_ex(scope, object, str, silent, rv); in zend_read_property()
4759 ZEND_API zval *zend_read_static_property_ex(zend_class_entry *scope, zend_string *name, bool silent… in zend_read_static_property_ex() argument
4764 EG(fake_scope) = scope; in zend_read_static_property_ex()
4765 property = zend_std_get_static_property(scope, name, silent ? BP_VAR_IS : BP_VAR_R); in zend_read_static_property_ex()
4772 ZEND_API zval *zend_read_static_property(zend_class_entry *scope, const char *name, size_t name_len… in zend_read_static_property() argument
4775 zval *property = zend_read_static_property_ex(scope, key, silent); in zend_read_static_property()