/PHP-8.0/Zend/ |
H A D | zend_interfaces.c | 263 ZSTR_VAL(class_type->name), in zend_implement_traversable() 277 ZSTR_VAL(class_type->name)); in zend_implement_aggregate() 282 if (class_type->get_iterator && class_type->get_iterator != zend_user_it_get_new_iterator) { in zend_implement_aggregate() 284 if (!class_type->parent || class_type->parent->get_iterator != class_type->get_iterator) { in zend_implement_aggregate() 317 ZSTR_VAL(class_type->name)); in zend_implement_iterator() 320 if (class_type->get_iterator && class_type->get_iterator != zend_user_it_get_iterator) { in zend_implement_iterator() 321 if (!class_type->parent || class_type->parent->get_iterator != class_type->get_iterator) { in zend_implement_iterator() 329 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() [all …]
|
H A D | zend_exceptions.c | 54 static int zend_implement_throwable(zend_class_entry *interface, zend_class_entry *class_type) in zend_implement_throwable() argument 56 …if (instanceof_function(class_type, zend_ce_exception) || instanceof_function(class_type, zend_ce_… in zend_implement_throwable() 60 ZSTR_VAL(class_type->name), in zend_implement_throwable() 229 static zend_object *zend_default_exception_new_ex(zend_class_entry *class_type, bool skip_top_trace… in zend_default_exception_new_ex() argument 236 zend_object *object = zend_objects_new(class_type); in zend_default_exception_new_ex() 239 object_properties_init(object, class_type); in zend_default_exception_new_ex() 252 if (EXPECTED((class_type != zend_ce_parse_error && class_type != zend_ce_compile_error) in zend_default_exception_new_ex() 271 static zend_object *zend_default_exception_new(zend_class_entry *class_type) /* {{{ */ in zend_default_exception_new() argument 273 return zend_default_exception_new_ex(class_type, 0); in zend_default_exception_new() 277 static zend_object *zend_error_exception_new(zend_class_entry *class_type) /* {{{ */ in zend_error_exception_new() argument [all …]
|
H A D | zend_API.c | 1244 if (class_type->parent) { in zend_update_class_constants() 1259 if (class_type->default_static_members_count && !CE_STATIC_MEMBERS(class_type)) { in zend_update_class_constants() 1260 …if (class_type->type == ZEND_INTERNAL_CLASS || (class_type->ce_flags & (ZEND_ACC_IMMUTABLE|ZEND_AC… in zend_update_class_constants() 1261 zend_class_init_statics(class_type); in zend_update_class_constants() 1276 if (class_type->default_static_members_count) { in zend_update_class_constants() 1297 if (class_type->default_properties_count) { in _object_properties_init() 1322 _object_properties_init(object, class_type); in object_properties_init() 1444 if (class_type->create_object == NULL) { in _object_and_properties_init() 1451 _object_properties_init(obj, class_type); in _object_and_properties_init() 1454 ZVAL_OBJ(arg, class_type->create_object(class_type)); in _object_and_properties_init() [all …]
|
H A D | zend_object_handlers.c | 1350 ZEND_API void zend_class_init_statics(zend_class_entry *class_type) /* {{{ */ in zend_class_init_statics() argument 1355 if (class_type->default_static_members_count && !CE_STATIC_MEMBERS(class_type)) { in zend_class_init_statics() 1356 if (class_type->parent) { in zend_class_init_statics() 1357 zend_class_init_statics(class_type->parent); in zend_class_init_statics() 1360 …ZEND_MAP_PTR_SET(class_type->static_members_table, emalloc(sizeof(zval) * class_type->default_stat… in zend_class_init_statics() 1361 for (i = 0; i < class_type->default_static_members_count; i++) { in zend_class_init_statics() 1362 p = &class_type->default_static_members_table[i]; in zend_class_init_statics() 1364 zval *q = &CE_STATIC_MEMBERS(class_type->parent)[i]; in zend_class_init_statics() 1366 ZVAL_INDIRECT(&CE_STATIC_MEMBERS(class_type)[i], q); in zend_class_init_statics() 1368 ZVAL_COPY_OR_DUP(&CE_STATIC_MEMBERS(class_type)[i], p); in zend_class_init_statics()
|
/PHP-8.0/ext/curl/ |
H A D | share.c | 142 static zend_object *curl_share_create_object(zend_class_entry *class_type) { in curl_share_create_object() argument 143 php_curlsh *intern = zend_object_alloc(sizeof(php_curlsh), class_type); in curl_share_create_object() 145 zend_object_std_init(&intern->std, class_type); in curl_share_create_object() 146 object_properties_init(&intern->std, class_type); in curl_share_create_object()
|
H A D | multi.c | 517 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.0/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.0/ext/xsl/ |
H A D | php_xsl.c | 94 zend_object *xsl_objects_new(zend_class_entry *class_type) in xsl_objects_new() argument 98 intern = zend_object_alloc(sizeof(xsl_object), class_type); in xsl_objects_new() 101 zend_object_std_init(&intern->std, class_type); in xsl_objects_new() 102 object_properties_init(&intern->std, class_type); in xsl_objects_new()
|
/PHP-8.0/ext/dom/ |
H A D | php_dom.h | 100 zend_object *dom_objects_new(zend_class_entry *class_type); 101 zend_object *dom_nnodemap_objects_new(zend_class_entry *class_type); 103 zend_object *dom_xpath_objects_new(zend_class_entry *class_type);
|
H A D | php_dom.c | 477 static dom_object* dom_objects_set_class(zend_class_entry *class_type); 1013 dom_object *intern = zend_object_alloc(sizeof(dom_object), class_type); in dom_objects_set_class() 1015 zend_class_entry *base_class = class_type; in dom_objects_set_class() 1022 zend_object_std_init(&intern->std, class_type); in dom_objects_set_class() 1023 object_properties_init(&intern->std, class_type); in dom_objects_set_class() 1030 zend_object *dom_objects_new(zend_class_entry *class_type) in dom_objects_new() argument 1032 dom_object *intern = dom_objects_set_class(class_type); in dom_objects_new() 1040 zend_object *dom_xpath_objects_new(zend_class_entry *class_type) in dom_xpath_objects_new() argument 1050 zend_object_std_init(&intern->dom.std, class_type); in dom_xpath_objects_new() 1051 object_properties_init(&intern->dom.std, class_type); in dom_xpath_objects_new() [all …]
|
/PHP-8.0/ext/shmop/ |
H A D | shmop.c | 82 static zend_object *shmop_create_object(zend_class_entry *class_type) in shmop_create_object() argument 84 php_shmop *intern = zend_object_alloc(sizeof(php_shmop), class_type); in shmop_create_object() 86 zend_object_std_init(&intern->std, class_type); in shmop_create_object() 87 object_properties_init(&intern->std, class_type); in shmop_create_object()
|
/PHP-8.0/ext/spl/ |
H A D | spl_fixedarray.c | 257 static zend_object *spl_fixedarray_object_new_ex(zend_class_entry *class_type, zend_object *orig, b… in spl_fixedarray_object_new_ex() argument 260 zend_class_entry *parent = class_type; in spl_fixedarray_object_new_ex() 265 zend_object_std_init(&intern->std, class_type); in spl_fixedarray_object_new_ex() 266 object_properties_init(&intern->std, class_type); in spl_fixedarray_object_new_ex() 286 …intern->fptr_offset_get = zend_hash_str_find_ptr(&class_type->function_table, "offsetget", sizeof(… in spl_fixedarray_object_new_ex() 290 …intern->fptr_offset_set = zend_hash_str_find_ptr(&class_type->function_table, "offsetset", sizeof(… in spl_fixedarray_object_new_ex() 294 …intern->fptr_offset_has = zend_hash_str_find_ptr(&class_type->function_table, "offsetexists", size… in spl_fixedarray_object_new_ex() 298 …intern->fptr_offset_del = zend_hash_str_find_ptr(&class_type->function_table, "offsetunset", sizeo… in spl_fixedarray_object_new_ex() 302 …intern->fptr_count = zend_hash_str_find_ptr(&class_type->function_table, "count", sizeof("count") … in spl_fixedarray_object_new_ex() 311 static zend_object *spl_fixedarray_new(zend_class_entry *class_type) in spl_fixedarray_new() argument [all …]
|
H A D | spl_dllist.c | 362 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 365 zend_class_entry *parent = class_type; in spl_dllist_object_new_ex() 370 zend_object_std_init(&intern->std, class_type); in spl_dllist_object_new_ex() 371 object_properties_init(&intern->std, class_type); in spl_dllist_object_new_ex() 419 …intern->fptr_offset_get = zend_hash_str_find_ptr(&class_type->function_table, "offsetget", sizeof(… in spl_dllist_object_new_ex() 423 …intern->fptr_offset_set = zend_hash_str_find_ptr(&class_type->function_table, "offsetset", sizeof(… in spl_dllist_object_new_ex() 427 …intern->fptr_offset_has = zend_hash_str_find_ptr(&class_type->function_table, "offsetexists", size… in spl_dllist_object_new_ex() 431 …intern->fptr_offset_del = zend_hash_str_find_ptr(&class_type->function_table, "offsetunset", sizeo… in spl_dllist_object_new_ex() 435 …intern->fptr_count = zend_hash_str_find_ptr(&class_type->function_table, "count", sizeof("count") … in spl_dllist_object_new_ex() 445 static zend_object *spl_dllist_object_new(zend_class_entry *class_type) /* {{{ */ in spl_dllist_object_new() argument [all …]
|
H A D | spl_array.c | 158 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 161 zend_class_entry *parent = class_type; in spl_array_object_new_ex() 166 zend_object_std_init(&intern->std, class_type); in spl_array_object_new_ex() 167 object_properties_init(&intern->std, class_type); in spl_array_object_new_ex() 227 …intern->fptr_count = zend_hash_str_find_ptr(&class_type->function_table, "count", sizeof("count") … in spl_array_object_new_ex() 235 zend_class_iterator_funcs *funcs_ptr = class_type->iterator_funcs_ptr; in spl_array_object_new_ex() 239 …funcs_ptr->zf_valid = zend_hash_str_find_ptr(&class_type->function_table, "valid", sizeof("valid")… in spl_array_object_new_ex() 240 … funcs_ptr->zf_key = zend_hash_str_find_ptr(&class_type->function_table, "key", sizeof("key") - 1); in spl_array_object_new_ex() 242 …funcs_ptr->zf_next = zend_hash_str_find_ptr(&class_type->function_table, "next", sizeof("next") - … in spl_array_object_new_ex() 259 static zend_object *spl_array_object_new(zend_class_entry *class_type) in spl_array_object_new() argument [all …]
|
H A D | spl_heap.c | 388 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 391 zend_class_entry *parent = class_type; in spl_heap_object_new_ex() 396 zend_object_std_init(&intern->std, class_type); in spl_heap_object_new_ex() 397 object_properties_init(&intern->std, class_type); in spl_heap_object_new_ex() 439 …intern->fptr_cmp = zend_hash_str_find_ptr(&class_type->function_table, "compare", sizeof("compare"… in spl_heap_object_new_ex() 443 …intern->fptr_count = zend_hash_str_find_ptr(&class_type->function_table, "count", sizeof("count") … in spl_heap_object_new_ex() 453 static zend_object *spl_heap_object_new(zend_class_entry *class_type) /* {{{ */ in spl_heap_object_new() argument 455 return spl_heap_object_new_ex(class_type, NULL, 0); in spl_heap_object_new()
|
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 | 189 static zend_object *spl_object_storage_new_ex(zend_class_entry *class_type, zend_object *orig) /* {… in spl_object_storage_new_ex() argument 192 zend_class_entry *parent = class_type; in spl_object_storage_new_ex() 198 zend_object_std_init(&intern->std, class_type); in spl_object_storage_new_ex() 199 object_properties_init(&intern->std, class_type); in spl_object_storage_new_ex() 207 if (class_type != spl_ce_SplObjectStorage) { in spl_object_storage_new_ex() 208 …intern->fptr_get_hash = zend_hash_str_find_ptr(&class_type->function_table, "gethash", sizeof("get… in spl_object_storage_new_ex() 323 static zend_object *spl_SplObjectStorage_new(zend_class_entry *class_type) in spl_SplObjectStorage_new() argument 325 return spl_object_storage_new_ex(class_type, NULL); in spl_SplObjectStorage_new()
|
/PHP-8.0/ext/enchant/ |
H A D | enchant.c | 53 static zend_object *enchant_broker_create_object(zend_class_entry *class_type) { in enchant_broker_create_object() argument 54 enchant_broker *intern = zend_object_alloc(sizeof(enchant_broker), class_type); in enchant_broker_create_object() 56 zend_object_std_init(&intern->std, class_type); in enchant_broker_create_object() 57 object_properties_init(&intern->std, class_type); in enchant_broker_create_object() 72 static zend_object *enchant_dict_create_object(zend_class_entry *class_type) { in enchant_dict_create_object() argument 73 enchant_dict *intern = zend_object_alloc(sizeof(enchant_dict), class_type); in enchant_dict_create_object() 75 zend_object_std_init(&intern->std, class_type); in enchant_dict_create_object() 76 object_properties_init(&intern->std, class_type); in enchant_dict_create_object()
|
/PHP-8.0/ext/sysvsem/ |
H A D | sysvsem.c | 99 static zend_object *sysvsem_create_object(zend_class_entry *class_type) { in sysvsem_create_object() argument 100 sysvsem_sem *intern = zend_object_alloc(sizeof(sysvsem_sem), class_type); in sysvsem_create_object() 102 zend_object_std_init(&intern->std, class_type); in sysvsem_create_object() 103 object_properties_init(&intern->std, class_type); in sysvsem_create_object()
|
/PHP-8.0/ext/sysvshm/ |
H A D | sysvshm.c | 46 static zend_object *sysvshm_create_object(zend_class_entry *class_type) { in sysvshm_create_object() argument 47 sysvshm_shm *intern = zend_object_alloc(sizeof(sysvshm_shm), class_type); in sysvshm_create_object() 49 zend_object_std_init(&intern->std, class_type); in sysvshm_create_object() 50 object_properties_init(&intern->std, class_type); in sysvshm_create_object()
|
/PHP-8.0/ext/sysvmsg/ |
H A D | sysvmsg.c | 85 static zend_object *sysvmsg_queue_create_object(zend_class_entry *class_type) { in sysvmsg_queue_create_object() argument 86 sysvmsg_queue_t *intern = zend_object_alloc(sizeof(sysvmsg_queue_t), class_type); in sysvmsg_queue_create_object() 88 zend_object_std_init(&intern->std, class_type); in sysvmsg_queue_create_object() 89 object_properties_init(&intern->std, class_type); in sysvmsg_queue_create_object()
|
/PHP-8.0/ext/fileinfo/ |
H A D | fileinfo.c | 95 PHP_FILEINFO_API zend_object *finfo_objects_new(zend_class_entry *class_type) in finfo_objects_new() argument 99 intern = zend_object_alloc(sizeof(finfo_object), class_type); in finfo_objects_new() 101 zend_object_std_init(&intern->zo, class_type); in finfo_objects_new() 102 object_properties_init(&intern->zo, class_type); in finfo_objects_new()
|
/PHP-8.0/ext/mysqli/ |
H A D | mysqli.c | 421 PHP_MYSQLI_EXPORT(zend_object *) mysqli_objects_new(zend_class_entry *class_type) in mysqli_objects_new() argument 427 intern = zend_object_alloc(sizeof(mysqli_object), class_type); in mysqli_objects_new() 429 mysqli_base_class = class_type; in mysqli_objects_new() 436 zend_object_std_init(&intern->zo, class_type); in mysqli_objects_new() 437 object_properties_init(&intern->zo, class_type); in mysqli_objects_new() 440 if (instanceof_function(class_type, mysqli_link_class_entry)) { in mysqli_objects_new() 442 } else if (instanceof_function(class_type, mysqli_driver_class_entry)) { /* driver object */ in mysqli_objects_new() 444 } else if (instanceof_function(class_type, mysqli_stmt_class_entry)) { /* stmt object */ in mysqli_objects_new() 446 } else if (instanceof_function(class_type, mysqli_result_class_entry)) { /* result object */ in mysqli_objects_new() 448 } else if (instanceof_function(class_type, mysqli_warning_class_entry)) { /* warning object */ in mysqli_objects_new()
|
/PHP-8.0/ext/zlib/ |
H A D | zlib.c | 59 static zend_object *inflate_context_create_object(zend_class_entry *class_type) { in inflate_context_create_object() argument 60 php_zlib_context *intern = zend_object_alloc(sizeof(php_zlib_context), class_type); in inflate_context_create_object() 62 zend_object_std_init(&intern->std, class_type); in inflate_context_create_object() 63 object_properties_init(&intern->std, class_type); in inflate_context_create_object() 98 static zend_object *deflate_context_create_object(zend_class_entry *class_type) { in deflate_context_create_object() argument 99 php_zlib_context *intern = zend_object_alloc(sizeof(php_zlib_context), class_type); in deflate_context_create_object() 101 zend_object_std_init(&intern->std, class_type); in deflate_context_create_object() 102 object_properties_init(&intern->std, class_type); in deflate_context_create_object()
|
/PHP-8.0/ext/sqlite3/ |
H A D | sqlite3.c | 2268 static zend_object *php_sqlite3_object_new(zend_class_entry *class_type) /* {{{ */ in php_sqlite3_object_new() argument 2273 intern = zend_object_alloc(sizeof(php_sqlite3_db_object), class_type); in php_sqlite3_object_new() 2278 zend_object_std_init(&intern->zo, class_type); in php_sqlite3_object_new() 2279 object_properties_init(&intern->zo, class_type); in php_sqlite3_object_new() 2287 static zend_object *php_sqlite3_stmt_object_new(zend_class_entry *class_type) /* {{{ */ in php_sqlite3_stmt_object_new() argument 2292 intern = zend_object_alloc(sizeof(php_sqlite3_stmt), class_type); in php_sqlite3_stmt_object_new() 2294 zend_object_std_init(&intern->zo, class_type); in php_sqlite3_stmt_object_new() 2295 object_properties_init(&intern->zo, class_type); in php_sqlite3_stmt_object_new() 2308 intern = zend_object_alloc(sizeof(php_sqlite3_result), class_type); in php_sqlite3_result_object_new() 2310 zend_object_std_init(&intern->zo, class_type); in php_sqlite3_result_object_new() [all …]
|