Home
last modified time | relevance | path

Searched refs:class_type (Results 1 – 25 of 48) sorted by relevance

12

/PHP-8.1/Zend/
H A Dzend_interfaces.c278 ZSTR_VAL(class_type->name), in zend_implement_traversable()
292 ZSTR_VAL(class_type->name)); in zend_implement_aggregate()
299 if (!class_type->parent || class_type->parent->get_iterator != class_type->get_iterator) { in zend_implement_aggregate()
332 ZSTR_VAL(class_type->name)); in zend_implement_iterator()
335 if (class_type->get_iterator && class_type->get_iterator != zend_user_it_get_iterator) { in zend_implement_iterator()
336 if (!class_type->parent || class_type->parent->get_iterator != class_type->get_iterator) { in zend_implement_iterator()
344 if (class_type->parent && (class_type->parent->ce_flags & ZEND_ACC_REUSE_GET_ITERATOR)) { in zend_implement_iterator()
424 if (class_type->parent in zend_implement_serializable()
425 && (class_type->parent->serialize || class_type->parent->unserialize) in zend_implement_serializable()
429 if (!class_type->serialize) { in zend_implement_serializable()
[all …]
H A Dzend_API.c1325 if (c->ce == class_type) { in zend_separate_class_constants_table()
1383 ce_flags = class_type->ce_flags; in zend_update_class_constants()
1402 if (class_type->parent) { in zend_update_class_constants()
1424 if (c->ce != class_type) { in zend_update_class_constants()
1442 zend_class_init_statics(class_type); in zend_update_class_constants()
1500 class_type->ce_flags = ce_flags; in zend_update_class_constants()
1509 if (class_type->default_properties_count) { in _object_properties_init()
1658 if (class_type->create_object == NULL) { in _object_and_properties_init()
1665 _object_properties_init(obj, class_type); in _object_and_properties_init()
1668 ZVAL_OBJ(arg, class_type->create_object(class_type)); in _object_and_properties_init()
[all …]
H A Dzend_enum.c119 static int zend_implement_unit_enum(zend_class_entry *interface, zend_class_entry *class_type) in zend_implement_unit_enum() argument
121 if (class_type->ce_flags & ZEND_ACC_ENUM) { in zend_implement_unit_enum()
126 ZSTR_VAL(class_type->name), in zend_implement_unit_enum()
132 static int zend_implement_backed_enum(zend_class_entry *interface, zend_class_entry *class_type) in zend_implement_backed_enum() argument
134 if (!(class_type->ce_flags & ZEND_ACC_ENUM)) { in zend_implement_backed_enum()
136 ZSTR_VAL(class_type->name), in zend_implement_backed_enum()
141 if (class_type->enum_backing_type == IS_UNDEF) { in zend_implement_backed_enum()
143 ZSTR_VAL(class_type->name), in zend_implement_backed_enum()
H A Dzend_exceptions.c57 static int zend_implement_throwable(zend_class_entry *interface, zend_class_entry *class_type) in zend_implement_throwable() argument
61 zend_class_entry *root = class_type; in zend_implement_throwable()
72 ZSTR_VAL(class_type->name), in zend_implement_throwable()
239 static zend_object *zend_default_exception_new_ex(zend_class_entry *class_type, bool skip_top_trace… in zend_default_exception_new_ex() argument
246 zend_object *object = zend_objects_new(class_type); in zend_default_exception_new_ex()
249 object_properties_init(object, class_type); in zend_default_exception_new_ex()
262 if (EXPECTED((class_type != zend_ce_parse_error && class_type != zend_ce_compile_error) in zend_default_exception_new_ex()
281 static zend_object *zend_default_exception_new(zend_class_entry *class_type) /* {{{ */ in zend_default_exception_new() argument
283 return zend_default_exception_new_ex(class_type, 0); in zend_default_exception_new()
287 static zend_object *zend_error_exception_new(zend_class_entry *class_type) /* {{{ */ in zend_error_exception_new() argument
[all …]
H A Dzend_object_handlers.c1458 ZEND_API void zend_class_init_statics(zend_class_entry *class_type) /* {{{ */ in zend_class_init_statics() argument
1463 if (class_type->default_static_members_count && !CE_STATIC_MEMBERS(class_type)) { in zend_class_init_statics()
1464 if (class_type->parent) { in zend_class_init_statics()
1465 zend_class_init_statics(class_type->parent); in zend_class_init_statics()
1468 …ZEND_MAP_PTR_SET(class_type->static_members_table, emalloc(sizeof(zval) * class_type->default_stat… in zend_class_init_statics()
1469 for (i = 0; i < class_type->default_static_members_count; i++) { in zend_class_init_statics()
1470 p = &class_type->default_static_members_table[i]; in zend_class_init_statics()
1472 zval *q = &CE_STATIC_MEMBERS(class_type->parent)[i]; in zend_class_init_statics()
1474 ZVAL_INDIRECT(&CE_STATIC_MEMBERS(class_type)[i], q); in zend_class_init_statics()
1476 ZVAL_COPY_OR_DUP(&CE_STATIC_MEMBERS(class_type)[i], p); in zend_class_init_statics()
/PHP-8.1/ext/curl/
H A Dshare.c141 static zend_object *curl_share_create_object(zend_class_entry *class_type) { in curl_share_create_object() argument
142 php_curlsh *intern = zend_object_alloc(sizeof(php_curlsh), class_type); in curl_share_create_object()
144 zend_object_std_init(&intern->std, class_type); in curl_share_create_object()
145 object_properties_init(&intern->std, class_type); in curl_share_create_object()
H A Dmulti.c517 static zend_object *curl_multi_create_object(zend_class_entry *class_type) { in curl_multi_create_object() argument
518 php_curlm *intern = zend_object_alloc(sizeof(php_curlm), class_type); in curl_multi_create_object()
520 zend_object_std_init(&intern->std, class_type); in curl_multi_create_object()
521 object_properties_init(&intern->std, class_type); in curl_multi_create_object()
/PHP-8.1/ext/standard/
H A Dincomplete_class.c99 static zend_object *php_create_incomplete_object(zend_class_entry *class_type) in php_create_incomplete_object() argument
103 object = zend_objects_new( class_type); in php_create_incomplete_object()
106 object_properties_init(object, class_type); in php_create_incomplete_object()
/PHP-8.1/ext/xsl/
H A Dphp_xsl.c95 zend_object *xsl_objects_new(zend_class_entry *class_type) in xsl_objects_new() argument
99 intern = zend_object_alloc(sizeof(xsl_object), class_type); in xsl_objects_new()
102 zend_object_std_init(&intern->std, class_type); in xsl_objects_new()
103 object_properties_init(&intern->std, class_type); in xsl_objects_new()
/PHP-8.1/ext/shmop/
H A Dshmop.c81 static zend_object *shmop_create_object(zend_class_entry *class_type) in shmop_create_object() argument
83 php_shmop *intern = zend_object_alloc(sizeof(php_shmop), class_type); in shmop_create_object()
85 zend_object_std_init(&intern->std, class_type); in shmop_create_object()
86 object_properties_init(&intern->std, class_type); in shmop_create_object()
/PHP-8.1/ext/dom/
H A Dphp_dom.c1049 zend_class_entry *base_class = class_type; in dom_objects_set_class_ex()
1056 zend_object_std_init(&intern->std, class_type); in dom_objects_set_class_ex()
1057 object_properties_init(&intern->std, class_type); in dom_objects_set_class_ex()
1063 dom_objects_set_class_ex(class_type, intern); in dom_objects_set_class()
1068 zend_object *dom_objects_new(zend_class_entry *class_type) in dom_objects_new() argument
1070 dom_object *intern = dom_objects_set_class(class_type); in dom_objects_new()
1079 dom_objects_set_class_ex(class_type, &intern->dom); in dom_objects_namespace_node_new()
1097 zend_object *dom_xpath_objects_new(zend_class_entry *class_type) in dom_xpath_objects_new() argument
1107 zend_object_std_init(&intern->dom.std, class_type); in dom_xpath_objects_new()
1108 object_properties_init(&intern->dom.std, class_type); in dom_xpath_objects_new()
[all …]
H A Dphp_dom.h112 zend_object *dom_objects_new(zend_class_entry *class_type);
113 zend_object *dom_nnodemap_objects_new(zend_class_entry *class_type);
115 zend_object *dom_xpath_objects_new(zend_class_entry *class_type);
/PHP-8.1/ext/sysvsem/
H A Dsysvsem.c98 static zend_object *sysvsem_create_object(zend_class_entry *class_type) { in sysvsem_create_object() argument
99 sysvsem_sem *intern = zend_object_alloc(sizeof(sysvsem_sem), class_type); in sysvsem_create_object()
101 zend_object_std_init(&intern->std, class_type); in sysvsem_create_object()
102 object_properties_init(&intern->std, class_type); in sysvsem_create_object()
/PHP-8.1/ext/enchant/
H A Denchant.c52 static zend_object *enchant_broker_create_object(zend_class_entry *class_type) { in enchant_broker_create_object() argument
53 enchant_broker *intern = zend_object_alloc(sizeof(enchant_broker), class_type); in enchant_broker_create_object()
55 zend_object_std_init(&intern->std, class_type); in enchant_broker_create_object()
56 object_properties_init(&intern->std, class_type); in enchant_broker_create_object()
71 static zend_object *enchant_dict_create_object(zend_class_entry *class_type) { in enchant_dict_create_object() argument
72 enchant_dict *intern = zend_object_alloc(sizeof(enchant_dict), class_type); in enchant_dict_create_object()
74 zend_object_std_init(&intern->std, class_type); in enchant_dict_create_object()
75 object_properties_init(&intern->std, class_type); in enchant_dict_create_object()
/PHP-8.1/ext/spl/
H A Dspl_fixedarray.c285 static zend_object *spl_fixedarray_object_new_ex(zend_class_entry *class_type, zend_object *orig, b… in spl_fixedarray_object_new_ex() argument
288 zend_class_entry *parent = class_type; in spl_fixedarray_object_new_ex()
293 zend_object_std_init(&intern->std, class_type); in spl_fixedarray_object_new_ex()
294 object_properties_init(&intern->std, class_type); in spl_fixedarray_object_new_ex()
315 …methods.fptr_offset_get = zend_hash_str_find_ptr(&class_type->function_table, "offsetget", sizeof(… in spl_fixedarray_object_new_ex()
319 …methods.fptr_offset_set = zend_hash_str_find_ptr(&class_type->function_table, "offsetset", sizeof(… in spl_fixedarray_object_new_ex()
323 …methods.fptr_offset_has = zend_hash_str_find_ptr(&class_type->function_table, "offsetexists", size… in spl_fixedarray_object_new_ex()
327 …methods.fptr_offset_del = zend_hash_str_find_ptr(&class_type->function_table, "offsetunset", sizeo… in spl_fixedarray_object_new_ex()
331 …methods.fptr_count = zend_hash_str_find_ptr(&class_type->function_table, "count", sizeof("count") … in spl_fixedarray_object_new_ex()
347 static zend_object *spl_fixedarray_new(zend_class_entry *class_type) in spl_fixedarray_new() argument
[all …]
H A Dspl_functions.h22 typedef zend_object* (*create_object_func_t)(zend_class_entry *class_type);
H A Dspl_dllist.c313 static zend_object *spl_dllist_object_new_ex(zend_class_entry *class_type, zend_object *orig, int c… in spl_dllist_object_new_ex() argument
316 zend_class_entry *parent = class_type; in spl_dllist_object_new_ex()
321 zend_object_std_init(&intern->std, class_type); in spl_dllist_object_new_ex()
322 object_properties_init(&intern->std, class_type); in spl_dllist_object_new_ex()
370 …intern->fptr_offset_get = zend_hash_str_find_ptr(&class_type->function_table, "offsetget", sizeof(… in spl_dllist_object_new_ex()
374 …intern->fptr_offset_set = zend_hash_str_find_ptr(&class_type->function_table, "offsetset", sizeof(… in spl_dllist_object_new_ex()
378 …intern->fptr_offset_has = zend_hash_str_find_ptr(&class_type->function_table, "offsetexists", size… in spl_dllist_object_new_ex()
382 …intern->fptr_offset_del = zend_hash_str_find_ptr(&class_type->function_table, "offsetunset", sizeo… in spl_dllist_object_new_ex()
386 …intern->fptr_count = zend_hash_str_find_ptr(&class_type->function_table, "count", sizeof("count") … in spl_dllist_object_new_ex()
396 static zend_object *spl_dllist_object_new(zend_class_entry *class_type) /* {{{ */ in spl_dllist_object_new() argument
[all …]
H A Dspl_array.c166 static zend_object *spl_array_object_new_ex(zend_class_entry *class_type, zend_object *orig, int cl… in spl_array_object_new_ex() argument
169 zend_class_entry *parent = class_type; in spl_array_object_new_ex()
174 zend_object_std_init(&intern->std, class_type); in spl_array_object_new_ex()
175 object_properties_init(&intern->std, class_type); in spl_array_object_new_ex()
237 …intern->fptr_count = zend_hash_str_find_ptr(&class_type->function_table, "count", sizeof("count") … in spl_array_object_new_ex()
245 zend_class_iterator_funcs *funcs_ptr = class_type->iterator_funcs_ptr; in spl_array_object_new_ex()
249 …funcs_ptr->zf_valid = zend_hash_str_find_ptr(&class_type->function_table, "valid", sizeof("valid")… in spl_array_object_new_ex()
250 … funcs_ptr->zf_key = zend_hash_str_find_ptr(&class_type->function_table, "key", sizeof("key") - 1); in spl_array_object_new_ex()
252 …funcs_ptr->zf_next = zend_hash_str_find_ptr(&class_type->function_table, "next", sizeof("next") - … in spl_array_object_new_ex()
269 static zend_object *spl_array_object_new(zend_class_entry *class_type) in spl_array_object_new() argument
[all …]
H A Dspl_heap.c412 static zend_object *spl_heap_object_new_ex(zend_class_entry *class_type, zend_object *orig, int clo… in spl_heap_object_new_ex() argument
415 zend_class_entry *parent = class_type; in spl_heap_object_new_ex()
420 zend_object_std_init(&intern->std, class_type); in spl_heap_object_new_ex()
421 object_properties_init(&intern->std, class_type); in spl_heap_object_new_ex()
463 …intern->fptr_cmp = zend_hash_str_find_ptr(&class_type->function_table, "compare", sizeof("compare"… in spl_heap_object_new_ex()
467 …intern->fptr_count = zend_hash_str_find_ptr(&class_type->function_table, "count", sizeof("count") … in spl_heap_object_new_ex()
477 static zend_object *spl_heap_object_new(zend_class_entry *class_type) /* {{{ */ in spl_heap_object_new() argument
479 return spl_heap_object_new_ex(class_type, NULL, 0); in spl_heap_object_new()
H A Dspl_observer.c192 static zend_object *spl_object_storage_new_ex(zend_class_entry *class_type, zend_object *orig) /* {… in spl_object_storage_new_ex() argument
195 zend_class_entry *parent = class_type; in spl_object_storage_new_ex()
201 zend_object_std_init(&intern->std, class_type); in spl_object_storage_new_ex()
202 object_properties_init(&intern->std, class_type); in spl_object_storage_new_ex()
210 if (class_type != spl_ce_SplObjectStorage) { in spl_object_storage_new_ex()
211 …intern->fptr_get_hash = zend_hash_str_find_ptr(&class_type->function_table, "gethash", sizeof("get… in spl_object_storage_new_ex()
325 static zend_object *spl_SplObjectStorage_new(zend_class_entry *class_type) in spl_SplObjectStorage_new() argument
327 return spl_object_storage_new_ex(class_type, NULL); in spl_SplObjectStorage_new()
/PHP-8.1/ext/sysvmsg/
H A Dsysvmsg.c84 static zend_object *sysvmsg_queue_create_object(zend_class_entry *class_type) { in sysvmsg_queue_create_object() argument
85 sysvmsg_queue_t *intern = zend_object_alloc(sizeof(sysvmsg_queue_t), class_type); in sysvmsg_queue_create_object()
87 zend_object_std_init(&intern->std, class_type); in sysvmsg_queue_create_object()
88 object_properties_init(&intern->std, class_type); in sysvmsg_queue_create_object()
/PHP-8.1/ext/sysvshm/
H A Dsysvshm.c45 static zend_object *sysvshm_create_object(zend_class_entry *class_type) { in sysvshm_create_object() argument
46 sysvshm_shm *intern = zend_object_alloc(sizeof(sysvshm_shm), class_type); in sysvshm_create_object()
48 zend_object_std_init(&intern->std, class_type); in sysvshm_create_object()
49 object_properties_init(&intern->std, class_type); in sysvshm_create_object()
/PHP-8.1/ext/fileinfo/
H A Dfileinfo.c84 PHP_FILEINFO_API zend_object *finfo_objects_new(zend_class_entry *class_type) in finfo_objects_new() argument
88 intern = zend_object_alloc(sizeof(finfo_object), class_type); in finfo_objects_new()
90 zend_object_std_init(&intern->zo, class_type); in finfo_objects_new()
91 object_properties_init(&intern->zo, class_type); in finfo_objects_new()
/PHP-8.1/ext/mysqli/
H A Dmysqli.c416 PHP_MYSQLI_EXPORT(zend_object *) mysqli_objects_new(zend_class_entry *class_type) in mysqli_objects_new() argument
422 intern = zend_object_alloc(sizeof(mysqli_object), class_type); in mysqli_objects_new()
424 mysqli_base_class = class_type; in mysqli_objects_new()
431 zend_object_std_init(&intern->zo, class_type); in mysqli_objects_new()
432 object_properties_init(&intern->zo, class_type); in mysqli_objects_new()
435 if (instanceof_function(class_type, mysqli_link_class_entry)) { in mysqli_objects_new()
437 } else if (instanceof_function(class_type, mysqli_driver_class_entry)) { /* driver object */ in mysqli_objects_new()
439 } else if (instanceof_function(class_type, mysqli_stmt_class_entry)) { /* stmt object */ in mysqli_objects_new()
441 } else if (instanceof_function(class_type, mysqli_result_class_entry)) { /* result object */ in mysqli_objects_new()
443 } else if (instanceof_function(class_type, mysqli_warning_class_entry)) { /* warning object */ in mysqli_objects_new()
/PHP-8.1/ext/zlib/
H A Dzlib.c58 static zend_object *inflate_context_create_object(zend_class_entry *class_type) { in inflate_context_create_object() argument
59 php_zlib_context *intern = zend_object_alloc(sizeof(php_zlib_context), class_type); in inflate_context_create_object()
61 zend_object_std_init(&intern->std, class_type); in inflate_context_create_object()
62 object_properties_init(&intern->std, class_type); in inflate_context_create_object()
97 static zend_object *deflate_context_create_object(zend_class_entry *class_type) { in deflate_context_create_object() argument
98 php_zlib_context *intern = zend_object_alloc(sizeof(php_zlib_context), class_type); in deflate_context_create_object()
100 zend_object_std_init(&intern->std, class_type); in deflate_context_create_object()
101 object_properties_init(&intern->std, class_type); in deflate_context_create_object()

Completed in 152 milliseconds

12