Lines Matching refs:ce
981 zend_class_entry *ce = va_arg(*va, zend_class_entry *); in zend_parse_arg_impl() local
983 if (!zend_parse_arg_object(arg, p, ce, check_null)) { in zend_parse_arg_impl()
984 if (ce) { in zend_parse_arg_impl()
986 …zend_spprintf(error, 0, "must be of type ?%s, %s given", ZSTR_VAL(ce->name), zend_zval_value_name(… in zend_parse_arg_impl()
989 return ZSTR_VAL(ce->name); in zend_parse_arg_impl()
1320 zend_class_entry *ce; in zend_parse_method_parameters() local
1338 ce = va_arg(va, zend_class_entry *); in zend_parse_method_parameters()
1341 if (ce && !instanceof_function(Z_OBJCE_P(this_ptr), ce)) { in zend_parse_method_parameters()
1343 …ZSTR_VAL(Z_OBJCE_P(this_ptr)->name), get_active_function_name(), ZSTR_VAL(ce->name), get_active_fu… in zend_parse_method_parameters()
1359 zend_class_entry *ce; in zend_parse_method_parameters_ex() local
1370 ce = va_arg(va, zend_class_entry *); in zend_parse_method_parameters_ex()
1373 if (ce && !instanceof_function(Z_OBJCE_P(this_ptr), ce)) { in zend_parse_method_parameters_ex()
1376 …ZSTR_VAL(ce->name), get_active_function_name(), ZSTR_VAL(Z_OBJCE_P(this_ptr)->name), get_active_fu… in zend_parse_method_parameters_ex()
1440 if (c->ce == class_type) { in zend_separate_class_constants_table()
1449 c = zend_hash_find_ptr(CE_CONSTANTS_TABLE(c->ce), key); in zend_separate_class_constants_table()
1473 if (UNEXPECTED(zval_update_constant_ex(&tmp, prop_info->ce) != SUCCESS)) { in update_property()
1486 return zval_update_constant_ex(val, prop_info->ce); in update_property()
1567 if (c->ce != class_type) { in zend_update_class_constants()
1568 Z_PTR_P(val) = c = zend_hash_find_ptr(CE_CONSTANTS_TABLE(c->ce), name); in zend_update_class_constants()
1575 if (UNEXPECTED(zend_update_class_constant(c, name, c->ce) != SUCCESS)) { in zend_update_class_constants()
1693 if (object->ce->default_properties_count) { in object_properties_init_ex()
1699 property_info = zend_get_property_info(object->ce, key, 1); in object_properties_init_ex()
1743 property_info = zend_get_property_info(object->ce, pname, 1); in object_properties_load()
1750 property_info = zend_get_property_info(object->ce, key, 1); in object_properties_load()
1764 if (UNEXPECTED(object->ce->ce_flags & ZEND_ACC_NO_DYNAMIC_PROPERTIES)) { in object_properties_load()
1766 …ZSTR_VAL(object->ce->name), property_info != ZEND_WRONG_PROPERTY_INFO ? zend_get_unmangled_propert… in object_properties_load()
1768 } else if (!(object->ce->ce_flags & ZEND_ACC_ALLOW_DYNAMIC_PROPERTIES)) { in object_properties_load()
1770 …ZSTR_VAL(object->ce->name), property_info != ZEND_WRONG_PROPERTY_INFO ? zend_get_unmangled_propert… in object_properties_load()
1777 if (UNEXPECTED(object->ce->ce_flags & ZEND_ACC_NO_DYNAMIC_PROPERTIES)) { in object_properties_load()
1778 …w_error(NULL, "Cannot create dynamic property %s::$" ZEND_LONG_FMT, ZSTR_VAL(object->ce->name), h); in object_properties_load()
1780 } else if (!(object->ce->ce_flags & ZEND_ACC_ALLOW_DYNAMIC_PROPERTIES)) { in object_properties_load()
1782 ZSTR_VAL(object->ce->name), h); in object_properties_load()
2491 zend_class_entry *ce; in zend_collect_module_handlers() local
2541 ZEND_HASH_MAP_FOREACH_PTR(CG(class_table), ce) { in zend_collect_module_handlers()
2542 if (ce->type == ZEND_INTERNAL_CLASS && in zend_collect_module_handlers()
2543 ce->default_static_members_count > 0) { in zend_collect_module_handlers()
2555 ZEND_HASH_MAP_FOREACH_PTR(CG(class_table), ce) { in zend_collect_module_handlers()
2556 if (ce->type == ZEND_INTERNAL_CLASS && in zend_collect_module_handlers()
2557 ce->default_static_members_count > 0) { in zend_collect_module_handlers()
2558 class_cleanup_handlers[--class_count] = ce; in zend_collect_module_handlers()
2657 uint32_t num_args, const zend_class_entry *ce, const zend_function *fptr, int error_type) in zend_check_magic_method_args() argument
2662 ZSTR_VAL(ce->name), ZSTR_VAL(fptr->common.function_name)); in zend_check_magic_method_args()
2665 ZSTR_VAL(ce->name), ZSTR_VAL(fptr->common.function_name)); in zend_check_magic_method_args()
2668 ZSTR_VAL(ce->name), ZSTR_VAL(fptr->common.function_name), num_args); in zend_check_magic_method_args()
2675 ZSTR_VAL(ce->name), ZSTR_VAL(fptr->common.function_name)); in zend_check_magic_method_args()
2681 static void zend_check_magic_method_arg_type(uint32_t arg_num, const zend_class_entry *ce, const ze… in zend_check_magic_method_arg_type() argument
2688 ZSTR_VAL(ce->name), ZSTR_VAL(fptr->common.function_name), in zend_check_magic_method_arg_type()
2694 static void zend_check_magic_method_return_type(const zend_class_entry *ce, const zend_function *fp… in zend_check_magic_method_return_type() argument
2715 ZSTR_VAL(ce->name), ZSTR_VAL(fptr->common.function_name), in zend_check_magic_method_return_type()
2721 const zend_class_entry *ce, const zend_function *fptr, int error_type) in zend_check_magic_method_non_static() argument
2725 ZSTR_VAL(ce->name), ZSTR_VAL(fptr->common.function_name)); in zend_check_magic_method_non_static()
2730 const zend_class_entry *ce, const zend_function *fptr, int error_type) in zend_check_magic_method_static() argument
2734 ZSTR_VAL(ce->name), ZSTR_VAL(fptr->common.function_name)); in zend_check_magic_method_static()
2739 const zend_class_entry *ce, const zend_function *fptr, int error_type) in zend_check_magic_method_public() argument
2744 ZSTR_VAL(ce->name), ZSTR_VAL(fptr->common.function_name)); in zend_check_magic_method_public()
2749 const zend_class_entry *ce, const zend_function *fptr, int error_type) in zend_check_magic_method_no_return_type() argument
2753 ZSTR_VAL(ce->name), ZSTR_VAL(fptr->common.function_name)); in zend_check_magic_method_no_return_type()
2757 ZEND_API void zend_check_magic_method_implementation(const zend_class_entry *ce, const zend_functio… in zend_check_magic_method_implementation() argument
2765 zend_check_magic_method_non_static(ce, fptr, error_type); in zend_check_magic_method_implementation()
2766 zend_check_magic_method_no_return_type(ce, fptr, error_type); in zend_check_magic_method_implementation()
2768 zend_check_magic_method_args(0, ce, fptr, error_type); in zend_check_magic_method_implementation()
2769 zend_check_magic_method_non_static(ce, fptr, error_type); in zend_check_magic_method_implementation()
2770 zend_check_magic_method_no_return_type(ce, fptr, error_type); in zend_check_magic_method_implementation()
2772 zend_check_magic_method_args(0, ce, fptr, error_type); in zend_check_magic_method_implementation()
2773 zend_check_magic_method_non_static(ce, fptr, error_type); in zend_check_magic_method_implementation()
2774 zend_check_magic_method_return_type(ce, fptr, error_type, MAY_BE_VOID); in zend_check_magic_method_implementation()
2776 zend_check_magic_method_args(1, ce, fptr, error_type); in zend_check_magic_method_implementation()
2777 zend_check_magic_method_non_static(ce, fptr, error_type); in zend_check_magic_method_implementation()
2778 zend_check_magic_method_public(ce, fptr, error_type); in zend_check_magic_method_implementation()
2779 zend_check_magic_method_arg_type(0, ce, fptr, error_type, MAY_BE_STRING); in zend_check_magic_method_implementation()
2781 zend_check_magic_method_args(2, ce, fptr, error_type); in zend_check_magic_method_implementation()
2782 zend_check_magic_method_non_static(ce, fptr, error_type); in zend_check_magic_method_implementation()
2783 zend_check_magic_method_public(ce, fptr, error_type); in zend_check_magic_method_implementation()
2784 zend_check_magic_method_arg_type(0, ce, fptr, error_type, MAY_BE_STRING); in zend_check_magic_method_implementation()
2785 zend_check_magic_method_return_type(ce, fptr, error_type, MAY_BE_VOID); in zend_check_magic_method_implementation()
2787 zend_check_magic_method_args(1, ce, fptr, error_type); in zend_check_magic_method_implementation()
2788 zend_check_magic_method_non_static(ce, fptr, error_type); in zend_check_magic_method_implementation()
2789 zend_check_magic_method_public(ce, fptr, error_type); in zend_check_magic_method_implementation()
2790 zend_check_magic_method_arg_type(0, ce, fptr, error_type, MAY_BE_STRING); in zend_check_magic_method_implementation()
2791 zend_check_magic_method_return_type(ce, fptr, error_type, MAY_BE_VOID); in zend_check_magic_method_implementation()
2793 zend_check_magic_method_args(1, ce, fptr, error_type); in zend_check_magic_method_implementation()
2794 zend_check_magic_method_non_static(ce, fptr, error_type); in zend_check_magic_method_implementation()
2795 zend_check_magic_method_public(ce, fptr, error_type); in zend_check_magic_method_implementation()
2796 zend_check_magic_method_arg_type(0, ce, fptr, error_type, MAY_BE_STRING); in zend_check_magic_method_implementation()
2797 zend_check_magic_method_return_type(ce, fptr, error_type, MAY_BE_BOOL); in zend_check_magic_method_implementation()
2799 zend_check_magic_method_args(2, ce, fptr, error_type); in zend_check_magic_method_implementation()
2800 zend_check_magic_method_non_static(ce, fptr, error_type); in zend_check_magic_method_implementation()
2801 zend_check_magic_method_public(ce, fptr, error_type); in zend_check_magic_method_implementation()
2802 zend_check_magic_method_arg_type(0, ce, fptr, error_type, MAY_BE_STRING); in zend_check_magic_method_implementation()
2803 zend_check_magic_method_arg_type(1, ce, fptr, error_type, MAY_BE_ARRAY); in zend_check_magic_method_implementation()
2805 zend_check_magic_method_args(2, ce, fptr, error_type); in zend_check_magic_method_implementation()
2806 zend_check_magic_method_static(ce, fptr, error_type); in zend_check_magic_method_implementation()
2807 zend_check_magic_method_public(ce, fptr, error_type); in zend_check_magic_method_implementation()
2808 zend_check_magic_method_arg_type(0, ce, fptr, error_type, MAY_BE_STRING); in zend_check_magic_method_implementation()
2809 zend_check_magic_method_arg_type(1, ce, fptr, error_type, MAY_BE_ARRAY); in zend_check_magic_method_implementation()
2811 zend_check_magic_method_args(0, ce, fptr, error_type); in zend_check_magic_method_implementation()
2812 zend_check_magic_method_non_static(ce, fptr, error_type); in zend_check_magic_method_implementation()
2813 zend_check_magic_method_public(ce, fptr, error_type); in zend_check_magic_method_implementation()
2814 zend_check_magic_method_return_type(ce, fptr, error_type, MAY_BE_STRING); in zend_check_magic_method_implementation()
2816 zend_check_magic_method_args(0, ce, fptr, error_type); in zend_check_magic_method_implementation()
2817 zend_check_magic_method_non_static(ce, fptr, error_type); in zend_check_magic_method_implementation()
2818 zend_check_magic_method_public(ce, fptr, error_type); in zend_check_magic_method_implementation()
2819 zend_check_magic_method_return_type(ce, fptr, error_type, (MAY_BE_ARRAY | MAY_BE_NULL)); in zend_check_magic_method_implementation()
2821 zend_check_magic_method_args(0, ce, fptr, error_type); in zend_check_magic_method_implementation()
2822 zend_check_magic_method_non_static(ce, fptr, error_type); in zend_check_magic_method_implementation()
2823 zend_check_magic_method_public(ce, fptr, error_type); in zend_check_magic_method_implementation()
2824 zend_check_magic_method_return_type(ce, fptr, error_type, MAY_BE_ARRAY); in zend_check_magic_method_implementation()
2826 zend_check_magic_method_args(1, ce, fptr, error_type); in zend_check_magic_method_implementation()
2827 zend_check_magic_method_non_static(ce, fptr, error_type); in zend_check_magic_method_implementation()
2828 zend_check_magic_method_public(ce, fptr, error_type); in zend_check_magic_method_implementation()
2829 zend_check_magic_method_arg_type(0, ce, fptr, error_type, MAY_BE_ARRAY); in zend_check_magic_method_implementation()
2830 zend_check_magic_method_return_type(ce, fptr, error_type, MAY_BE_VOID); in zend_check_magic_method_implementation()
2832 zend_check_magic_method_args(1, ce, fptr, error_type); in zend_check_magic_method_implementation()
2833 zend_check_magic_method_static(ce, fptr, error_type); in zend_check_magic_method_implementation()
2834 zend_check_magic_method_public(ce, fptr, error_type); in zend_check_magic_method_implementation()
2835 zend_check_magic_method_arg_type(0, ce, fptr, error_type, MAY_BE_ARRAY); in zend_check_magic_method_implementation()
2836 zend_check_magic_method_return_type(ce, fptr, error_type, MAY_BE_OBJECT); in zend_check_magic_method_implementation()
2838 zend_check_magic_method_non_static(ce, fptr, error_type); in zend_check_magic_method_implementation()
2839 zend_check_magic_method_public(ce, fptr, error_type); in zend_check_magic_method_implementation()
2841 zend_check_magic_method_args(0, ce, fptr, error_type); in zend_check_magic_method_implementation()
2842 zend_check_magic_method_non_static(ce, fptr, error_type); in zend_check_magic_method_implementation()
2843 zend_check_magic_method_public(ce, fptr, error_type); in zend_check_magic_method_implementation()
2844 zend_check_magic_method_return_type(ce, fptr, error_type, MAY_BE_ARRAY); in zend_check_magic_method_implementation()
2846 zend_check_magic_method_args(0, ce, fptr, error_type); in zend_check_magic_method_implementation()
2847 zend_check_magic_method_non_static(ce, fptr, error_type); in zend_check_magic_method_implementation()
2848 zend_check_magic_method_public(ce, fptr, error_type); in zend_check_magic_method_implementation()
2849 zend_check_magic_method_return_type(ce, fptr, error_type, MAY_BE_VOID); in zend_check_magic_method_implementation()
2854 ZEND_API void zend_add_magic_method(zend_class_entry *ce, zend_function *fptr, zend_string *lcname) in zend_add_magic_method() argument
2859 ce->clone = fptr; in zend_add_magic_method()
2861 ce->constructor = fptr; in zend_add_magic_method()
2862 ce->constructor->common.fn_flags |= ZEND_ACC_CTOR; in zend_add_magic_method()
2864 ce->destructor = fptr; in zend_add_magic_method()
2866 ce->__get = fptr; in zend_add_magic_method()
2867 ce->ce_flags |= ZEND_ACC_USE_GUARDS; in zend_add_magic_method()
2869 ce->__set = fptr; in zend_add_magic_method()
2870 ce->ce_flags |= ZEND_ACC_USE_GUARDS; in zend_add_magic_method()
2872 ce->__call = fptr; in zend_add_magic_method()
2874 ce->__unset = fptr; in zend_add_magic_method()
2875 ce->ce_flags |= ZEND_ACC_USE_GUARDS; in zend_add_magic_method()
2877 ce->__isset = fptr; in zend_add_magic_method()
2878 ce->ce_flags |= ZEND_ACC_USE_GUARDS; in zend_add_magic_method()
2880 ce->__callstatic = fptr; in zend_add_magic_method()
2882 ce->__tostring = fptr; in zend_add_magic_method()
2884 ce->__debugInfo = fptr; in zend_add_magic_method()
2885 ce->ce_flags |= ZEND_ACC_USE_GUARDS; in zend_add_magic_method()
2887 ce->__serialize = fptr; in zend_add_magic_method()
2889 ce->__unserialize = fptr; in zend_add_magic_method()
3261 zend_class_entry *ce = (zend_class_entry *)Z_PTR_P(el); in clean_module_class() local
3263 if (ce->type == ZEND_INTERNAL_CLASS && ce->info.internal.module->module_number == module_number) { in clean_module_class()
3555 …gister_class_alias_ex(const char *name, size_t name_len, zend_class_entry *ce, bool persistent) /*… in zend_register_class_alias_ex() argument
3581 ZVAL_ALIAS_PTR(&zv, ce); in zend_register_class_alias_ex()
3587 if (ce->type == ZEND_USER_CLASS) { in zend_register_class_alias_ex()
3588 zend_observer_class_linked_notify(ce, lcname); in zend_register_class_alias_ex()
3728 if (prop->ce == disabled_class) { in zend_disable_class()
3747 zend_class_entry *ce; in zend_is_callable_check_class() local
3810 } else if ((ce = zend_lookup_class(name)) != NULL) { in zend_is_callable_check_class()
3812 fcc->calling_scope = ce; in zend_is_callable_check_class()
3817 instanceof_function(object->ce, scope) && in zend_is_callable_check_class()
3818 instanceof_function(scope, ce)) { in zend_is_callable_check_class()
3820 fcc->called_scope = object->ce; in zend_is_callable_check_class()
3822 fcc->called_scope = ce; in zend_is_callable_check_class()
3825 fcc->called_scope = fcc->object ? fcc->object->ce : ce; in zend_is_callable_check_class()
3923 instanceof_function(object->ce, scope) && in zend_is_callable_check_func()
3926 fcc->called_scope = object->ce; in zend_is_callable_check_func()
3931 fcc->called_scope = fcc->object ? fcc->object->ce : fcc->calling_scope; in zend_is_callable_check_func()
4039 instanceof_function(object->ce, fcc->calling_scope)) { in zend_is_callable_check_func()
4088 fcc->called_scope = fcc->object->ce; in zend_is_callable_check_func()
4104 return zend_create_member_string(object->ce->name, Z_STR_P(callable)); in zend_get_callable_name_ex()
4132 zend_class_entry *ce = Z_OBJCE_P(callable); in zend_get_callable_name_ex() local
4134 ZSTR_VAL(ce->name), ZSTR_LEN(ce->name), in zend_get_callable_name_ex()
4178 fcc->calling_scope = object->ce; in zend_is_callable_at_frame()
4492 static zend_always_inline bool is_persistent_class(zend_class_entry *ce) { in is_persistent_class() argument
4493 return (ce->type & ZEND_INTERNAL_CLASS) in is_persistent_class()
4494 && ce->info.internal.module->type == MODULE_PERSISTENT; in is_persistent_class()
4497 ZEND_API zend_property_info *zend_declare_typed_property(zend_class_entry *ce, zend_string *name, z… in zend_declare_typed_property() argument
4502 ce->ce_flags |= ZEND_ACC_HAS_TYPE_HINTS; in zend_declare_typed_property()
4505 ce->ce_flags |= ZEND_ACC_HAS_READONLY_PROPS; in zend_declare_typed_property()
4509 if (ce->type == ZEND_INTERNAL_CLASS) { in zend_declare_typed_property()
4514 ce->ce_flags &= ~ZEND_ACC_CONSTANTS_UPDATED; in zend_declare_typed_property()
4516 ce->ce_flags |= ZEND_ACC_HAS_AST_STATICS; in zend_declare_typed_property()
4518 ce->ce_flags |= ZEND_ACC_HAS_AST_PROPERTIES; in zend_declare_typed_property()
4535 zend_error_noreturn(ce->type == ZEND_INTERNAL_CLASS ? E_CORE_ERROR : E_COMPILE_ERROR, in zend_declare_typed_property()
4537 ZSTR_VAL(ce->name), ZSTR_VAL(name)); in zend_declare_typed_property()
4542 zend_error_noreturn(ce->type == ZEND_INTERNAL_CLASS ? E_CORE_ERROR : E_COMPILE_ERROR, in zend_declare_typed_property()
4544 ZSTR_VAL(ce->name), ZSTR_VAL(name)); in zend_declare_typed_property()
4568 if ((property_info_ptr = zend_hash_find_ptr(&ce->properties_info, name)) != NULL) { in zend_declare_typed_property()
4571 zval_ptr_dtor(&ce->default_static_members_table[property_info->offset]); in zend_declare_typed_property()
4572 if (property_info_ptr->doc_comment && property_info_ptr->ce == ce) { in zend_declare_typed_property()
4575 zend_hash_del(&ce->properties_info, name); in zend_declare_typed_property()
4577 property_info->offset = ce->default_static_members_count++; in zend_declare_typed_property()
4578 …ce->default_static_members_table = perealloc(ce->default_static_members_table, sizeof(zval) * ce->… in zend_declare_typed_property()
4580 ZVAL_COPY_VALUE(&ce->default_static_members_table[property_info->offset], property); in zend_declare_typed_property()
4581 if (!ZEND_MAP_PTR(ce->static_members_table)) { in zend_declare_typed_property()
4582 if (ce->type == ZEND_INTERNAL_CLASS && in zend_declare_typed_property()
4583 ce->info.internal.module->type == MODULE_PERSISTENT) { in zend_declare_typed_property()
4584 ZEND_MAP_PTR_NEW(ce->static_members_table); in zend_declare_typed_property()
4589 if ((property_info_ptr = zend_hash_find_ptr(&ce->properties_info, name)) != NULL) { in zend_declare_typed_property()
4592 zval_ptr_dtor(&ce->default_properties_table[OBJ_PROP_TO_NUM(property_info->offset)]); in zend_declare_typed_property()
4593 if (property_info_ptr->doc_comment && property_info_ptr->ce == ce) { in zend_declare_typed_property()
4596 zend_hash_del(&ce->properties_info, name); in zend_declare_typed_property()
4598 ZEND_ASSERT(ce->type == ZEND_INTERNAL_CLASS); in zend_declare_typed_property()
4599 ZEND_ASSERT(ce->properties_info_table != NULL); in zend_declare_typed_property()
4600 ce->properties_info_table[OBJ_PROP_TO_NUM(property_info->offset)] = property_info; in zend_declare_typed_property()
4602 property_info->offset = OBJ_PROP_TO_OFFSET(ce->default_properties_count); in zend_declare_typed_property()
4603 ce->default_properties_count++; in zend_declare_typed_property()
4604 …ce->default_properties_table = perealloc(ce->default_properties_table, sizeof(zval) * ce->default_… in zend_declare_typed_property()
4607 if (ce->type == ZEND_INTERNAL_CLASS) { in zend_declare_typed_property()
4608 …ce->properties_info_table = perealloc(ce->properties_info_table, sizeof(zend_property_info *) * ce… in zend_declare_typed_property()
4609 ce->properties_info_table[ce->default_properties_count - 1] = property_info; in zend_declare_typed_property()
4612 property_default_ptr = &ce->default_properties_table[OBJ_PROP_TO_NUM(property_info->offset)]; in zend_declare_typed_property()
4617 if (ce->type & ZEND_INTERNAL_CLASS) { in zend_declare_typed_property()
4619 if (is_persistent_class(ce)) { in zend_declare_typed_property()
4631 …end_mangle_property_name(ZSTR_VAL(ce->name), ZSTR_LEN(ce->name), ZSTR_VAL(name), ZSTR_LEN(name), i… in zend_declare_typed_property()
4634 …>name = zend_mangle_property_name("*", 1, ZSTR_VAL(name), ZSTR_LEN(name), is_persistent_class(ce)); in zend_declare_typed_property()
4643 property_info->ce = ce; in zend_declare_typed_property()
4646 if (is_persistent_class(ce)) { in zend_declare_typed_property()
4650 zend_hash_update_ptr(&ce->properties_info, name, property_info); in zend_declare_typed_property()
4783 ZEND_API void zend_declare_property_ex(zend_class_entry *ce, zend_string *name, zval *property, int… in zend_declare_property_ex() argument
4785 …zend_declare_typed_property(ce, name, property, access_type, doc_comment, (zend_type) ZEND_TYPE_IN… in zend_declare_property_ex()
4789 ZEND_API void zend_declare_property(zend_class_entry *ce, const char *name, size_t name_length, zva… in zend_declare_property() argument
4791 zend_string *key = zend_string_init(name, name_length, is_persistent_class(ce)); in zend_declare_property()
4792 zend_declare_property_ex(ce, key, property, access_type, NULL); in zend_declare_property()
4797 ZEND_API void zend_declare_property_null(zend_class_entry *ce, const char *name, size_t name_length… in zend_declare_property_null() argument
4802 zend_declare_property(ce, name, name_length, &property, access_type); in zend_declare_property_null()
4806 ZEND_API void zend_declare_property_bool(zend_class_entry *ce, const char *name, size_t name_length… in zend_declare_property_bool() argument
4811 zend_declare_property(ce, name, name_length, &property, access_type); in zend_declare_property_bool()
4815 ZEND_API void zend_declare_property_long(zend_class_entry *ce, const char *name, size_t name_length… in zend_declare_property_long() argument
4820 zend_declare_property(ce, name, name_length, &property, access_type); in zend_declare_property_long()
4824 ZEND_API void zend_declare_property_double(zend_class_entry *ce, const char *name, size_t name_leng… in zend_declare_property_double() argument
4829 zend_declare_property(ce, name, name_length, &property, access_type); in zend_declare_property_double()
4833 ZEND_API void zend_declare_property_string(zend_class_entry *ce, const char *name, size_t name_leng… in zend_declare_property_string() argument
4837 ZVAL_NEW_STR(&property, zend_string_init(value, strlen(value), ce->type & ZEND_INTERNAL_CLASS)); in zend_declare_property_string()
4838 zend_declare_property(ce, name, name_length, &property, access_type); in zend_declare_property_string()
4842 ZEND_API void zend_declare_property_stringl(zend_class_entry *ce, const char *name, size_t name_len… in zend_declare_property_stringl() argument
4846 ZVAL_NEW_STR(&property, zend_string_init(value, value_len, ce->type & ZEND_INTERNAL_CLASS)); in zend_declare_property_stringl()
4847 zend_declare_property(ce, name, name_length, &property, access_type); in zend_declare_property_stringl()
4851 ZEND_API zend_class_constant *zend_declare_typed_class_constant(zend_class_entry *ce, zend_string *… in zend_declare_typed_class_constant() argument
4855 if (ce->ce_flags & ZEND_ACC_INTERFACE) { in zend_declare_typed_class_constant()
4857 …RROR, "Access type for interface constant %s::%s must be public", ZSTR_VAL(ce->name), ZSTR_VAL(nam… in zend_declare_typed_class_constant()
4862 zend_error_noreturn(ce->type == ZEND_INTERNAL_CLASS ? E_CORE_ERROR : E_COMPILE_ERROR, in zend_declare_typed_class_constant()
4870 if (ce->type == ZEND_INTERNAL_CLASS) { in zend_declare_typed_class_constant()
4882 c->ce = ce; in zend_declare_typed_class_constant()
4886 ce->ce_flags &= ~ZEND_ACC_CONSTANTS_UPDATED; in zend_declare_typed_class_constant()
4887 ce->ce_flags |= ZEND_ACC_HAS_AST_CONSTANTS; in zend_declare_typed_class_constant()
4888 if (ce->type == ZEND_INTERNAL_CLASS && !ZEND_MAP_PTR(ce->mutable_data)) { in zend_declare_typed_class_constant()
4889 ZEND_MAP_PTR_NEW(ce->mutable_data); in zend_declare_typed_class_constant()
4893 if (!zend_hash_add_ptr(&ce->constants_table, name, c)) { in zend_declare_typed_class_constant()
4894 zend_error_noreturn(ce->type == ZEND_INTERNAL_CLASS ? E_CORE_ERROR : E_COMPILE_ERROR, in zend_declare_typed_class_constant()
4895 "Cannot redefine class constant %s::%s", ZSTR_VAL(ce->name), ZSTR_VAL(name)); in zend_declare_typed_class_constant()
4901 ZEND_API zend_class_constant *zend_declare_class_constant_ex(zend_class_entry *ce, zend_string *nam… in zend_declare_class_constant_ex() argument
4903 …return zend_declare_typed_class_constant(ce, name, value, flags, doc_comment, (zend_type) ZEND_TYP… in zend_declare_class_constant_ex()
4906 ZEND_API void zend_declare_class_constant(zend_class_entry *ce, const char *name, size_t name_lengt… in zend_declare_class_constant() argument
4910 if (ce->type == ZEND_INTERNAL_CLASS) { in zend_declare_class_constant()
4915 zend_declare_class_constant_ex(ce, key, value, ZEND_ACC_PUBLIC, NULL); in zend_declare_class_constant()
4920 ZEND_API void zend_declare_class_constant_null(zend_class_entry *ce, const char *name, size_t name_… in zend_declare_class_constant_null() argument
4925 zend_declare_class_constant(ce, name, name_length, &constant); in zend_declare_class_constant_null()
4929 ZEND_API void zend_declare_class_constant_long(zend_class_entry *ce, const char *name, size_t name_… in zend_declare_class_constant_long() argument
4934 zend_declare_class_constant(ce, name, name_length, &constant); in zend_declare_class_constant_long()
4938 ZEND_API void zend_declare_class_constant_bool(zend_class_entry *ce, const char *name, size_t name_… in zend_declare_class_constant_bool() argument
4943 zend_declare_class_constant(ce, name, name_length, &constant); in zend_declare_class_constant_bool()
4947 ZEND_API void zend_declare_class_constant_double(zend_class_entry *ce, const char *name, size_t nam… in zend_declare_class_constant_double() argument
4952 zend_declare_class_constant(ce, name, name_length, &constant); in zend_declare_class_constant_double()
4956 ZEND_API void zend_declare_class_constant_stringl(zend_class_entry *ce, const char *name, size_t na… in zend_declare_class_constant_stringl() argument
4960 ZVAL_NEW_STR(&constant, zend_string_init(value, value_length, ce->type & ZEND_INTERNAL_CLASS)); in zend_declare_class_constant_stringl()
4961 zend_declare_class_constant(ce, name, name_length, &constant); in zend_declare_class_constant_stringl()
4965 ZEND_API void zend_declare_class_constant_string(zend_class_entry *ce, const char *name, size_t nam… in zend_declare_class_constant_string() argument
4967 zend_declare_class_constant_stringl(ce, name, name_length, value, strlen(value)); in zend_declare_class_constant_string()
5252 ZEND_API ZEND_COLD const char *zend_get_object_type_case(const zend_class_entry *ce, bool upper_cas… in zend_get_object_type_case() argument
5254 if (ce->ce_flags & ZEND_ACC_TRAIT) { in zend_get_object_type_case()
5256 } else if (ce->ce_flags & ZEND_ACC_INTERFACE) { in zend_get_object_type_case()
5258 } else if (ce->ce_flags & ZEND_ACC_ENUM) { in zend_get_object_type_case()