/PHP-8.0/Zend/ |
H A D | zend_inheritance.c | 247 if (ce) { in lookup_class() 248 return ce; in lookup_class() 260 if (ce && class_visible(ce)) { in lookup_class() 315 if (ce && ce != ce1 && unlinked_instanceof(ce, ce2)) { in unlinked_instanceof() 354 if (ce && unlinked_instanceof(self, ce)) { in zend_type_permits_self() 1123 ce->interfaces[ce->num_interfaces++] = entry; in zend_do_inherit_interfaces() 1360 if (property_info->ce == ce) { in zend_do_inheritance_ex() 1429 if (old_constant->ce != parent_constant->ce) { in do_inherit_constant_check() 1511 ce->interfaces[ce->num_interfaces++] = iface; in zend_do_implement_interface() 1570 do_implement_interface(ce, ce->interfaces[i]); in zend_do_implement_interfaces() [all …]
|
H A D | zend_inheritance.h | 27 ZEND_API void zend_do_implement_interface(zend_class_entry *ce, zend_class_entry *iface); 28 ZEND_API void zend_do_inheritance_ex(zend_class_entry *ce, zend_class_entry *parent_ce, zend_bool c… 30 #define zend_do_inheritance(ce, parent_ce) \ argument 31 zend_do_inheritance_ex(ce, parent_ce, 0) 33 ZEND_API zend_result zend_do_link_class(zend_class_entry *ce, zend_string *lc_parent_name); 35 void zend_verify_abstract_class(zend_class_entry *ce); 36 void zend_build_properties_info_table(zend_class_entry *ce); 37 zend_bool zend_try_early_bind(zend_class_entry *ce, zend_class_entry *parent_ce, zend_string *lcnam…
|
H A D | zend_object_handlers.c | 65 zend_class_entry *ce = zobj->ce; in rebuild_object_properties() local 85 ce = ce->parent; in rebuild_object_properties() 87 if (prop_info->ce == ce && in rebuild_object_properties() 143 zend_class_entry *ce = object->ce; in zend_std_get_debug_info() local 326 if (property_info->ce != ce) { in zend_get_property_offset() 417 if (property_info->ce != ce) { in zend_get_property_info() 819 zend_class_entry *ce = object->ce; in zend_std_read_dimension() local 868 zend_class_entry *ce = object->ce; in zend_std_write_dimension() local 889 zend_class_entry *ce = object->ce; in zend_std_has_dimension() local 1551 if (zobj1->ce != zobj2->ce) { in zend_std_compare_objects() [all …]
|
H A D | zend_opcode.c | 184 if (prop_info->ce == ce && p - static_members == prop_info->offset) { in zend_cleanup_internal_class_data() 200 if (prop_info->ce == ce && p - static_members == prop_info->offset) { in zend_cleanup_internal_class_data() 222 efree(ce->trait_names); in _destroy_zend_class_traits_info() 286 switch (ce->type) { in destroy_zend_class() 288 if (ce->parent_name && !(ce->ce_flags & ZEND_ACC_RESOLVED_PARENT)) { in destroy_zend_class() 309 if (prop_info->ce == ce && p - ce->default_static_members_table == prop_info->offset) { in destroy_zend_class() 321 if (prop_info->ce == ce) { in destroy_zend_class() 339 if (c->ce == ce) { in destroy_zend_class() 421 if (c->ce == ce) { in destroy_zend_class() 446 free(ce); in destroy_zend_class() [all …]
|
H A D | zend_objects.c | 33 object->ce = ce; in _zend_object_std_init() 43 _zend_object_std_init(object, ce); in zend_object_std_init() 60 end = p + object->ce->default_properties_count; in zend_object_std_dtor() 108 if (object->ce != scope) { in zend_objects_destroy_object() 111 ZSTR_VAL(object->ce->name), in zend_objects_destroy_object() 120 ZSTR_VAL(object->ce->name)); in zend_objects_destroy_object() 132 ZSTR_VAL(object->ce->name), in zend_objects_destroy_object() 141 ZSTR_VAL(object->ce->name)); in zend_objects_destroy_object() 180 _zend_object_std_init(object, ce); in zend_objects_new() 248 if (old_object->ce->clone) { in zend_objects_clone_members() [all …]
|
H A D | zend_interfaces.c | 52 obj_ce = object ? object->ce : NULL; in zend_call_method() 77 called_scope = object->ce; in zend_call_method() 129 …zend_call_method_with_0_params(Z_OBJ_P(object), iter->ce, &iter->ce->iterator_funcs_ptr->zf_valid,… in zend_user_it_valid() 156 …zend_call_method_with_0_params(Z_OBJ_P(object), iter->ce, &iter->ce->iterator_funcs_ptr->zf_key, "… in zend_user_it_get_current_key() 170 …zend_call_method_with_0_params(Z_OBJ_P(object), iter->ce, &iter->ce->iterator_funcs_ptr->zf_next, … in zend_user_it_move_forward() 181 …zend_call_method_with_0_params(Z_OBJ_P(object), iter->ce, &iter->ce->iterator_funcs_ptr->zf_rewind… in zend_user_it_rewind() 213 iterator->ce = Z_OBJCE_P(object); in zend_user_it_get_iterator() 350 zend_class_entry * ce = Z_OBJCE_P(object); in zend_user_serialize() local 408 zend_class_entry *ce = Z_OBJCE_P(object); in zend_class_serialize_deny() local 447 zend_object_std_init(&intern->std, ce); in zend_internal_iterator_create() [all …]
|
H A D | zend_API.c | 795 if (ce) { in zend_parse_arg_impl() 1148 if (ce && !instanceof_function(Z_OBJCE_P(this_ptr), ce)) { in zend_parse_method_parameters() 1180 if (ce && !instanceof_function(Z_OBJCE_P(this_ptr), ce)) { in zend_parse_method_parameters_ex() 2281 ce->clone = fptr; in zend_add_magic_method() 2288 ce->__get = fptr; in zend_add_magic_method() 2877 ce->refcount++; in zend_register_class_alias_ex() 3086 fcc->called_scope = fcc->object ? fcc->object->ce : ce; in zend_is_callable_check_class() 3373 ZSTR_VAL(ce->name), ZSTR_LEN(ce->name), in zend_get_callable_name_ex() 3796 …ce->default_properties_table = perealloc(ce->default_properties_table, sizeof(zval) * ce->default_… in zend_declare_typed_property() 3832 property_info->ce = ce; in zend_declare_typed_property() [all …]
|
/PHP-8.0/ext/opcache/ |
H A D | zend_persist.c | 722 ce = zend_shared_alloc_get_xlat_entry(prop->ce); in zend_persist_property_info() 723 if (ce) { in zend_persist_property_info() 724 prop->ce = ce; in zend_persist_property_info() 760 ce = zend_shared_alloc_get_xlat_entry(c->ce); in zend_persist_class_constant() 761 if (ce) { in zend_persist_class_constant() 762 c->ce = ce; in zend_persist_class_constant() 834 …i = (ce->parent && (ce->ce_flags & ZEND_ACC_LINKED)) ? ce->parent->default_static_members_count : … in zend_persist_class_entry() 870 ce->attributes = zend_persist_attributes(ce->attributes); in zend_persist_class_entry() 933 …ce->trait_names = zend_shared_memdup_free(ce->trait_names, sizeof(zend_class_name) * ce->num_trait… in zend_persist_class_entry() 1047 ce = zend_shared_alloc_get_xlat_entry(ce); in zend_update_parent_ce() [all …]
|
H A D | zend_persist_calc.c | 397 zend_shared_alloc_register_xlat_entry(ce, ce); in zend_persist_class_entry_calc() 408 ADD_INTERNED_STRING(ce->name); in zend_persist_class_entry_calc() 409 if (ce->parent_name && !(ce->ce_flags & ZEND_ACC_LINKED)) { in zend_persist_class_entry_calc() 443 if (ce->info.user.filename) { in zend_persist_class_entry_calc() 449 if (ce->attributes) { in zend_persist_class_entry_calc() 458 if (prop->ce == ce) { in zend_persist_class_entry_calc() 467 if (ce->num_interfaces) { in zend_persist_class_entry_calc() 481 if (ce->num_traits) { in zend_persist_class_entry_calc() 490 if (ce->trait_aliases) { in zend_persist_class_entry_calc() 509 if (ce->trait_precedences) { in zend_persist_class_entry_calc() [all …]
|
H A D | zend_accelerator_util_funcs.c | 135 ce = Z_PTR(p->val); in zend_accel_move_user_classes() 168 c->ce = ARENA_REALLOC(c->ce); in zend_hash_clone_constants() 237 prop_info->ce = ARENA_REALLOC(prop_info->ce); in zend_hash_clone_prop_info() 251 ce = ARENA_REALLOC(ce); in zend_hash_clone_prop_info() 260 ce = ARENA_REALLOC(ce); in zend_hash_clone_prop_info() 270 if (ce->handler != NULL && IN_ARENA(ce->handler)) { \ 271 ce->handler = ARENA_REALLOC(ce->handler); \ 281 *pce = ce = ARENA_REALLOC(ce); in zend_class_copy_ctor() 282 ce->refcount = 1; in zend_class_copy_ctor() 284 if ((ce->ce_flags & ZEND_ACC_LINKED) && IN_ARENA(ce->parent)) { in zend_class_copy_ctor() [all …]
|
H A D | zend_file_cache.c | 443 SERIALIZE_PTR(ce); 692 zend_class_entry *ce; local 695 ce = Z_PTR_P(zv); 696 UNSERIALIZE_PTR(ce); 699 if (ce->parent) { 767 if (ce->num_traits) { 1216 UNSERIALIZE_PTR(ce); 1456 zend_class_entry *ce; local 1459 ce = Z_PTR_P(zv); 1462 if (ce->parent) { [all …]
|
/PHP-8.0/sapi/phpdbg/ |
H A D | phpdbg_print.c | 149 zend_class_entry *ce; in PHPDBG_PRINT() local 160 ZSTR_VAL(ce->name), in PHPDBG_PRINT() 183 zend_class_entry *ce; in PHPDBG_PRINT() local 302 zend_class_entry *ce; in phpdbg_print_opcodes_method() local 308 …if (ce->name->len == strlen(class) && !zend_binary_strcasecmp(class, strlen(class), ce->name->val,… in phpdbg_print_opcodes_method() 333 ZSTR_VAL(ce->name)); in phpdbg_print_opcodes_ce() 360 zend_class_entry *ce; in phpdbg_print_opcodes_class() local 366 …if (ce->name->len == strlen(class) && !zend_binary_strcasecmp(class, strlen(class), ce->name->val,… in phpdbg_print_opcodes_class() 375 phpdbg_print_opcodes_ce(ce); in phpdbg_print_opcodes_class() 386 zend_class_entry *ce; in phpdbg_print_opcodes() local [all …]
|
/PHP-8.0/ext/intl/collator/ |
H A D | collator_class.c | 44 zend_object *Collator_object_create(zend_class_entry *ce ) in Collator_object_create() argument 46 Collator_object *intern = zend_object_alloc(sizeof(Collator_object), ce); in Collator_object_create() 48 zend_object_std_init(&intern->zo, ce ); in Collator_object_create() 49 object_properties_init(&intern->zo, ce); in Collator_object_create() 66 zend_class_entry ce; in collator_register_Collator_class() local 69 INIT_CLASS_ENTRY( ce, "Collator", class_Collator_methods ); in collator_register_Collator_class() 70 ce.create_object = Collator_object_create; in collator_register_Collator_class() 71 Collator_ce_ptr = zend_register_internal_class( &ce ); in collator_register_Collator_class()
|
/PHP-8.0/ext/reflection/ |
H A D | php_reflection.c | 1249 intern->ce = ce; in zend_reflection_class_factory() 1379 intern->ce = ce; in reflection_method_factory() 1402 intern->ce = ce; in reflection_property_factory() 1425 intern->ce = constant->ce; in reflection_class_constant_factory() 2423 intern->ce = ce; in ZEND_METHOD() 2568 ce = ce->parent; in ZEND_METHOD() 3057 ce = arg1_obj->ce; in ZEND_METHOD() 3114 intern->ce = ce; in ZEND_METHOD() 3571 ce = classname_obj->ce; in ZEND_METHOD() 5238 intern->ce = ce; in ZEND_METHOD() [all …]
|
/PHP-8.0/ext/intl/msgformat/ |
H A D | msgformat_class.c | 43 zend_object *MessageFormatter_object_create(zend_class_entry *ce) in MessageFormatter_object_create() argument 47 intern = zend_object_alloc(sizeof(MessageFormatter_object), ce); in MessageFormatter_object_create() 49 zend_object_std_init( &intern->zo, ce ); in MessageFormatter_object_create() 50 object_properties_init(&intern->zo, ce); in MessageFormatter_object_create() 67 new_obj = MessageFormatter_ce_ptr->create_object(object->ce); in MessageFormatter_object_clone() 98 zend_class_entry ce; in msgformat_register_class() local 101 INIT_CLASS_ENTRY( ce, "MessageFormatter", class_MessageFormatter_methods ); in msgformat_register_class() 102 ce.create_object = MessageFormatter_object_create; in msgformat_register_class() 103 MessageFormatter_ce_ptr = zend_register_internal_class( &ce ); in msgformat_register_class()
|
/PHP-8.0/ext/intl/formatter/ |
H A D | formatter_class.c | 45 zend_object *NumberFormatter_object_create(zend_class_entry *ce) in NumberFormatter_object_create() argument 49 intern = zend_object_alloc(sizeof(NumberFormatter_object), ce); in NumberFormatter_object_create() 51 zend_object_std_init( &intern->zo, ce ); in NumberFormatter_object_create() 52 object_properties_init(&intern->zo, ce); in NumberFormatter_object_create() 69 new_obj = NumberFormatter_ce_ptr->create_object(object->ce); in NumberFormatter_object_clone() 99 zend_class_entry ce; in formatter_register_class() local 102 INIT_CLASS_ENTRY( ce, "NumberFormatter", class_NumberFormatter_methods ); in formatter_register_class() 103 ce.create_object = NumberFormatter_object_create; in formatter_register_class() 104 NumberFormatter_ce_ptr = zend_register_internal_class( &ce ); in formatter_register_class()
|
/PHP-8.0/ext/intl/breakiterator/ |
H A D | breakiterator_class.cpp | 50 zend_class_entry *ce; in breakiterator_object_create() local 53 ce = RuleBasedBreakIterator_ce_ptr; in breakiterator_object_create() 55 ce = CodePointBreakIterator_ce_ptr; in breakiterator_object_create() 57 ce = BreakIterator_ce_ptr; in breakiterator_object_create() 61 object_init_ex(object, ce); in breakiterator_object_create() 208 zend_object_std_init(&intern->zo, ce); in BreakIterator_object_create() 209 object_properties_init(&intern->zo, ce); in BreakIterator_object_create() 223 zend_class_entry ce; in breakiterator_register_BreakIterator_class() local 227 ce.create_object = BreakIterator_object_create; in breakiterator_register_BreakIterator_class() 228 ce.get_iterator = _breakiterator_get_iterator; in breakiterator_register_BreakIterator_class() [all …]
|
/PHP-8.0/ext/intl/spoofchecker/ |
H A D | spoofchecker_class.c | 41 zend_object *Spoofchecker_object_create(zend_class_entry *ce) in Spoofchecker_object_create() argument 45 intern = zend_object_alloc(sizeof(Spoofchecker_object), ce); in Spoofchecker_object_create() 47 zend_object_std_init(&intern->zo, ce); in Spoofchecker_object_create() 48 object_properties_init(&intern->zo, ce); in Spoofchecker_object_create() 72 new_obj_val = Spoofchecker_ce_ptr->create_object(object->ce); in spoofchecker_clone_obj() 93 zend_class_entry ce; in spoofchecker_register_Spoofchecker_class() local 96 INIT_CLASS_ENTRY(ce, "Spoofchecker", class_Spoofchecker_methods); in spoofchecker_register_Spoofchecker_class() 97 ce.create_object = Spoofchecker_object_create; in spoofchecker_register_Spoofchecker_class() 98 Spoofchecker_ce_ptr = zend_register_internal_class(&ce); in spoofchecker_register_Spoofchecker_class()
|
/PHP-8.0/ext/spl/ |
H A D | spl_functions.c | 29 zend_class_entry ce; in spl_register_interface() local 31 INIT_CLASS_ENTRY_EX(ce, class_name, strlen(class_name), functions); in spl_register_interface() 32 *ppce = zend_register_internal_interface(&ce); in spl_register_interface() 39 zend_class_entry ce; in spl_register_std_class() local 41 INIT_CLASS_ENTRY_EX(ce, class_name, strlen(class_name), function_list); in spl_register_std_class() 42 *ppce = zend_register_internal_class(&ce); in spl_register_std_class() 54 zend_class_entry ce; in spl_register_sub_class() local 56 INIT_CLASS_ENTRY_EX(ce, class_name, strlen(class_name), function_list); in spl_register_sub_class() 57 *ppce = zend_register_internal_class_ex(&ce, parent_ce); in spl_register_sub_class() 138 zend_string * spl_gen_private_prop_name(zend_class_entry *ce, char *prop_name, int prop_len) /* {{{… in spl_gen_private_prop_name() argument [all …]
|
/PHP-8.0/ext/intl/locale/ |
H A D | locale_class.c | 33 zend_class_entry ce; in locale_register_Locale_class() local 36 INIT_CLASS_ENTRY( ce, "Locale", class_Locale_methods ); in locale_register_Locale_class() 37 ce.create_object = NULL; in locale_register_Locale_class() 38 Locale_ce_ptr = zend_register_internal_class( &ce ); in locale_register_Locale_class()
|
/PHP-8.0/ext/intl/normalizer/ |
H A D | normalizer_class.c | 33 zend_class_entry ce; in normalizer_register_Normalizer_class() local 36 INIT_CLASS_ENTRY( ce, "Normalizer", class_Normalizer_methods ); in normalizer_register_Normalizer_class() 37 ce.create_object = NULL; in normalizer_register_Normalizer_class() 38 Normalizer_ce_ptr = zend_register_internal_class( &ce ); in normalizer_register_Normalizer_class()
|
/PHP-8.0/ext/intl/dateformat/ |
H A D | dateformat_class.c | 54 zend_object *IntlDateFormatter_object_create(zend_class_entry *ce) in IntlDateFormatter_object_create() argument 58 intern = zend_object_alloc(sizeof(IntlDateFormatter_object), ce); in IntlDateFormatter_object_create() 60 zend_object_std_init( &intern->zo, ce ); in IntlDateFormatter_object_create() 61 object_properties_init(&intern->zo, ce); in IntlDateFormatter_object_create() 82 new_obj = IntlDateFormatter_ce_ptr->create_object(object->ce); in IntlDateFormatter_object_clone() 111 zend_class_entry ce; in dateformat_register_IntlDateFormatter_class() local 114 INIT_CLASS_ENTRY( ce, "IntlDateFormatter", class_IntlDateFormatter_methods ); in dateformat_register_IntlDateFormatter_class() 115 ce.create_object = IntlDateFormatter_object_create; in dateformat_register_IntlDateFormatter_class() 116 IntlDateFormatter_ce_ptr = zend_register_internal_class( &ce ); in dateformat_register_IntlDateFormatter_class()
|
/PHP-8.0/ext/mysqli/ |
H A D | mysqli.c | 533 zend_class_entry *ce,cex; in PHP_MINIT_FUNCTION() local 574 ce = mysqli_driver_class_entry; in PHP_MINIT_FUNCTION() 582 ce->ce_flags |= ZEND_ACC_FINAL; in PHP_MINIT_FUNCTION() 586 ce = mysqli_link_class_entry; in PHP_MINIT_FUNCTION() 611 ce->ce_flags |= ZEND_ACC_FINAL; in PHP_MINIT_FUNCTION() 633 ce = mysqli_stmt_class_entry; in PHP_MINIT_FUNCTION() 1158 zend_class_entry *ce = NULL; in php_mysqli_fetch_into_hash() local 1164 if (ce == NULL) { in php_mysqli_fetch_into_hash() 1204 if (!ce->default_properties_count && !ce->__set) { in php_mysqli_fetch_into_hash() 1211 if (ce->constructor) { in php_mysqli_fetch_into_hash() [all …]
|
/PHP-8.0/ext/pdo/ |
H A D | php_pdo_int.h | 31 extern zend_object *pdo_dbh_new(zend_class_entry *ce); 36 extern zend_object *pdo_dbstmt_new(zend_class_entry *ce); 40 zend_object_iterator *pdo_stmt_iter_get(zend_class_entry *ce, zval *object, int by_ref); 46 extern zend_object *pdo_row_new(zend_class_entry *ce); 52 zend_object_iterator *php_pdo_dbstmt_iter_get(zend_class_entry *ce, zval *object);
|
/PHP-8.0/ext/dom/ |
H A D | php_dom.c | 199 if (ce == NULL) { in dom_set_doc_classmap() 205 if (ce) { in dom_set_doc_classmap() 221 if (ce) { in dom_get_doc_classmap() 222 return ce; in dom_get_doc_classmap() 562 zend_class_entry ce; in PHP_MINIT_FUNCTION() local 1115 zend_class_entry *ce; in php_dom_create_iterator() local 1130 zend_class_entry *ce; in php_dom_create_object() local 1163 ce = dom_attr_class_entry; in php_dom_create_object() 1168 ce = dom_text_class_entry; in php_dom_create_object() 1189 ce = dom_entity_class_entry; in php_dom_create_object() [all …]
|