Home
last modified time | relevance | path

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

12

/PHP-7.4/Zend/
H A Dzend_interfaces.c291 if (class_type->get_iterator || (class_type->parent && class_type->parent->get_iterator)) { in zend_implement_traversable()
303 ZSTR_VAL(class_type->name), in zend_implement_traversable()
318 if (class_type->get_iterator) { in zend_implement_aggregate()
344 if (class_type->parent in zend_implement_aggregate()
346 class_type->get_iterator = class_type->parent->get_iterator; in zend_implement_aggregate()
376 if (class_type->get_iterator && class_type->get_iterator != zend_user_it_get_iterator) { in zend_implement_iterator()
391 if (class_type->parent in zend_implement_iterator()
393 class_type->get_iterator = class_type->parent->get_iterator; in zend_implement_iterator()
512 if (class_type->parent in zend_implement_serializable()
513 && (class_type->parent->serialize || class_type->parent->unserialize) in zend_implement_serializable()
[all …]
H A Dzend_exceptions.c47 static int zend_implement_throwable(zend_class_entry *interface, zend_class_entry *class_type) in zend_implement_throwable() argument
49 …if (instanceof_function(class_type, zend_ce_exception) || instanceof_function(class_type, zend_ce_… in zend_implement_throwable()
53 ZSTR_VAL(class_type->name), in zend_implement_throwable()
209 static zend_object *zend_default_exception_new_ex(zend_class_entry *class_type, int skip_top_traces… in zend_default_exception_new_ex() argument
217 Z_OBJ(obj) = object = zend_objects_new(class_type); in zend_default_exception_new_ex()
220 object_properties_init(object, class_type); in zend_default_exception_new_ex()
233 if (EXPECTED((class_type != zend_ce_parse_error && class_type != zend_ce_compile_error) in zend_default_exception_new_ex()
252 static zend_object *zend_default_exception_new(zend_class_entry *class_type) /* {{{ */ in zend_default_exception_new() argument
254 return zend_default_exception_new_ex(class_type, 0); in zend_default_exception_new()
258 static zend_object *zend_error_exception_new(zend_class_entry *class_type) /* {{{ */ in zend_error_exception_new() argument
[all …]
H A Dzend_API.c1196 if (class_type->parent) { in zend_update_class_constants()
1211 if (class_type->default_static_members_count && !CE_STATIC_MEMBERS(class_type)) { in zend_update_class_constants()
1212 …if (class_type->type == ZEND_INTERNAL_CLASS || (class_type->ce_flags & (ZEND_ACC_IMMUTABLE|ZEND_AC… in zend_update_class_constants()
1213 zend_class_init_statics(class_type); in zend_update_class_constants()
1217 ce = class_type; in zend_update_class_constants()
1260 if (class_type->default_properties_count) { in _object_properties_init()
1285 _object_properties_init(object, class_type); in object_properties_init()
1407 if (class_type->create_object == NULL) { in _object_and_properties_init()
1414 _object_properties_init(obj, class_type); in _object_and_properties_init()
1417 ZVAL_OBJ(arg, class_type->create_object(class_type)); in _object_and_properties_init()
[all …]
H A Dzend_object_handlers.c1475 ZEND_API void zend_class_init_statics(zend_class_entry *class_type) /* {{{ */ in zend_class_init_statics() argument
1480 if (class_type->default_static_members_count && !CE_STATIC_MEMBERS(class_type)) { in zend_class_init_statics()
1481 if (class_type->parent) { in zend_class_init_statics()
1482 zend_class_init_statics(class_type->parent); in zend_class_init_statics()
1485 …ZEND_MAP_PTR_SET(class_type->static_members_table, emalloc(sizeof(zval) * class_type->default_stat… in zend_class_init_statics()
1486 for (i = 0; i < class_type->default_static_members_count; i++) { in zend_class_init_statics()
1487 p = &class_type->default_static_members_table[i]; in zend_class_init_statics()
1489 zval *q = &CE_STATIC_MEMBERS(class_type->parent)[i]; in zend_class_init_statics()
1491 ZVAL_INDIRECT(&CE_STATIC_MEMBERS(class_type)[i], q); in zend_class_init_statics()
1493 ZVAL_COPY_OR_DUP(&CE_STATIC_MEMBERS(class_type)[i], p); in zend_class_init_statics()
H A Dzend.h151 zend_object* (*create_object)(zend_class_entry *class_type);
152 …int (*interface_gets_implemented)(zend_class_entry *iface, zend_class_entry *class_type); /* a cla…
/PHP-7.4/ext/standard/
H A Dincomplete_class.c102 static zend_object *php_create_incomplete_object(zend_class_entry *class_type) in php_create_incomplete_object() argument
106 object = zend_objects_new( class_type); in php_create_incomplete_object()
109 object_properties_init(object, class_type); in php_create_incomplete_object()
/PHP-7.4/ext/spl/
H A Dspl_fixedarray.c213 zend_class_entry *parent = class_type; in spl_fixedarray_object_new_ex()
219 zend_object_std_init(&intern->std, class_type); in spl_fixedarray_object_new_ex()
220 object_properties_init(&intern->std, class_type); in spl_fixedarray_object_new_ex()
246 funcs_ptr = class_type->iterator_funcs_ptr; in spl_fixedarray_object_new_ex()
248 …funcs_ptr->zf_rewind = zend_hash_str_find_ptr(&class_type->function_table, "rewind", sizeof("rewin… in spl_fixedarray_object_new_ex()
249 …funcs_ptr->zf_valid = zend_hash_str_find_ptr(&class_type->function_table, "valid", sizeof("valid")… in spl_fixedarray_object_new_ex()
250 funcs_ptr->zf_key = zend_hash_str_find_ptr(&class_type->function_table, "key", sizeof("key") - 1); in spl_fixedarray_object_new_ex()
252 …funcs_ptr->zf_next = zend_hash_str_find_ptr(&class_type->function_table, "next", sizeof("next") - … in spl_fixedarray_object_new_ex()
287 …intern->fptr_count = zend_hash_str_find_ptr(&class_type->function_table, "count", sizeof("count") … in spl_fixedarray_object_new_ex()
297 static zend_object *spl_fixedarray_new(zend_class_entry *class_type) /* {{{ */ in spl_fixedarray_new() argument
[all …]
H A Dspl_dllist.c370 static zend_object *spl_dllist_object_new_ex(zend_class_entry *class_type, zval *orig, int clone_or… in spl_dllist_object_new_ex() argument
373 zend_class_entry *parent = class_type; in spl_dllist_object_new_ex()
378 zend_object_std_init(&intern->std, class_type); in spl_dllist_object_new_ex()
379 object_properties_init(&intern->std, class_type); in spl_dllist_object_new_ex()
428 …intern->fptr_offset_get = zend_hash_str_find_ptr(&class_type->function_table, "offsetget", sizeof(… in spl_dllist_object_new_ex()
432 …intern->fptr_offset_set = zend_hash_str_find_ptr(&class_type->function_table, "offsetset", sizeof(… in spl_dllist_object_new_ex()
436 …intern->fptr_offset_has = zend_hash_str_find_ptr(&class_type->function_table, "offsetexists", size… in spl_dllist_object_new_ex()
440 …intern->fptr_offset_del = zend_hash_str_find_ptr(&class_type->function_table, "offsetunset", sizeo… in spl_dllist_object_new_ex()
444 …intern->fptr_count = zend_hash_str_find_ptr(&class_type->function_table, "count", sizeof("count") … in spl_dllist_object_new_ex()
454 static zend_object *spl_dllist_object_new(zend_class_entry *class_type) /* {{{ */ in spl_dllist_object_new() argument
[all …]
H A Dspl_array.c168 static zend_object *spl_array_object_new_ex(zend_class_entry *class_type, zval *orig, int clone_ori… in spl_array_object_new_ex() argument
171 zend_class_entry *parent = class_type; in spl_array_object_new_ex()
176 zend_object_std_init(&intern->std, class_type); in spl_array_object_new_ex()
177 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.c398 static zend_object *spl_heap_object_new_ex(zend_class_entry *class_type, zval *orig, int clone_orig… in spl_heap_object_new_ex() argument
401 zend_class_entry *parent = class_type; in spl_heap_object_new_ex()
406 zend_object_std_init(&intern->std, class_type); in spl_heap_object_new_ex()
407 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 Dspl_functions.h24 typedef zend_object* (*create_object_func_t)(zend_class_entry *class_type);
H A Dspl_observer.c228 static zend_object *spl_object_storage_new_ex(zend_class_entry *class_type, zval *orig) /* {{{ */ in spl_object_storage_new_ex() argument
231 zend_class_entry *parent = class_type; in spl_object_storage_new_ex()
237 zend_object_std_init(&intern->std, class_type); in spl_object_storage_new_ex()
238 object_properties_init(&intern->std, class_type); in spl_object_storage_new_ex()
246 if (class_type != spl_ce_SplObjectStorage) { in spl_object_storage_new_ex()
247 …intern->fptr_get_hash = zend_hash_str_find_ptr(&class_type->function_table, "gethash", sizeof("get… in spl_object_storage_new_ex()
371 static zend_object *spl_SplObjectStorage_new(zend_class_entry *class_type) in spl_SplObjectStorage_new() argument
373 return spl_object_storage_new_ex(class_type, NULL); in spl_SplObjectStorage_new()
H A Dspl_iterators.c959 intern = zend_object_alloc(sizeof(spl_recursive_it_object), class_type); in spl_RecursiveIteratorIterator_new_ex()
972 zend_object_std_init(&intern->std, class_type); in spl_RecursiveIteratorIterator_new_ex()
973 object_properties_init(&intern->std, class_type); in spl_RecursiveIteratorIterator_new_ex()
981 static zend_object *spl_RecursiveIteratorIterator_new(zend_class_entry *class_type) in spl_RecursiveIteratorIterator_new() argument
983 return spl_RecursiveIteratorIterator_new_ex(class_type, 0); in spl_RecursiveIteratorIterator_new()
988 static zend_object *spl_RecursiveTreeIterator_new(zend_class_entry *class_type) in spl_RecursiveTreeIterator_new() argument
990 return spl_RecursiveIteratorIterator_new_ex(class_type, 1); in spl_RecursiveTreeIterator_new()
2330 static zend_object *spl_dual_it_new(zend_class_entry *class_type) in spl_dual_it_new() argument
2334 intern = zend_object_alloc(sizeof(spl_dual_it_object), class_type); in spl_dual_it_new()
2337 zend_object_std_init(&intern->std, class_type); in spl_dual_it_new()
[all …]
H A Dspl_directory.c154 static zend_object *spl_filesystem_object_new_ex(zend_class_entry *class_type) in spl_filesystem_object_new_ex() argument
158 intern = zend_object_alloc(sizeof(spl_filesystem_object), class_type); in spl_filesystem_object_new_ex()
163 zend_object_std_init(&intern->std, class_type); in spl_filesystem_object_new_ex()
164 object_properties_init(&intern->std, class_type); in spl_filesystem_object_new_ex()
173 static zend_object *spl_filesystem_object_new(zend_class_entry *class_type) in spl_filesystem_object_new() argument
175 return spl_filesystem_object_new_ex(class_type); in spl_filesystem_object_new()
180 static zend_object *spl_filesystem_object_new_check(zend_class_entry *class_type) in spl_filesystem_object_new_check() argument
182 spl_filesystem_object *ret = spl_filesystem_from_obj(spl_filesystem_object_new_ex(class_type)); in spl_filesystem_object_new_check()
/PHP-7.4/ext/xsl/
H A Dphp_xsl.c105 zend_object *xsl_objects_new(zend_class_entry *class_type) in xsl_objects_new() argument
109 intern = zend_object_alloc(sizeof(xsl_object), class_type); in xsl_objects_new()
112 zend_object_std_init(&intern->std, class_type); in xsl_objects_new()
113 object_properties_init(&intern->std, class_type); in xsl_objects_new()
/PHP-7.4/ext/dom/
H A Dphp_dom.h101 zend_object *dom_objects_new(zend_class_entry *class_type);
102 zend_object *dom_nnodemap_objects_new(zend_class_entry *class_type);
104 zend_object *dom_xpath_objects_new(zend_class_entry *class_type);
H A Dphp_dom.c501 static dom_object* dom_objects_set_class(zend_class_entry *class_type);
1073 dom_object *intern = zend_object_alloc(sizeof(dom_object), class_type); in dom_objects_set_class()
1075 zend_class_entry *base_class = class_type; in dom_objects_set_class()
1082 zend_object_std_init(&intern->std, class_type); in dom_objects_set_class()
1083 object_properties_init(&intern->std, class_type); in dom_objects_set_class()
1090 zend_object *dom_objects_new(zend_class_entry *class_type) in dom_objects_new() argument
1092 dom_object *intern = dom_objects_set_class(class_type); in dom_objects_new()
1100 zend_object *dom_xpath_objects_new(zend_class_entry *class_type) in dom_xpath_objects_new() argument
1109 zend_object_std_init(&intern->dom.std, class_type); in dom_xpath_objects_new()
1110 object_properties_init(&intern->dom.std, class_type); in dom_xpath_objects_new()
[all …]
/PHP-7.4/ext/zend_test/
H A Dtest.c138 static zend_object *zend_test_class_new(zend_class_entry *class_type) /* {{{ */ { in zend_test_class_new() argument
139 zend_object *obj = zend_objects_new(class_type); in zend_test_class_new()
140 object_properties_init(obj, class_type); in zend_test_class_new()
/PHP-7.4/ext/fileinfo/
H A Dfileinfo.c97 PHP_FILEINFO_API zend_object *finfo_objects_new(zend_class_entry *class_type) in finfo_objects_new() argument
101 intern = zend_object_alloc(sizeof(finfo_object), class_type); in finfo_objects_new()
103 zend_object_std_init(&intern->zo, class_type); in finfo_objects_new()
104 object_properties_init(&intern->zo, class_type); in finfo_objects_new()
/PHP-7.4/ext/mysqli/
H A Dmysqli.c456 PHP_MYSQLI_EXPORT(zend_object *) mysqli_objects_new(zend_class_entry *class_type) in mysqli_objects_new() argument
462 intern = zend_object_alloc(sizeof(mysqli_object), class_type); in mysqli_objects_new()
464 mysqli_base_class = class_type; in mysqli_objects_new()
471 zend_object_std_init(&intern->zo, class_type); in mysqli_objects_new()
472 object_properties_init(&intern->zo, class_type); in mysqli_objects_new()
475 if (instanceof_function(class_type, mysqli_link_class_entry)) { in mysqli_objects_new()
477 } else if (instanceof_function(class_type, mysqli_driver_class_entry)) { /* driver object */ in mysqli_objects_new()
479 } else if (instanceof_function(class_type, mysqli_stmt_class_entry)) { /* stmt object */ in mysqli_objects_new()
481 } else if (instanceof_function(class_type, mysqli_result_class_entry)) { /* result object */ in mysqli_objects_new()
483 } else if (instanceof_function(class_type, mysqli_warning_class_entry)) { /* warning object */ in mysqli_objects_new()
/PHP-7.4/ext/sqlite3/
H A Dsqlite3.c2435 static zend_object *php_sqlite3_object_new(zend_class_entry *class_type) /* {{{ */ in php_sqlite3_object_new() argument
2440 intern = zend_object_alloc(sizeof(php_sqlite3_db_object), class_type); in php_sqlite3_object_new()
2445 zend_object_std_init(&intern->zo, class_type); in php_sqlite3_object_new()
2446 object_properties_init(&intern->zo, class_type); in php_sqlite3_object_new()
2454 static zend_object *php_sqlite3_stmt_object_new(zend_class_entry *class_type) /* {{{ */ in php_sqlite3_stmt_object_new() argument
2459 intern = zend_object_alloc(sizeof(php_sqlite3_stmt), class_type); in php_sqlite3_stmt_object_new()
2461 zend_object_std_init(&intern->zo, class_type); in php_sqlite3_stmt_object_new()
2462 object_properties_init(&intern->zo, class_type); in php_sqlite3_stmt_object_new()
2475 intern = zend_object_alloc(sizeof(php_sqlite3_result), class_type); in php_sqlite3_result_object_new()
2477 zend_object_std_init(&intern->zo, class_type); in php_sqlite3_result_object_new()
[all …]
/PHP-7.4/ext/tidy/
H A Dtidy.c712 static zend_object *tidy_object_new(zend_class_entry *class_type, zend_object_handlers *handlers, t… in tidy_object_new() argument
716 intern = zend_object_alloc(sizeof(PHPTidyObj), class_type); in tidy_object_new()
717 zend_object_std_init(&intern->std, class_type); in tidy_object_new()
718 object_properties_init(&intern->std, class_type); in tidy_object_new()
755 static zend_object *tidy_object_new_node(zend_class_entry *class_type) in tidy_object_new_node() argument
757 return tidy_object_new(class_type, &tidy_object_handlers_node, is_node); in tidy_object_new_node()
760 static zend_object *tidy_object_new_doc(zend_class_entry *class_type) in tidy_object_new_doc() argument
762 return tidy_object_new(class_type, &tidy_object_handlers_doc, is_doc); in tidy_object_new_doc()
/PHP-7.4/ext/date/
H A Dphp_date.c653 static zend_object *date_object_new_date(zend_class_entry *class_type);
654 static zend_object *date_object_new_timezone(zend_class_entry *class_type);
656 static zend_object *date_object_new_period(zend_class_entry *class_type);
2227 zend_object_std_init(&intern->std, class_type); in date_object_new_date()
2228 object_properties_init(&intern->std, class_type); in date_object_new_date()
2357 zend_object_std_init(&intern->std, class_type); in date_object_new_timezone()
2358 object_properties_init(&intern->std, class_type); in date_object_new_timezone()
2502 zend_object_std_init(&intern->std, class_type); in date_object_new_interval()
2503 object_properties_init(&intern->std, class_type); in date_object_new_interval()
2577 zend_object_std_init(&intern->std, class_type); in date_object_new_period()
[all …]
/PHP-7.4/ext/xmlreader/
H A Dphp_xmlreader.c388 zend_object *xmlreader_objects_new(zend_class_entry *class_type) in xmlreader_objects_new() argument
392 intern = zend_object_alloc(sizeof(xmlreader_object), class_type); in xmlreader_objects_new()
393 zend_object_std_init(&intern->std, class_type); in xmlreader_objects_new()
394 object_properties_init(&intern->std, class_type); in xmlreader_objects_new()
/PHP-7.4/ext/xmlwriter/
H A Dphp_xmlwriter.c138 static zend_object *xmlwriter_object_new(zend_class_entry *class_type) in xmlwriter_object_new() argument
142 intern = zend_object_alloc(sizeof(ze_xmlwriter_object), class_type); in xmlwriter_object_new()
143 zend_object_std_init(&intern->std, class_type); in xmlwriter_object_new()
144 object_properties_init(&intern->std, class_type); in xmlwriter_object_new()

Completed in 130 milliseconds

12