/PHP-8.2/Zend/ |
H A D | zend_interfaces.c | 278 ZSTR_VAL(class_type->name), in zend_implement_traversable() 292 ZSTR_VAL(class_type->name)); in zend_implement_aggregate() 306 if (class_type->get_iterator && class_type->get_iterator != zend_user_it_get_new_iterator) { in zend_implement_aggregate() 308 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() 353 if (class_type->get_iterator && class_type->get_iterator != zend_user_it_get_iterator) { in zend_implement_iterator() 354 if (!class_type->parent || class_type->parent->get_iterator != class_type->get_iterator) { in zend_implement_iterator() 462 if (class_type->parent in zend_implement_serializable() 463 && (class_type->parent->serialize || class_type->parent->unserialize) in zend_implement_serializable() 467 if (!class_type->serialize) { in zend_implement_serializable() [all …]
|
H A D | zend_API.c | 1339 if (c->ce == class_type) { in zend_separate_class_constants_table() 1397 ce_flags = class_type->ce_flags; in zend_update_class_constants() 1416 if (class_type->parent) { in zend_update_class_constants() 1438 if (c->ce != class_type) { in zend_update_class_constants() 1456 zend_class_init_statics(class_type); in zend_update_class_constants() 1507 …if (class_type->type == ZEND_USER_CLASS && class_type->ce_flags & ZEND_ACC_ENUM && class_type->enu… in zend_update_class_constants() 1520 class_type->ce_flags = ce_flags; in zend_update_class_constants() 1529 if (class_type->default_properties_count) { in _object_properties_init() 1695 if (class_type->create_object == NULL) { in _object_and_properties_init() 1705 ZVAL_OBJ(arg, class_type->create_object(class_type)); in _object_and_properties_init() [all …]
|
H A D | zend_exceptions.c | 61 zend_class_entry *root = class_type; in zend_implement_throwable() 70 bool can_extend = (class_type->ce_flags & ZEND_ACC_ENUM) == 0; in zend_implement_throwable() 76 zend_get_object_type_uc(class_type), in zend_implement_throwable() 77 ZSTR_VAL(class_type->name), in zend_implement_throwable() 251 zend_object *object = zend_objects_new(class_type); in zend_default_exception_new_ex() 254 object_properties_init(object, class_type); in zend_default_exception_new_ex() 267 if (EXPECTED((class_type != zend_ce_parse_error && class_type != zend_ce_compile_error) in zend_default_exception_new_ex() 286 static zend_object *zend_default_exception_new(zend_class_entry *class_type) /* {{{ */ in zend_default_exception_new() argument 288 return zend_default_exception_new_ex(class_type, 0); in zend_default_exception_new() 292 static zend_object *zend_error_exception_new(zend_class_entry *class_type) /* {{{ */ in zend_error_exception_new() argument [all …]
|
H A D | zend_enum.c | 122 static int zend_implement_unit_enum(zend_class_entry *interface, zend_class_entry *class_type) in zend_implement_unit_enum() argument 124 if (class_type->ce_flags & ZEND_ACC_ENUM) { in zend_implement_unit_enum() 129 ZSTR_VAL(class_type->name), in zend_implement_unit_enum() 135 static int zend_implement_backed_enum(zend_class_entry *interface, zend_class_entry *class_type) in zend_implement_backed_enum() argument 137 if (!(class_type->ce_flags & ZEND_ACC_ENUM)) { in zend_implement_backed_enum() 139 ZSTR_VAL(class_type->name), in zend_implement_backed_enum() 144 if (class_type->enum_backing_type == IS_UNDEF) { in zend_implement_backed_enum() 146 ZSTR_VAL(class_type->name), in zend_implement_backed_enum()
|
/PHP-8.2/ext/curl/ |
H A D | share.c | 141 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 D | multi.c | 533 static zend_object *curl_multi_create_object(zend_class_entry *class_type) { in curl_multi_create_object() argument 534 php_curlm *intern = zend_object_alloc(sizeof(php_curlm), class_type); in curl_multi_create_object() 536 zend_object_std_init(&intern->std, class_type); in curl_multi_create_object() 537 object_properties_init(&intern->std, class_type); in curl_multi_create_object()
|
/PHP-8.2/ext/standard/ |
H A D | incomplete_class.c | 99 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.2/ext/xsl/ |
H A D | php_xsl.c | 95 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.2/ext/shmop/ |
H A D | shmop.c | 81 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.2/ext/dom/ |
H A D | php_dom.c | 1017 zend_class_entry *base_class = class_type; in dom_objects_set_class_ex() 1024 zend_object_std_init(&intern->std, class_type); in dom_objects_set_class_ex() 1025 object_properties_init(&intern->std, class_type); in dom_objects_set_class_ex() 1031 dom_objects_set_class_ex(class_type, intern); in dom_objects_set_class() 1036 zend_object *dom_objects_new(zend_class_entry *class_type) in dom_objects_new() argument 1038 dom_object *intern = dom_objects_set_class(class_type); in dom_objects_new() 1047 dom_objects_set_class_ex(class_type, &intern->dom); in dom_objects_namespace_node_new() 1065 zend_object *dom_xpath_objects_new(zend_class_entry *class_type) in dom_xpath_objects_new() argument 1075 zend_object_std_init(&intern->dom.std, class_type); in dom_xpath_objects_new() 1076 object_properties_init(&intern->dom.std, class_type); in dom_xpath_objects_new() [all …]
|
H A D | php_dom.h | 112 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.2/ext/sysvsem/ |
H A D | sysvsem.c | 98 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.2/ext/enchant/ |
H A D | enchant.c | 59 static zend_object *enchant_broker_create_object(zend_class_entry *class_type) { in enchant_broker_create_object() argument 60 enchant_broker *intern = zend_object_alloc(sizeof(enchant_broker), class_type); in enchant_broker_create_object() 62 zend_object_std_init(&intern->std, class_type); in enchant_broker_create_object() 63 object_properties_init(&intern->std, class_type); in enchant_broker_create_object() 78 static zend_object *enchant_dict_create_object(zend_class_entry *class_type) { in enchant_dict_create_object() argument 79 enchant_dict *intern = zend_object_alloc(sizeof(enchant_dict), class_type); in enchant_dict_create_object() 81 zend_object_std_init(&intern->std, class_type); in enchant_dict_create_object() 82 object_properties_init(&intern->std, class_type); in enchant_dict_create_object()
|
/PHP-8.2/ext/spl/ |
H A D | spl_functions.h | 22 typedef zend_object* (*create_object_func_t)(zend_class_entry *class_type);
|
H A D | spl_observer.c | 255 #define SPL_OBJECT_STORAGE_CLASS_HAS_OVERRIDE(class_type, zstr_method) \ argument 256 (class_type->arrayaccess_funcs_ptr && class_type->arrayaccess_funcs_ptr->zstr_method) 261 zend_class_entry *parent = class_type; in spl_object_storage_new_ex() 267 zend_object_std_init(&intern->std, class_type); in spl_object_storage_new_ex() 268 object_properties_init(&intern->std, class_type); in spl_object_storage_new_ex() 278 if (class_type != spl_ce_SplObjectStorage) { in spl_object_storage_new_ex() 284 SPL_OBJECT_STORAGE_CLASS_HAS_OVERRIDE(class_type, zf_offsetget) || in spl_object_storage_new_ex() 285 SPL_OBJECT_STORAGE_CLASS_HAS_OVERRIDE(class_type, zf_offsetexists)) { in spl_object_storage_new_ex() 290 SPL_OBJECT_STORAGE_CLASS_HAS_OVERRIDE(class_type, zf_offsetset)) { in spl_object_storage_new_ex() 295 SPL_OBJECT_STORAGE_CLASS_HAS_OVERRIDE(class_type, zf_offsetunset)) { in spl_object_storage_new_ex() [all …]
|
H A D | spl_dllist.c | 308 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 311 zend_class_entry *parent = class_type; in spl_dllist_object_new_ex() 316 zend_object_std_init(&intern->std, class_type); in spl_dllist_object_new_ex() 317 object_properties_init(&intern->std, class_type); in spl_dllist_object_new_ex() 365 …intern->fptr_offset_get = zend_hash_str_find_ptr(&class_type->function_table, "offsetget", sizeof(… in spl_dllist_object_new_ex() 369 …intern->fptr_offset_set = zend_hash_str_find_ptr(&class_type->function_table, "offsetset", sizeof(… in spl_dllist_object_new_ex() 373 …intern->fptr_offset_has = zend_hash_str_find_ptr(&class_type->function_table, "offsetexists", size… in spl_dllist_object_new_ex() 377 …intern->fptr_offset_del = zend_hash_str_find_ptr(&class_type->function_table, "offsetunset", sizeo… in spl_dllist_object_new_ex() 381 …intern->fptr_count = zend_hash_str_find_ptr(&class_type->function_table, "count", sizeof("count") … in spl_dllist_object_new_ex() 391 static zend_object *spl_dllist_object_new(zend_class_entry *class_type) /* {{{ */ in spl_dllist_object_new() argument [all …]
|
H A D | spl_heap.c | 401 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 404 zend_class_entry *parent = class_type; in spl_heap_object_new_ex() 409 zend_object_std_init(&intern->std, class_type); in spl_heap_object_new_ex() 410 object_properties_init(&intern->std, class_type); in spl_heap_object_new_ex() 452 …intern->fptr_cmp = zend_hash_str_find_ptr(&class_type->function_table, "compare", sizeof("compare"… in spl_heap_object_new_ex() 456 …intern->fptr_count = zend_hash_str_find_ptr(&class_type->function_table, "count", sizeof("count") … in spl_heap_object_new_ex() 466 static zend_object *spl_heap_object_new(zend_class_entry *class_type) /* {{{ */ in spl_heap_object_new() argument 468 return spl_heap_object_new_ex(class_type, NULL, 0); in spl_heap_object_new()
|
H A D | spl_fixedarray.c | 288 static zend_object *spl_fixedarray_object_new_ex(zend_class_entry *class_type, zend_object *orig, b… in spl_fixedarray_object_new_ex() argument 291 zend_class_entry *parent = class_type; in spl_fixedarray_object_new_ex() 296 zend_object_std_init(&intern->std, class_type); in spl_fixedarray_object_new_ex() 297 object_properties_init(&intern->std, class_type); in spl_fixedarray_object_new_ex() 317 …zend_function *fptr_count = zend_hash_str_find_ptr(&class_type->function_table, "count", sizeof("c… in spl_fixedarray_object_new_ex() 327 static zend_object *spl_fixedarray_new(zend_class_entry *class_type) in spl_fixedarray_new() argument 329 return spl_fixedarray_object_new_ex(class_type, NULL, 0); in spl_fixedarray_new()
|
H A D | spl_array.c | 147 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 150 zend_class_entry *parent = class_type; in spl_array_object_new_ex() 155 zend_object_std_init(&intern->std, class_type); in spl_array_object_new_ex() 156 object_properties_init(&intern->std, class_type); in spl_array_object_new_ex() 202 …intern->fptr_offset_get = zend_hash_str_find_ptr(&class_type->function_table, "offsetget", sizeof(… in spl_array_object_new_ex() 206 …intern->fptr_offset_set = zend_hash_str_find_ptr(&class_type->function_table, "offsetset", sizeof(… in spl_array_object_new_ex() 210 …intern->fptr_offset_has = zend_hash_str_find_ptr(&class_type->function_table, "offsetexists", size… in spl_array_object_new_ex() 214 …intern->fptr_offset_del = zend_hash_str_find_ptr(&class_type->function_table, "offsetunset", size… in spl_array_object_new_ex() 218 …intern->fptr_count = zend_hash_str_find_ptr(&class_type->function_table, "count", sizeof("count") … in spl_array_object_new_ex() 230 static zend_object *spl_array_object_new(zend_class_entry *class_type) in spl_array_object_new() argument [all …]
|
/PHP-8.2/ext/mysqli/ |
H A D | mysqli.c | 367 PHP_MYSQLI_EXPORT(zend_object *) mysqli_objects_new(zend_class_entry *class_type) in mysqli_objects_new() argument 373 intern = zend_object_alloc(sizeof(mysqli_object), class_type); in mysqli_objects_new() 375 mysqli_base_class = class_type; in mysqli_objects_new() 382 zend_object_std_init(&intern->zo, class_type); in mysqli_objects_new() 383 object_properties_init(&intern->zo, class_type); in mysqli_objects_new() 386 if (instanceof_function(class_type, mysqli_link_class_entry)) { in mysqli_objects_new() 388 } else if (instanceof_function(class_type, mysqli_driver_class_entry)) { /* driver object */ in mysqli_objects_new() 390 } else if (instanceof_function(class_type, mysqli_stmt_class_entry)) { /* stmt object */ in mysqli_objects_new() 392 } else if (instanceof_function(class_type, mysqli_result_class_entry)) { /* result object */ in mysqli_objects_new() 394 } else if (instanceof_function(class_type, mysqli_warning_class_entry)) { /* warning object */ in mysqli_objects_new()
|
/PHP-8.2/ext/fileinfo/ |
H A D | fileinfo.c | 84 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.2/ext/sysvmsg/ |
H A D | sysvmsg.c | 77 static zend_object *sysvmsg_queue_create_object(zend_class_entry *class_type) { in sysvmsg_queue_create_object() argument 78 sysvmsg_queue_t *intern = zend_object_alloc(sizeof(sysvmsg_queue_t), class_type); in sysvmsg_queue_create_object() 80 zend_object_std_init(&intern->std, class_type); in sysvmsg_queue_create_object() 81 object_properties_init(&intern->std, class_type); in sysvmsg_queue_create_object()
|
/PHP-8.2/ext/sysvshm/ |
H A D | sysvshm.c | 45 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.2/ext/zlib/ |
H A D | zlib.c | 58 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()
|
/PHP-8.2/ext/tidy/ |
H A D | tidy.c | 408 static zend_object *tidy_object_new(zend_class_entry *class_type, zend_object_handlers *handlers, t… in tidy_object_new() argument 412 intern = zend_object_alloc(sizeof(PHPTidyObj), class_type); in tidy_object_new() 413 zend_object_std_init(&intern->std, class_type); in tidy_object_new() 414 object_properties_init(&intern->std, class_type); in tidy_object_new() 449 static zend_object *tidy_object_new_node(zend_class_entry *class_type) in tidy_object_new_node() argument 451 return tidy_object_new(class_type, &tidy_object_handlers_node, is_node); in tidy_object_new_node() 454 static zend_object *tidy_object_new_doc(zend_class_entry *class_type) in tidy_object_new_doc() argument 456 return tidy_object_new(class_type, &tidy_object_handlers_doc, is_doc); in tidy_object_new_doc()
|