/PHP-7.4/Zend/ |
H A D | zend_inheritance.c | 235 if (ce) { in lookup_class() 236 return ce; in lookup_class() 247 if (ce && class_visible(ce)) { in lookup_class() 301 if (ce && unlinked_instanceof(ce, ce2)) { in unlinked_instanceof() 1042 ce->interfaces[ce->num_interfaces++] = entry; in zend_do_inherit_interfaces() 1292 if (property_info->ce == ce) { in zend_do_inheritance_ex() 1357 if (old_constant->ce != parent_constant->ce) { in do_inherit_constant_check() 1439 ce->interfaces[ce->num_interfaces++] = iface; in zend_do_implement_interface() 1515 if (ce->constructor && (!ce->parent || ce->constructor != ce->parent->constructor)) { in zend_add_magic_methods() 1545 if (ce->constructor && (!ce->parent || ce->constructor != ce->parent->constructor)) { in zend_add_magic_methods() [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 int 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_check_deprecated_constructor(const zend_class_entry *ce); 37 void zend_build_properties_info_table(zend_class_entry *ce); 38 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() 184 zend_class_entry *ce = zobj->ce; in zend_std_call_getter() local 220 zend_class_entry *ce = zobj->ce; in zend_std_call_setter() local 258 zend_class_entry *ce = zobj->ce; in zend_std_call_unsetter() local 294 zend_class_entry *ce = zobj->ce; in zend_std_call_issetter() local 437 if (property_info->ce != ce) { in zend_get_property_offset() 528 if (property_info->ce != ce) { in zend_get_property_info() 1427 instanceof_function(object->ce, ce)) { in zend_std_get_static_method() [all …]
|
H A D | zend_opcode.c | 164 if (prop_info->ce == ce && p - static_members == prop_info->offset) { in zend_cleanup_internal_class_data() 180 if (prop_info->ce == ce && p - static_members == prop_info->offset) { in zend_cleanup_internal_class_data() 202 efree(ce->trait_names); in _destroy_zend_class_traits_info() 266 switch (ce->type) { in destroy_zend_class() 268 if (ce->parent_name && !(ce->ce_flags & ZEND_ACC_RESOLVED_PARENT)) { in destroy_zend_class() 289 if (prop_info->ce == ce && p - ce->default_static_members_table == prop_info->offset) { in destroy_zend_class() 301 if (prop_info->ce == ce) { in destroy_zend_class() 318 if (c->ce == ce) { in destroy_zend_class() 387 if (c->ce == ce) { in destroy_zend_class() 406 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() 112 if (object->ce != scope) { in zend_objects_destroy_object() 115 ZSTR_VAL(object->ce->name), in zend_objects_destroy_object() 122 ZSTR_VAL(object->ce->name)); in zend_objects_destroy_object() 134 ZSTR_VAL(object->ce->name), in zend_objects_destroy_object() 141 ZSTR_VAL(object->ce->name)); in zend_objects_destroy_object() 176 fcic.called_scope = object->ce; in zend_objects_destroy_object() 198 _zend_object_std_init(object, ce); in zend_objects_new() 266 if (old_object->ce->clone) { in zend_objects_clone_members() [all …]
|
H A D | zend_interfaces.c | 127 …zend_call_method_with_0_params(object, ce, &ce->iterator_funcs_ptr->zf_new_iterator, "getiterator"… in zend_user_it_new_iterator() 163 …zend_call_method_with_0_params(object, iter->ce, &iter->ce->iterator_funcs_ptr->zf_valid, "valid",… in zend_user_it_valid() 179 …zend_call_method_with_0_params(object, iter->ce, &iter->ce->iterator_funcs_ptr->zf_current, "curre… in zend_user_it_get_current_data() 192 …zend_call_method_with_0_params(object, iter->ce, &iter->ce->iterator_funcs_ptr->zf_key, "key", &re… in zend_user_it_get_current_key() 213 …zend_call_method_with_0_params(object, iter->ce, &iter->ce->iterator_funcs_ptr->zf_next, "next", N… in zend_user_it_move_forward() 224 …zend_call_method_with_0_params(object, iter->ce, &iter->ce->iterator_funcs_ptr->zf_rewind, "rewind… in zend_user_it_rewind() 255 iterator->ce = Z_OBJCE_P(object); in zend_user_it_get_iterator() 437 zend_class_entry * ce = Z_OBJCE_P(object); in zend_user_serialize() local 441 zend_call_method_with_0_params(object, ce, &ce->serialize_func, "serialize", &retval); in zend_user_serialize() 482 zend_call_method_with_1_params(object, ce, &ce->unserialize_func, "unserialize", NULL, &zdata); in zend_user_unserialize() [all …]
|
H A D | zend_interfaces.h | 36 zend_class_entry *ce; member 53 zend_class_entry ce;\ 54 INIT_CLASS_ENTRY(ce, # class_name_str, zend_funcs_ ## class_name) \ 55 zend_ce_ ## class_name = zend_register_internal_interface(&ce);\ 69 ZEND_API void zend_user_it_new_iterator(zend_class_entry *ce, zval *object, zval *iterator); 70 ZEND_API zend_object_iterator *zend_user_it_get_new_iterator(zend_class_entry *ce, zval *object, in… 75 ZEND_API int zend_user_unserialize(zval *object, zend_class_entry *ce, const unsigned char *buf, si… 78 ZEND_API int zend_class_unserialize_deny(zval *object, zend_class_entry *ce, const unsigned char *b…
|
H A D | zend_objects_API.h | 81 static zend_always_inline size_t zend_object_properties_size(zend_class_entry *ce) in zend_object_properties_size() argument 84 (ce->default_properties_count - in zend_object_properties_size() 85 ((ce->ce_flags & ZEND_ACC_USE_GUARDS) ? 0 : 1)); in zend_object_properties_size() 90 static zend_always_inline void *zend_object_alloc(size_t obj_size, zend_class_entry *ce) { in zend_object_alloc() argument 91 void *obj = emalloc(obj_size + zend_object_properties_size(ce)); in zend_object_alloc() 100 zend_property_info **table = obj->ce->properties_info_table; in zend_get_property_info_for_slot() 102 ZEND_ASSERT(prop_num >= 0 && prop_num < obj->ce->default_properties_count); in zend_get_property_info_for_slot()
|
/PHP-7.4/ext/opcache/ |
H A D | zend_persist.c | 635 ce = zend_shared_alloc_get_xlat_entry(prop->ce); in zend_persist_property_info() 636 if (ce) { in zend_persist_property_info() 637 prop->ce = ce; in zend_persist_property_info() 674 ce = zend_shared_alloc_get_xlat_entry(c->ce); in zend_persist_class_constant() 675 if (ce) { in zend_persist_class_constant() 676 c->ce = ce; in zend_persist_class_constant() 721 if (ce->parent_name && !(ce->ce_flags & ZEND_ACC_LINKED)) { in zend_persist_class_entry() 745 …i = (ce->parent && (ce->ce_flags & ZEND_ACC_LINKED)) ? ce->parent->default_static_members_count : … in zend_persist_class_entry() 827 …ce->trait_names = zend_shared_memdup_free(ce->trait_names, sizeof(zend_class_name) * ce->num_trait… in zend_persist_class_entry() 939 ce = zend_shared_alloc_get_xlat_entry(ce); in zend_update_parent_ce() [all …]
|
H A D | zend_persist_calc.c | 359 zend_shared_alloc_register_xlat_entry(ce, ce); in zend_persist_class_entry_calc() 370 ADD_INTERNED_STRING(ce->name); in zend_persist_class_entry_calc() 371 if (ce->parent_name && !(ce->ce_flags & ZEND_ACC_LINKED)) { in zend_persist_class_entry_calc() 405 if (ce->info.user.filename) { in zend_persist_class_entry_calc() 419 if (ce->properties_info_table) { in zend_persist_class_entry_calc() 423 if (ce->num_interfaces) { in zend_persist_class_entry_calc() 437 if (ce->num_traits) { in zend_persist_class_entry_calc() 446 if (ce->trait_aliases) { in zend_persist_class_entry_calc() 448 while (ce->trait_aliases[i]) { in zend_persist_class_entry_calc() 465 if (ce->trait_precedences) { in zend_persist_class_entry_calc() [all …]
|
H A D | zend_file_cache.c | 395 SERIALIZE_PTR(ce); 396 ce = ZEND_TYPE_PTR_ENCODE(ce); 638 zend_class_entry *ce; local 641 ce = Z_PTR_P(zv); 642 UNSERIALIZE_PTR(ce); 645 if (ce->parent) { 712 if (ce->num_traits) { 1106 ce = ZEND_TYPE_PTR_DECODE(ce); 1107 UNSERIALIZE_PTR(ce); 1345 ce = Z_PTR_P(zv); [all …]
|
H A D | zend_accelerator_util_funcs.c | 131 ce = Z_PTR(p->val); in zend_accel_move_user_classes() 164 c->ce = ARENA_REALLOC(c->ce); in zend_hash_clone_constants() 233 prop_info->ce = ARENA_REALLOC(prop_info->ce); in zend_hash_clone_prop_info() 239 ce = ARENA_REALLOC(ce); in zend_hash_clone_prop_info() 249 if (ce->handler != NULL && IN_ARENA(ce->handler)) { \ 250 ce->handler = ARENA_REALLOC(ce->handler); \ 260 *pce = ce = ARENA_REALLOC(ce); in zend_class_copy_ctor() 261 ce->refcount = 1; in zend_class_copy_ctor() 263 if ((ce->ce_flags & ZEND_ACC_LINKED) && IN_ARENA(ce->parent)) { in zend_class_copy_ctor() 264 ce->parent = ARENA_REALLOC(ce->parent); in zend_class_copy_ctor() [all …]
|
H A D | ZendAccelerator.c | 631 if (ce->name) { in accel_copy_permanent_strings() 632 ce->name = new_interned_string(ce->name); in accel_copy_permanent_strings() 3369 if (ce->parent && (ce->ce_flags & ZEND_ACC_LINKED)) { in preload_sort_classes() 3384 if (ce->num_interfaces && (ce->ce_flags & ZEND_ACC_LINKED)) { in preload_sort_classes() 3525 …uint32_t count = ce->parent ? ce->default_static_members_count - ce->parent->default_static_member… in preload_try_resolve_constants() 3608 if (ce->trait_aliases || ce->trait_precedences) { in preload_is_method_maybe_override() 3896 ce = prop->ce; in preload_load_prop_type() 3898 ce = prop->ce->parent; in preload_load_prop_type() 3902 if (ce) { in preload_load_prop_type() 3903 return ce; in preload_load_prop_type() [all …]
|
/PHP-7.4/sapi/phpdbg/ |
H A D | phpdbg_print.c | 151 zend_class_entry *ce; in PHPDBG_PRINT() local 162 ZSTR_VAL(ce->name), in PHPDBG_PRINT() 185 zend_class_entry *ce; in PHPDBG_PRINT() local 304 zend_class_entry *ce; in phpdbg_print_opcodes_method() local 310 …if (ce->name->len == strlen(class) && !zend_binary_strcasecmp(class, strlen(class), ce->name->val,… in phpdbg_print_opcodes_method() 335 ZSTR_VAL(ce->name)); in phpdbg_print_opcodes_ce() 362 zend_class_entry *ce; in phpdbg_print_opcodes_class() local 368 …if (ce->name->len == strlen(class) && !zend_binary_strcasecmp(class, strlen(class), ce->name->val,… in phpdbg_print_opcodes_class() 377 phpdbg_print_opcodes_ce(ce); in phpdbg_print_opcodes_class() 388 zend_class_entry *ce; in phpdbg_print_opcodes() local [all …]
|
/PHP-7.4/ext/reflection/ |
H A D | php_reflection.c | 1092 intern->ce = ce; in zend_reflection_class_factory() 1205 intern->ce = ce; in reflection_method_factory() 1254 intern->ce = ce; in reflection_property_factory() 1277 intern->ce = constant->ce; in reflection_class_constant_factory() 2404 intern->ce = ce; in ZEND_METHOD() 2550 ce = ce->parent; in ZEND_METHOD() 3015 intern->ce = ce; in ZEND_METHOD() 4364 property_info.ce = ce; in _adddynproperty() 5346 reference->prop.ce = ce; in ZEND_METHOD() 5360 intern->ce = ce; in ZEND_METHOD() [all …]
|
/PHP-7.4/ext/spl/ |
H A D | spl_functions.c | 31 zend_class_entry ce; in spl_register_interface() local 33 INIT_CLASS_ENTRY_EX(ce, class_name, strlen(class_name), functions); in spl_register_interface() 34 *ppce = zend_register_internal_interface(&ce); in spl_register_interface() 41 zend_class_entry ce; in spl_register_std_class() local 43 INIT_CLASS_ENTRY_EX(ce, class_name, strlen(class_name), function_list); in spl_register_std_class() 44 *ppce = zend_register_internal_class(&ce); in spl_register_std_class() 56 zend_class_entry ce; in spl_register_sub_class() local 58 INIT_CLASS_ENTRY_EX(ce, class_name, strlen(class_name), function_list); in spl_register_sub_class() 59 *ppce = zend_register_internal_class_ex(&ce, parent_ce); in spl_register_sub_class() 140 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-7.4/ext/dom/ |
H A D | php_dom.c | 214 if (ce == NULL) { in dom_set_doc_classmap() 220 if (ce) { in dom_set_doc_classmap() 236 if (ce) { in dom_get_doc_classmap() 237 return ce; in dom_get_doc_classmap() 595 zend_class_entry ce; in PHP_MINIT_FUNCTION() local 1174 zend_class_entry *ce; in php_dom_create_interator() local 1189 zend_class_entry *ce; in php_dom_create_object() local 1223 ce = dom_attr_class_entry; in php_dom_create_object() 1228 ce = dom_text_class_entry; in php_dom_create_object() 1249 ce = dom_entity_class_entry; in php_dom_create_object() [all …]
|
/PHP-7.4/ext/pdo/ |
H A D | php_pdo_int.h | 34 extern zend_object *pdo_dbh_new(zend_class_entry *ce); 39 extern zend_object *pdo_dbstmt_new(zend_class_entry *ce); 43 zend_object_iterator *pdo_stmt_iter_get(zend_class_entry *ce, zval *object, int by_ref); 48 extern zend_object *pdo_row_new(zend_class_entry *ce); 54 zend_object_iterator *php_pdo_dbstmt_iter_get(zend_class_entry *ce, zval *object);
|
/PHP-7.4/ext/intl/collator/ |
H A D | collator_class.c | 50 zend_object *Collator_object_create(zend_class_entry *ce ) in Collator_object_create() argument 52 Collator_object *intern = zend_object_alloc(sizeof(Collator_object), ce); in Collator_object_create() 54 zend_object_std_init(&intern->zo, ce ); in Collator_object_create() 55 object_properties_init(&intern->zo, ce); in Collator_object_create() 123 zend_class_entry ce; in collator_register_Collator_class() local 126 INIT_CLASS_ENTRY( ce, "Collator", Collator_class_functions ); in collator_register_Collator_class() 127 ce.create_object = Collator_object_create; in collator_register_Collator_class() 128 Collator_ce_ptr = zend_register_internal_class( &ce ); in collator_register_Collator_class()
|
/PHP-7.4/ext/mysqli/ |
H A D | mysqli.c | 572 zend_class_entry *ce,cex; in PHP_MINIT_FUNCTION() local 613 ce = mysqli_driver_class_entry; in PHP_MINIT_FUNCTION() 622 ce->ce_flags |= ZEND_ACC_FINAL; in PHP_MINIT_FUNCTION() 626 ce = mysqli_link_class_entry; in PHP_MINIT_FUNCTION() 651 ce->ce_flags |= ZEND_ACC_FINAL; in PHP_MINIT_FUNCTION() 660 ce = mysqli_result_class_entry; in PHP_MINIT_FUNCTION() 673 ce = mysqli_stmt_class_entry; in PHP_MINIT_FUNCTION() 1228 zend_class_entry *ce = NULL; in php_mysqli_fetch_into_hash() local 1241 if (!ce) { in php_mysqli_fetch_into_hash() 1280 if (!ce->default_properties_count && !ce->__set) { in php_mysqli_fetch_into_hash() [all …]
|
/PHP-7.4/ext/intl/breakiterator/ |
H A D | breakiterator_class.cpp | 54 zend_class_entry *ce; in breakiterator_object_create() local 57 ce = RuleBasedBreakIterator_ce_ptr; in breakiterator_object_create() 59 ce = CodePointBreakIterator_ce_ptr; in breakiterator_object_create() 61 ce = BreakIterator_ce_ptr; in breakiterator_object_create() 65 object_init_ex(object, ce); in breakiterator_object_create() 210 zend_object_std_init(&intern->zo, ce); in BreakIterator_object_create() 312 zend_class_entry ce; in breakiterator_register_BreakIterator_class() local 316 ce.create_object = BreakIterator_object_create; in breakiterator_register_BreakIterator_class() 317 ce.get_iterator = _breakiterator_get_iterator; in breakiterator_register_BreakIterator_class() 364 INIT_CLASS_ENTRY(ce, "IntlRuleBasedBreakIterator", in breakiterator_register_BreakIterator_class() [all …]
|
/PHP-7.4/ext/intl/normalizer/ |
H A D | normalizer_class.c | 64 zend_class_entry ce; in normalizer_register_Normalizer_class() local 67 INIT_CLASS_ENTRY( ce, "Normalizer", Normalizer_class_functions ); in normalizer_register_Normalizer_class() 68 ce.create_object = NULL; in normalizer_register_Normalizer_class() 69 Normalizer_ce_ptr = zend_register_internal_class( &ce ); in normalizer_register_Normalizer_class()
|
/PHP-7.4/ext/intl/spoofchecker/ |
H A D | spoofchecker_class.c | 44 zend_object *Spoofchecker_object_create(zend_class_entry *ce) in Spoofchecker_object_create() argument 48 intern = zend_object_alloc(sizeof(Spoofchecker_object), ce); in Spoofchecker_object_create() 50 zend_object_std_init(&intern->zo, ce); in Spoofchecker_object_create() 51 object_properties_init(&intern->zo, ce); in Spoofchecker_object_create() 140 zend_class_entry ce; in spoofchecker_register_Spoofchecker_class() local 143 INIT_CLASS_ENTRY(ce, "Spoofchecker", Spoofchecker_class_functions); in spoofchecker_register_Spoofchecker_class() 144 ce.create_object = Spoofchecker_object_create; in spoofchecker_register_Spoofchecker_class() 145 Spoofchecker_ce_ptr = zend_register_internal_class(&ce); in spoofchecker_register_Spoofchecker_class()
|
/PHP-7.4/ext/intl/msgformat/ |
H A D | msgformat_class.c | 48 zend_object *MessageFormatter_object_create(zend_class_entry *ce) in MessageFormatter_object_create() argument 52 intern = zend_object_alloc(sizeof(MessageFormatter_object), ce); in MessageFormatter_object_create() 54 zend_object_std_init( &intern->zo, ce ); in MessageFormatter_object_create() 55 object_properties_init(&intern->zo, ce); in MessageFormatter_object_create() 148 zend_class_entry ce; in msgformat_register_class() local 151 INIT_CLASS_ENTRY( ce, "MessageFormatter", MessageFormatter_class_functions ); in msgformat_register_class() 152 ce.create_object = MessageFormatter_object_create; in msgformat_register_class() 153 MessageFormatter_ce_ptr = zend_register_internal_class( &ce ); in msgformat_register_class()
|
/PHP-7.4/ext/opcache/Optimizer/ |
H A D | escape_analysis.c | 154 if (ce) { in get_class_entry() 155 return ce; in get_class_entry() 158 ce = zend_hash_find_ptr(CG(class_table), lcname); in get_class_entry() 159 if (ce && ce->type == ZEND_INTERNAL_CLASS) { in get_class_entry() 160 return ce; in get_class_entry() 184 if (ce && !ce->create_object && !ce->constructor && in is_allocation_def() 185 !ce->destructor && !ce->__get && !ce->__set && in is_allocation_def() 186 !(ce->ce_flags & forbidden_flags) && in is_allocation_def() 249 if (ce && !ce->create_object && !ce->constructor && in is_local_def() 250 !ce->destructor && !ce->__get && !ce->__set && in is_local_def() [all …]
|