/PHP-8.3/Zend/ |
H A D | zend_interfaces.c | 279 ZSTR_VAL(class_type->name), in zend_implement_traversable() 293 ZSTR_VAL(class_type->name)); in zend_implement_aggregate() 307 if (class_type->get_iterator && class_type->get_iterator != zend_user_it_get_new_iterator) { in zend_implement_aggregate() 309 if (!class_type->parent || class_type->parent->get_iterator != class_type->get_iterator) { in zend_implement_aggregate() 333 ZSTR_VAL(class_type->name)); in zend_implement_iterator() 354 if (class_type->get_iterator && class_type->get_iterator != zend_user_it_get_iterator) { in zend_implement_iterator() 355 if (!class_type->parent || class_type->parent->get_iterator != class_type->get_iterator) { in zend_implement_iterator() 463 if (class_type->parent in zend_implement_serializable() 464 && (class_type->parent->serialize || class_type->parent->unserialize) in zend_implement_serializable() 468 if (!class_type->serialize) { in zend_implement_serializable() [all …]
|
H A D | zend_API.c | 1387 if (c->ce == class_type) { in zend_separate_class_constants_table() 1473 ce_flags = class_type->ce_flags; in zend_update_class_constants() 1492 if (class_type->parent) { in zend_update_class_constants() 1514 if (c->ce != class_type) { in zend_update_class_constants() 1532 zend_class_init_statics(class_type); in zend_update_class_constants() 1583 …if (class_type->type == ZEND_USER_CLASS && class_type->ce_flags & ZEND_ACC_ENUM && class_type->enu… in zend_update_class_constants() 1596 class_type->ce_flags = ce_flags; in zend_update_class_constants() 1605 if (class_type->default_properties_count) { in _object_properties_init() 1771 if (class_type->create_object == NULL) { in _object_and_properties_init() 1781 ZVAL_OBJ(arg, class_type->create_object(class_type)); in _object_and_properties_init() [all …]
|
H A D | zend_enum.c | 127 static int zend_implement_unit_enum(zend_class_entry *interface, zend_class_entry *class_type) in zend_implement_unit_enum() argument 129 if (class_type->ce_flags & ZEND_ACC_ENUM) { in zend_implement_unit_enum() 134 ZSTR_VAL(class_type->name), in zend_implement_unit_enum() 140 static int zend_implement_backed_enum(zend_class_entry *interface, zend_class_entry *class_type) in zend_implement_backed_enum() argument 142 if (!(class_type->ce_flags & ZEND_ACC_ENUM)) { in zend_implement_backed_enum() 144 ZSTR_VAL(class_type->name), in zend_implement_backed_enum() 149 if (class_type->enum_backing_type == IS_UNDEF) { in zend_implement_backed_enum() 151 ZSTR_VAL(class_type->name), in zend_implement_backed_enum()
|
H A D | zend_exceptions.c | 57 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() 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() 254 static zend_object *zend_default_exception_new(zend_class_entry *class_type) /* {{{ */ in zend_default_exception_new() argument 261 zend_object *object = zend_objects_new(class_type); in zend_default_exception_new() 262 object_properties_init(object, class_type); in zend_default_exception_new() 275 if (EXPECTED((class_type != zend_ce_parse_error && class_type != zend_ce_compile_error) in zend_default_exception_new()
|
/PHP-8.3/ext/curl/ |
H A D | share.c | 139 static zend_object *curl_share_create_object(zend_class_entry *class_type) { in curl_share_create_object() argument 140 php_curlsh *intern = zend_object_alloc(sizeof(php_curlsh), class_type); in curl_share_create_object() 142 zend_object_std_init(&intern->std, class_type); in curl_share_create_object() 143 object_properties_init(&intern->std, class_type); in curl_share_create_object()
|
H A D | multi.c | 528 static zend_object *curl_multi_create_object(zend_class_entry *class_type) { in curl_multi_create_object() argument 529 php_curlm *intern = zend_object_alloc(sizeof(php_curlm), class_type); in curl_multi_create_object() 531 zend_object_std_init(&intern->std, class_type); in curl_multi_create_object() 532 object_properties_init(&intern->std, class_type); in curl_multi_create_object()
|
/PHP-8.3/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.3/ext/xsl/ |
H A D | php_xsl.c | 99 zend_object *xsl_objects_new(zend_class_entry *class_type) in xsl_objects_new() argument 103 intern = zend_object_alloc(sizeof(xsl_object), class_type); in xsl_objects_new() 106 zend_object_std_init(&intern->std, class_type); in xsl_objects_new() 107 object_properties_init(&intern->std, class_type); in xsl_objects_new()
|
/PHP-8.3/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.3/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.3/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() 77 static zend_object *enchant_dict_create_object(zend_class_entry *class_type) { in enchant_dict_create_object() argument 78 enchant_dict *intern = zend_object_alloc(sizeof(enchant_dict), class_type); in enchant_dict_create_object() 80 zend_object_std_init(&intern->std, class_type); in enchant_dict_create_object() 81 object_properties_init(&intern->std, class_type); in enchant_dict_create_object()
|
/PHP-8.3/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() 276 if (class_type != spl_ce_SplObjectStorage) { in spl_object_storage_new_ex() 282 SPL_OBJECT_STORAGE_CLASS_HAS_OVERRIDE(class_type, zf_offsetget) || in spl_object_storage_new_ex() 283 SPL_OBJECT_STORAGE_CLASS_HAS_OVERRIDE(class_type, zf_offsetexists)) { in spl_object_storage_new_ex() 288 SPL_OBJECT_STORAGE_CLASS_HAS_OVERRIDE(class_type, zf_offsetset)) { in spl_object_storage_new_ex() 293 SPL_OBJECT_STORAGE_CLASS_HAS_OVERRIDE(class_type, zf_offsetunset)) { in spl_object_storage_new_ex() [all …]
|
H A D | spl_dllist.c | 309 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 312 zend_class_entry *parent = class_type; in spl_dllist_object_new_ex() 317 zend_object_std_init(&intern->std, class_type); in spl_dllist_object_new_ex() 318 object_properties_init(&intern->std, class_type); in spl_dllist_object_new_ex() 363 …intern->fptr_offset_get = zend_hash_str_find_ptr(&class_type->function_table, "offsetget", sizeof(… in spl_dllist_object_new_ex() 367 …intern->fptr_offset_set = zend_hash_str_find_ptr(&class_type->function_table, "offsetset", sizeof(… in spl_dllist_object_new_ex() 371 …intern->fptr_offset_has = zend_hash_str_find_ptr(&class_type->function_table, "offsetexists", size… in spl_dllist_object_new_ex() 375 …intern->fptr_offset_del = zend_hash_str_find_ptr(&class_type->function_table, "offsetunset", sizeo… in spl_dllist_object_new_ex() 380 intern->fptr_count = zend_hash_find_ptr(&class_type->function_table, ZSTR_KNOWN(ZEND_STR_COUNT)); in spl_dllist_object_new_ex() 390 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 | 406 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 409 zend_class_entry *parent = class_type; in spl_heap_object_new_ex() 414 zend_object_std_init(&intern->std, class_type); in spl_heap_object_new_ex() 415 object_properties_init(&intern->std, class_type); in spl_heap_object_new_ex() 455 …intern->fptr_cmp = zend_hash_str_find_ptr(&class_type->function_table, "compare", sizeof("compare"… in spl_heap_object_new_ex() 460 intern->fptr_count = zend_hash_find_ptr(&class_type->function_table, ZSTR_KNOWN(ZEND_STR_COUNT)); in spl_heap_object_new_ex() 470 static zend_object *spl_heap_object_new(zend_class_entry *class_type) /* {{{ */ in spl_heap_object_new() argument 472 return spl_heap_object_new_ex(class_type, NULL, 0); in spl_heap_object_new()
|
H A D | spl_fixedarray.c | 278 static zend_object *spl_fixedarray_object_new_ex(zend_class_entry *class_type, zend_object *orig, b… in spl_fixedarray_object_new_ex() argument 281 zend_class_entry *parent = class_type; in spl_fixedarray_object_new_ex() 286 zend_object_std_init(&intern->std, class_type); in spl_fixedarray_object_new_ex() 287 object_properties_init(&intern->std, class_type); in spl_fixedarray_object_new_ex() 307 …zend_function *fptr_count = zend_hash_find_ptr(&class_type->function_table, ZSTR_KNOWN(ZEND_STR_CO… in spl_fixedarray_object_new_ex() 317 static zend_object *spl_fixedarray_new(zend_class_entry *class_type) in spl_fixedarray_new() argument 319 return spl_fixedarray_object_new_ex(class_type, NULL, 0); in spl_fixedarray_new()
|
/PHP-8.3/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.3/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.3/ext/dom/ |
H A D | php_dom.c | 1048 zend_class_entry *base_class = class_type; in dom_objects_set_class_ex() 1055 zend_object_std_init(&intern->std, class_type); in dom_objects_set_class_ex() 1056 object_properties_init(&intern->std, class_type); in dom_objects_set_class_ex() 1062 dom_objects_set_class_ex(class_type, intern); in dom_objects_set_class() 1067 zend_object *dom_objects_new(zend_class_entry *class_type) in dom_objects_new() argument 1069 dom_object *intern = dom_objects_set_class(class_type); in dom_objects_new() 1078 dom_objects_set_class_ex(class_type, &intern->dom); in dom_objects_namespace_node_new() 1096 zend_object *dom_xpath_objects_new(zend_class_entry *class_type) in dom_xpath_objects_new() argument 1105 zend_object_std_init(&intern->dom.std, class_type); in dom_xpath_objects_new() 1106 object_properties_init(&intern->dom.std, class_type); in dom_xpath_objects_new() [all …]
|
H A D | php_dom.h | 120 zend_object *dom_objects_new(zend_class_entry *class_type); 121 zend_object *dom_nnodemap_objects_new(zend_class_entry *class_type); 123 zend_object *dom_xpath_objects_new(zend_class_entry *class_type);
|
/PHP-8.3/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.3/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.3/ext/json/ |
H A D | json.c | 40 …int php_json_implement_json_serializable(zend_class_entry *interface, zend_class_entry *class_type) in ZEND_DECLARE_MODULE_GLOBALS() 42 class_type->ce_flags |= ZEND_ACC_USE_GUARDS; in ZEND_DECLARE_MODULE_GLOBALS()
|
/PHP-8.3/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() 96 static zend_object *deflate_context_create_object(zend_class_entry *class_type) { in deflate_context_create_object() argument 97 php_zlib_context *intern = zend_object_alloc(sizeof(php_zlib_context), class_type); in deflate_context_create_object() 99 zend_object_std_init(&intern->std, class_type); in deflate_context_create_object() 100 object_properties_init(&intern->std, class_type); in deflate_context_create_object()
|
/PHP-8.3/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()
|