/PHP-7.2/Zend/ |
H A D | zend_inheritance.c | 106 ce->__get = ce->parent->__get; in do_inherit_parent_constructor() 109 ce->__set = ce->parent->__set; in do_inherit_parent_constructor() 112 ce->__unset = ce->parent->__unset; in do_inherit_parent_constructor() 115 ce->__isset = ce->parent->__isset; in do_inherit_parent_constructor() 118 ce->__call = ce->parent->__call; in do_inherit_parent_constructor() 124 ce->__tostring = ce->parent->__tostring; in do_inherit_parent_constructor() 127 ce->clone = ce->parent->clone; in do_inherit_parent_constructor() 130 ce->serialize = ce->parent->serialize; in do_inherit_parent_constructor() 910 if (property_info->ce == ce) { in zend_do_inheritance() 1101 if (ce->constructor && (!ce->parent || ce->constructor != ce->parent->constructor)) { in zend_add_magic_methods() [all …]
|
H A D | zend_object_handlers.c | 77 zend_class_entry *ce = zobj->ce; in rebuild_object_properties() local 97 ce = ce->parent; in rebuild_object_properties() 99 if (prop_info->ce == ce && in rebuild_object_properties() 287 return (ce == scope || property_info->ce == scope); in zend_verify_property_access() 1057 if (!ce) { in zend_check_private_int() 1068 if (fbc->common.scope == ce && scope == ce) { in zend_check_private_int() 1075 ce = ce->parent; in zend_check_private_int() 1076 while (ce) { in zend_check_private_int() 1087 ce = ce->parent; in zend_check_private_int() 1306 instanceof_function(object->ce, ce)) { in zend_std_get_static_method() [all …]
|
H A D | zend_opcode.c | 193 if (ce->num_traits > 0 && ce->traits) { in _destroy_zend_class_traits_info() 194 efree(ce->traits); in _destroy_zend_class_traits_info() 197 if (ce->trait_aliases) { in _destroy_zend_class_traits_info() 256 switch (ce->type) { in destroy_zend_class() 279 if (prop_info->ce == ce || (prop_info->flags & ZEND_ACC_SHADOW)) { in destroy_zend_class() 293 if (c->ce == ce) { in destroy_zend_class() 302 if (ce->num_interfaces > 0 && ce->interfaces) { in destroy_zend_class() 350 if (c->doc_comment && c->ce == ce) { in destroy_zend_class() 357 free(ce->interfaces); in destroy_zend_class() 359 free(ce); in destroy_zend_class() [all …]
|
H A D | zend_objects.c | 34 object->ce = ce; in zend_object_std_init() 57 end = p + object->ce->default_properties_count; in zend_object_std_dtor() 94 if (object->ce != scope) { in zend_objects_destroy_object() 97 ZSTR_VAL(object->ce->name), in zend_objects_destroy_object() 104 ZSTR_VAL(object->ce->name)); in zend_objects_destroy_object() 116 ZSTR_VAL(object->ce->name), in zend_objects_destroy_object() 123 ZSTR_VAL(object->ce->name)); in zend_objects_destroy_object() 164 zend_object_std_init(object, ce); in zend_objects_new() 226 if (old_object->ce->clone) { in zend_objects_clone_members() 231 …zend_call_method_with_0_params(&new_obj, old_object->ce, &old_object->ce->clone, ZEND_CLONE_FUNC_N… in zend_objects_clone_members() [all …]
|
H A D | zend_inheritance.h | 27 ZEND_API void zend_do_inherit_interfaces(zend_class_entry *ce, const zend_class_entry *iface); 28 ZEND_API void zend_do_implement_interface(zend_class_entry *ce, zend_class_entry *iface); 30 ZEND_API void zend_do_implement_trait(zend_class_entry *ce, zend_class_entry *trait); 31 ZEND_API void zend_do_bind_traits(zend_class_entry *ce); 33 ZEND_API void zend_do_inheritance(zend_class_entry *ce, zend_class_entry *parent_ce); 36 void zend_check_deprecated_constructor(const zend_class_entry *ce);
|
H A D | zend_interfaces.c | 124 …zend_call_method_with_0_params(object, ce, &ce->iterator_funcs.zf_new_iterator, "getiterator", ret… in zend_user_it_new_iterator() 160 …zend_call_method_with_0_params(object, iter->ce, &iter->ce->iterator_funcs.zf_valid, "valid", &mor… in zend_user_it_valid() 178 …zend_call_method_with_0_params(object, iter->ce, &iter->ce->iterator_funcs.zf_current, "current", … in zend_user_it_get_current_data() 191 zend_call_method_with_0_params(object, iter->ce, &iter->ce->iterator_funcs.zf_key, "key", &retval); in zend_user_it_get_current_key() 212 zend_call_method_with_0_params(object, iter->ce, &iter->ce->iterator_funcs.zf_next, "next", NULL); in zend_user_it_move_forward() 223 …zend_call_method_with_0_params(object, iter->ce, &iter->ce->iterator_funcs.zf_rewind, "rewind", NU… in zend_user_it_rewind() 253 iterator->ce = Z_OBJCE_P(object); in zend_user_it_get_iterator() 384 zend_class_entry * ce = Z_OBJCE_P(object); in zend_user_serialize() local 388 zend_call_method_with_0_params(object, ce, &ce->serialize_func, "serialize", &retval); in zend_user_serialize() 429 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 | 38 zend_class_entry *ce; member 55 zend_class_entry ce;\ 56 INIT_CLASS_ENTRY(ce, # class_name_str, zend_funcs_ ## class_name) \ 57 zend_ce_ ## class_name = zend_register_internal_interface(&ce);\ 71 ZEND_API void zend_user_it_new_iterator(zend_class_entry *ce, zval *object, zval *iterator); 72 ZEND_API zend_object_iterator *zend_user_it_get_new_iterator(zend_class_entry *ce, zval *object, in… 77 ZEND_API int zend_user_unserialize(zval *object, zend_class_entry *ce, const unsigned char *buf, si… 80 ZEND_API int zend_class_unserialize_deny(zval *object, zend_class_entry *ce, const unsigned char *b…
|
/PHP-7.2/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 …]
|
H A D | phpdbg_info.c | 379 …const char *type = (ce->ce_flags & ZEND_ACC_INTERFACE) ? "Interface" : (ce->ce_flags & ZEND_ACC_AB… in phpdbg_print_class_name() 381 …%s %.*s (%d)", visibility, type, (int) ZSTR_LEN(ce->name), ZSTR_VAL(ce->name), zend_hash_num_eleme… in phpdbg_print_class_name() 386 zend_class_entry *ce; in PHPDBG_INFO() local 392 ZEND_HASH_FOREACH_PTR(EG(class_table), ce) { in PHPDBG_INFO() 393 if (ce->type == ZEND_USER_CLASS) { in PHPDBG_INFO() 394 zend_hash_next_index_insert_ptr(&classes, ce); in PHPDBG_INFO() 404 ZEND_HASH_FOREACH_PTR(&classes, ce) { in PHPDBG_INFO() 405 phpdbg_print_class_name(ce); in PHPDBG_INFO() 407 if (ce->parent) { in PHPDBG_INFO() 410 pce = ce->parent; in PHPDBG_INFO() [all …]
|
/PHP-7.2/ext/opcache/ |
H A D | zend_persist.c | 625 prop->ce = zend_shared_alloc_get_xlat_entry(prop->ce); in zend_persist_property_info() 653 c->ce = zend_shared_alloc_get_xlat_entry(c->ce); in zend_persist_class_constant() 720 if (ce->num_interfaces && ce->interfaces) { in zend_persist_class_entry() 725 if (ce->num_traits && ce->traits) { in zend_persist_class_entry() 740 ce->trait_aliases[i]->trait_method->ce = NULL; in zend_persist_class_entry() 762 ce->trait_precedences[i]->trait_method->ce = NULL; in zend_persist_class_entry() 799 ce->parent = zend_shared_alloc_get_xlat_entry(ce->parent); in zend_update_parent_ce() 810 ce->clone = zend_shared_alloc_get_xlat_entry(ce->clone); in zend_update_parent_ce() 813 ce->__get = zend_shared_alloc_get_xlat_entry(ce->__get); in zend_update_parent_ce() 816 ce->__set = zend_shared_alloc_get_xlat_entry(ce->__set); in zend_update_parent_ce() [all …]
|
H A D | zend_persist_calc.c | 313 zend_class_entry *ce = Z_PTR_P(zv); in zend_persist_class_entry_calc() local 315 if (ce->type == ZEND_USER_CLASS) { in zend_persist_class_entry_calc() 317 ADD_INTERNED_STRING(ce->name, 0); in zend_persist_class_entry_calc() 319 if (ce->default_properties_table) { in zend_persist_class_entry_calc() 337 if (ce->info.user.filename) { in zend_persist_class_entry_calc() 338 ADD_STRING(ce->info.user.filename); in zend_persist_class_entry_calc() 346 if (ce->trait_aliases) { in zend_persist_class_entry_calc() 348 while (ce->trait_aliases[i]) { in zend_persist_class_entry_calc() 359 if (ce->trait_aliases[i]->alias) { in zend_persist_class_entry_calc() 368 if (ce->trait_precedences) { in zend_persist_class_entry_calc() [all …]
|
H A D | zend_file_cache.c | 567 SERIALIZE_PTR(c->ce); 583 zend_class_entry *ce; local 586 ce = Z_PTR_P(zv); 587 UNSERIALIZE_PTR(ce); 589 SERIALIZE_STR(ce->name); 620 if (ce->trait_aliases) { 624 p = ce->trait_aliases; 1220 zend_class_entry *ce; local 1223 ce = Z_PTR_P(zv); 1257 if (ce->trait_aliases) { [all …]
|
H A D | zend_accelerator_util_funcs.c | 218 c->ce = ARENA_REALLOC(c->ce); in zend_hash_clone_constants() 328 prop_info->ce = ARENA_REALLOC(prop_info->ce); in zend_hash_clone_prop_info() 336 ce->handler = ARENA_REALLOC(ce->handler); \ 348 ce->refcount = 1; in zend_class_copy_ctor() 374 ce->static_members_table = ce->default_static_members_table; in zend_class_copy_ctor() 385 ce->interfaces = emalloc(sizeof(zend_class_entry *) * ce->num_interfaces); in zend_class_copy_ctor() 386 memset(ce->interfaces, 0, sizeof(zend_class_entry *) * ce->num_interfaces); in zend_class_copy_ctor() 388 ce->interfaces = NULL; in zend_class_copy_ctor() 391 if (ce->parent) { in zend_class_copy_ctor() 392 ce->parent = ARENA_REALLOC(ce->parent); in zend_class_copy_ctor() [all …]
|
/PHP-7.2/ext/reflection/ |
H A D | php_reflection.c | 1129 intern->ce = ce; in zend_reflection_class_factory() 1252 intern->ce = ce; in reflection_method_factory() 1297 reference->ce = ce; in reflection_property_factory() 1301 intern->ce = ce; in reflection_property_factory() 2487 intern->ce = ce; in ZEND_METHOD() 2609 ce = ce->parent; in ZEND_METHOD() 3072 intern->ce = ce; in ZEND_METHOD() 4427 property_info.ce = ce; in _adddynproperty() 5404 reference->ce = ce; in ZEND_METHOD() 5407 intern->ce = ce; in ZEND_METHOD() [all …]
|
/PHP-7.2/ext/spl/ |
H A D | spl_functions.c | 33 zend_class_entry ce; in spl_register_interface() local 35 INIT_CLASS_ENTRY_EX(ce, class_name, strlen(class_name), functions); in spl_register_interface() 36 *ppce = zend_register_internal_interface(&ce); in spl_register_interface() 43 zend_class_entry ce; in spl_register_std_class() local 45 INIT_CLASS_ENTRY_EX(ce, class_name, strlen(class_name), function_list); in spl_register_std_class() 46 *ppce = zend_register_internal_class(&ce); in spl_register_std_class() 58 zend_class_entry ce; in spl_register_sub_class() local 60 INIT_CLASS_ENTRY_EX(ce, class_name, strlen(class_name), function_list); in spl_register_sub_class() 61 *ppce = zend_register_internal_class_ex(&ce, parent_ce); in spl_register_sub_class() 135 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.2/ext/dom/ |
H A D | php_dom.c | 216 if (ce == NULL) { in dom_set_doc_classmap() 222 if (ce) { in dom_set_doc_classmap() 238 if (ce) { in dom_get_doc_classmap() 239 return ce; in dom_get_doc_classmap() 596 zend_class_entry ce; in PHP_MINIT_FUNCTION() local 1178 zend_class_entry *ce; in php_dom_create_interator() local 1193 zend_class_entry *ce; in php_dom_create_object() local 1227 ce = dom_attr_class_entry; in php_dom_create_object() 1232 ce = dom_text_class_entry; in php_dom_create_object() 1253 ce = dom_entity_class_entry; in php_dom_create_object() [all …]
|
/PHP-7.2/ext/mysqli/ |
H A D | mysqli.c | 566 zend_class_entry *ce,cex; in PHP_MINIT_FUNCTION() local 611 ce = mysqli_driver_class_entry; in PHP_MINIT_FUNCTION() 620 ce->ce_flags |= ZEND_ACC_FINAL; in PHP_MINIT_FUNCTION() 624 ce = mysqli_link_class_entry; in PHP_MINIT_FUNCTION() 650 ce->ce_flags |= ZEND_ACC_FINAL; in PHP_MINIT_FUNCTION() 659 ce = mysqli_result_class_entry; in PHP_MINIT_FUNCTION() 673 ce = mysqli_stmt_class_entry; in PHP_MINIT_FUNCTION() 1234 zend_class_entry *ce = NULL; in php_mysqli_fetch_into_hash() local 1247 if (!ce) { in php_mysqli_fetch_into_hash() 1286 if (!ce->default_properties_count && !ce->__set) { in php_mysqli_fetch_into_hash() [all …]
|
/PHP-7.2/ext/intl/breakiterator/ |
H A D | breakiterator_class.cpp | 53 zend_class_entry *ce; in breakiterator_object_create() local 56 ce = RuleBasedBreakIterator_ce_ptr; in breakiterator_object_create() 58 ce = CodePointBreakIterator_ce_ptr; in breakiterator_object_create() 60 ce = BreakIterator_ce_ptr; in breakiterator_object_create() 64 object_init_ex(object, ce); in breakiterator_object_create() 210 zend_object_std_init(&intern->zo, ce); in BreakIterator_object_create() 314 zend_class_entry ce; in breakiterator_register_BreakIterator_class() local 318 ce.create_object = BreakIterator_object_create; in breakiterator_register_BreakIterator_class() 319 ce.get_iterator = _breakiterator_get_iterator; in breakiterator_register_BreakIterator_class() 366 INIT_CLASS_ENTRY(ce, "IntlRuleBasedBreakIterator", in breakiterator_register_BreakIterator_class() [all …]
|
/PHP-7.2/ext/intl/normalizer/ |
H A D | normalizer_class.c | 55 zend_class_entry ce; in normalizer_register_Normalizer_class() local 58 INIT_CLASS_ENTRY( ce, "Normalizer", Normalizer_class_functions ); in normalizer_register_Normalizer_class() 59 ce.create_object = NULL; in normalizer_register_Normalizer_class() 60 Normalizer_ce_ptr = zend_register_internal_class( &ce ); in normalizer_register_Normalizer_class()
|
/PHP-7.2/ext/pdo/ |
H A D | php_pdo_int.h | 36 extern zend_object *pdo_dbh_new(zend_class_entry *ce); 41 extern zend_object *pdo_dbstmt_new(zend_class_entry *ce); 45 zend_object_iterator *pdo_stmt_iter_get(zend_class_entry *ce, zval *object, int by_ref); 50 extern zend_object *pdo_row_new(zend_class_entry *ce); 56 zend_object_iterator *php_pdo_dbstmt_iter_get(zend_class_entry *ce, zval *object);
|
/PHP-7.2/ext/intl/collator/ |
H A D | collator_class.c | 50 zend_object *Collator_object_create(zend_class_entry *ce ) in Collator_object_create() argument 54 intern = ecalloc(1, sizeof(Collator_object) + zend_object_properties_size(ce)); in Collator_object_create() 56 zend_object_std_init(&intern->zo, ce ); in Collator_object_create() 57 object_properties_init(&intern->zo, ce); in Collator_object_create() 125 zend_class_entry ce; in collator_register_Collator_class() local 128 INIT_CLASS_ENTRY( ce, "Collator", Collator_class_functions ); in collator_register_Collator_class() 129 ce.create_object = Collator_object_create; in collator_register_Collator_class() 130 Collator_ce_ptr = zend_register_internal_class( &ce ); in collator_register_Collator_class()
|
/PHP-7.2/ext/intl/spoofchecker/ |
H A D | spoofchecker_class.c | 45 zend_class_entry *ce) in Spoofchecker_object_create() argument 49 intern = ecalloc(1, sizeof(Spoofchecker_object) + zend_object_properties_size(ce)); in Spoofchecker_object_create() 51 zend_object_std_init(&intern->zo, ce); in Spoofchecker_object_create() 52 object_properties_init(&intern->zo, ce); in Spoofchecker_object_create() 132 zend_class_entry ce; in spoofchecker_register_Spoofchecker_class() local 135 INIT_CLASS_ENTRY(ce, "Spoofchecker", Spoofchecker_class_functions); in spoofchecker_register_Spoofchecker_class() 136 ce.create_object = Spoofchecker_object_create; in spoofchecker_register_Spoofchecker_class() 137 Spoofchecker_ce_ptr = zend_register_internal_class(&ce); in spoofchecker_register_Spoofchecker_class()
|
/PHP-7.2/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 = ecalloc( 1, sizeof(MessageFormatter_object) + zend_object_properties_size(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.2/ext/standard/tests/strings/ |
H A D | strrchr_variation5.phpt | 42 ce" 44 ce" 48 ce" 50 ce" 56 ce"
|
/PHP-7.2/ext/intl/formatter/ |
H A D | formatter_class.c | 48 zend_object *NumberFormatter_object_create(zend_class_entry *ce) in NumberFormatter_object_create() argument 52 intern = ecalloc( 1, sizeof(NumberFormatter_object) + zend_object_properties_size(ce)); in NumberFormatter_object_create() 54 zend_object_std_init( &intern->zo, ce ); in NumberFormatter_object_create() 55 object_properties_init(&intern->zo, ce); in NumberFormatter_object_create() 180 zend_class_entry ce; in formatter_register_class() local 183 INIT_CLASS_ENTRY( ce, "NumberFormatter", NumberFormatter_class_functions ); in formatter_register_class() 184 ce.create_object = NumberFormatter_object_create; in formatter_register_class() 185 NumberFormatter_ce_ptr = zend_register_internal_class( &ce ); in formatter_register_class()
|