Home
last modified time | relevance | path

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

12

/PHP-7.3/Zend/
H A Dzend_interfaces.c290 if (class_type->get_iterator || (class_type->parent && class_type->parent->get_iterator)) { in zend_implement_traversable()
299 ZSTR_VAL(class_type->name), in zend_implement_traversable()
313 if (class_type->get_iterator) { in zend_implement_aggregate()
319 if (class_type->num_interfaces) { in zend_implement_aggregate()
323 ZSTR_VAL(class_type->name), in zend_implement_aggregate()
357 if (class_type->get_iterator && class_type->get_iterator != zend_user_it_get_iterator) { in zend_implement_iterator()
365 ZSTR_VAL(class_type->name), in zend_implement_iterator()
481 if (class_type->parent in zend_implement_serializable()
482 && (class_type->parent->serialize || class_type->parent->unserialize) in zend_implement_serializable()
486 if (!class_type->serialize) { 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()
207 static zend_object *zend_default_exception_new_ex(zend_class_entry *class_type, int skip_top_traces… in zend_default_exception_new_ex() argument
215 Z_OBJ(obj) = object = zend_objects_new(class_type); in zend_default_exception_new_ex()
218 object_properties_init(object, class_type); in zend_default_exception_new_ex()
229 if (EXPECTED((class_type != zend_ce_parse_error && class_type != zend_ce_compile_error) in zend_default_exception_new_ex()
248 static zend_object *zend_default_exception_new(zend_class_entry *class_type) /* {{{ */ in zend_default_exception_new() argument
250 return zend_default_exception_new_ex(class_type, 0); in zend_default_exception_new()
254 static zend_object *zend_error_exception_new(zend_class_entry *class_type) /* {{{ */ in zend_error_exception_new() argument
[all …]
H A Dzend_API.c1153 if (class_type->parent) { in zend_update_class_constants()
1168 ce = class_type; in zend_update_class_constants()
1188 class_type->ce_flags |= ZEND_ACC_CONSTANTS_UPDATED; in zend_update_class_constants()
1197 if (class_type->default_properties_count) { in object_properties_init()
1198 zval *src = class_type->default_properties_table; in object_properties_init()
1307 if (class_type->ce_flags & ZEND_ACC_INTERFACE) { in object_and_properties_init()
1327 if (class_type->create_object == NULL) { in object_and_properties_init()
1328 ZVAL_OBJ(arg, zend_objects_new(class_type)); in object_and_properties_init()
1332 object_properties_init(Z_OBJ_P(arg), class_type); in object_and_properties_init()
1335 ZVAL_OBJ(arg, class_type->create_object(class_type)); in object_and_properties_init()
[all …]
H A Dzend_object_handlers.c1382 ZEND_API void zend_class_init_statics(zend_class_entry *class_type) /* {{{ */ in zend_class_init_statics() argument
1387 if (!CE_STATIC_MEMBERS(class_type) && class_type->default_static_members_count) { in zend_class_init_statics()
1388 if (class_type->parent) { in zend_class_init_statics()
1389 zend_class_init_statics(class_type->parent); in zend_class_init_statics()
1393 …CG(static_members_table)[(zend_intptr_t)(class_type->static_members_table)] = emalloc(sizeof(zval)… in zend_class_init_statics()
1395class_type->static_members_table = emalloc(sizeof(zval) * class_type->default_static_members_count… in zend_class_init_statics()
1397 for (i = 0; i < class_type->default_static_members_count; i++) { in zend_class_init_statics()
1398 p = &class_type->default_static_members_table[i]; in zend_class_init_statics()
1400 zval *q = &CE_STATIC_MEMBERS(class_type->parent)[i]; in zend_class_init_statics()
1402 ZVAL_INDIRECT(&CE_STATIC_MEMBERS(class_type)[i], q); in zend_class_init_statics()
[all …]
H A Dzend.h145 zend_object* (*create_object)(zend_class_entry *class_type);
146 …int (*interface_gets_implemented)(zend_class_entry *iface, zend_class_entry *class_type); /* a cla…
/PHP-7.3/ext/spl/
H A Dspl_fixedarray.c208 zend_class_entry *parent = class_type; in spl_fixedarray_object_new_ex()
213 zend_object_std_init(&intern->std, class_type); in spl_fixedarray_object_new_ex()
214 object_properties_init(&intern->std, class_type); in spl_fixedarray_object_new_ex()
229 class_type->get_iterator = spl_fixedarray_get_iterator; in spl_fixedarray_object_new_ex()
241 if (!class_type->iterator_funcs_ptr->zf_current) { in spl_fixedarray_object_new_ex()
242class_type->iterator_funcs_ptr->zf_rewind = zend_hash_str_find_ptr(&class_type->function_table, "r… in spl_fixedarray_object_new_ex()
243class_type->iterator_funcs_ptr->zf_valid = zend_hash_str_find_ptr(&class_type->function_table, "va… in spl_fixedarray_object_new_ex()
244class_type->iterator_funcs_ptr->zf_key = zend_hash_str_find_ptr(&class_type->function_table, "key"… in spl_fixedarray_object_new_ex()
245class_type->iterator_funcs_ptr->zf_current = zend_hash_str_find_ptr(&class_type->function_table, "… in spl_fixedarray_object_new_ex()
246class_type->iterator_funcs_ptr->zf_next = zend_hash_str_find_ptr(&class_type->function_table, "nex… in spl_fixedarray_object_new_ex()
[all …]
H A Dspl_array.c171 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()
209 class_type->get_iterator = spl_array_get_iterator; in spl_array_object_new_ex()
246 if (!class_type->iterator_funcs_ptr->zf_current) { in spl_array_object_new_ex()
247class_type->iterator_funcs_ptr->zf_rewind = zend_hash_str_find_ptr(&class_type->function_table, "r… in spl_array_object_new_ex()
248class_type->iterator_funcs_ptr->zf_valid = zend_hash_str_find_ptr(&class_type->function_table, "va… in spl_array_object_new_ex()
249class_type->iterator_funcs_ptr->zf_key = zend_hash_str_find_ptr(&class_type->function_table, "key"… in spl_array_object_new_ex()
250class_type->iterator_funcs_ptr->zf_current = zend_hash_str_find_ptr(&class_type->function_table, "… in spl_array_object_new_ex()
251class_type->iterator_funcs_ptr->zf_next = zend_hash_str_find_ptr(&class_type->function_table, "nex… in spl_array_object_new_ex()
[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_heap.c358 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
361 zend_class_entry *parent = class_type; in spl_heap_object_new_ex()
366 zend_object_std_init(&intern->std, class_type); in spl_heap_object_new_ex()
367 object_properties_init(&intern->std, class_type); in spl_heap_object_new_ex()
420 …intern->fptr_cmp = zend_hash_str_find_ptr(&class_type->function_table, "compare", sizeof("compare"… in spl_heap_object_new_ex()
424 …intern->fptr_count = zend_hash_str_find_ptr(&class_type->function_table, "count", sizeof("count") … in spl_heap_object_new_ex()
434 static zend_object *spl_heap_object_new(zend_class_entry *class_type) /* {{{ */ in spl_heap_object_new() argument
436 return spl_heap_object_new_ex(class_type, NULL, 0); in spl_heap_object_new()
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()
373 static zend_object *spl_SplObjectStorage_new(zend_class_entry *class_type) in spl_SplObjectStorage_new() argument
375 return spl_object_storage_new_ex(class_type, NULL); in spl_SplObjectStorage_new()
H A Dspl_functions.h24 typedef zend_object* (*create_object_func_t)(zend_class_entry *class_type);
H A Dspl_iterators.c973 zend_object_std_init(&intern->std, class_type); in spl_RecursiveIteratorIterator_new_ex()
974 object_properties_init(&intern->std, class_type); in spl_RecursiveIteratorIterator_new_ex()
984 return spl_RecursiveIteratorIterator_new_ex(class_type, 0); in spl_RecursiveIteratorIterator_new()
991 return spl_RecursiveIteratorIterator_new_ex(class_type, 1); in spl_RecursiveTreeIterator_new()
1354 class_type->iterator_funcs_ptr->zf_valid = NULL; in spl_dual_it_gets_implemented()
1355 class_type->iterator_funcs_ptr->zf_current = NULL; in spl_dual_it_gets_implemented()
1356 class_type->iterator_funcs_ptr->zf_key = NULL; in spl_dual_it_gets_implemented()
1357 class_type->iterator_funcs_ptr->zf_next = NULL; in spl_dual_it_gets_implemented()
1358 class_type->iterator_funcs_ptr->zf_rewind = NULL; in spl_dual_it_gets_implemented()
2357 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.3/ext/standard/
H A Dincomplete_class.c101 static zend_object *php_create_incomplete_object(zend_class_entry *class_type) in php_create_incomplete_object() argument
105 object = zend_objects_new( class_type); in php_create_incomplete_object()
108 object_properties_init(object, class_type); in php_create_incomplete_object()
/PHP-7.3/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.3/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.c499 static dom_object* dom_objects_set_class(zend_class_entry *class_type);
1071 dom_object *intern = zend_object_alloc(sizeof(dom_object), class_type); in dom_objects_set_class()
1073 zend_class_entry *base_class = class_type; in dom_objects_set_class()
1080 zend_object_std_init(&intern->std, class_type); in dom_objects_set_class()
1081 object_properties_init(&intern->std, class_type); in dom_objects_set_class()
1088 zend_object *dom_objects_new(zend_class_entry *class_type) in dom_objects_new() argument
1090 dom_object *intern = dom_objects_set_class(class_type); in dom_objects_new()
1098 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 …]
/PHP-7.3/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()
/PHP-7.3/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.3/ext/mysqli/
H A Dmysqli.c438 PHP_MYSQLI_EXPORT(zend_object *) mysqli_objects_new(zend_class_entry *class_type) in mysqli_objects_new() argument
444 intern = zend_object_alloc(sizeof(mysqli_object), class_type); in mysqli_objects_new()
446 mysqli_base_class = class_type; in mysqli_objects_new()
453 zend_object_std_init(&intern->zo, class_type); in mysqli_objects_new()
454 object_properties_init(&intern->zo, class_type); in mysqli_objects_new()
457 if (instanceof_function(class_type, mysqli_link_class_entry)) { in mysqli_objects_new()
459 } else if (instanceof_function(class_type, mysqli_driver_class_entry)) { /* driver object */ in mysqli_objects_new()
461 } else if (instanceof_function(class_type, mysqli_stmt_class_entry)) { /* stmt object */ in mysqli_objects_new()
463 } else if (instanceof_function(class_type, mysqli_result_class_entry)) { /* result object */ in mysqli_objects_new()
465 } else if (instanceof_function(class_type, mysqli_warning_class_entry)) { /* warning object */ in mysqli_objects_new()
/PHP-7.3/ext/sqlite3/
H A Dsqlite3.c2216 static zend_object *php_sqlite3_object_new(zend_class_entry *class_type) /* {{{ */ in php_sqlite3_object_new() argument
2221 intern = zend_object_alloc(sizeof(php_sqlite3_db_object), class_type); in php_sqlite3_object_new()
2226 zend_object_std_init(&intern->zo, class_type); in php_sqlite3_object_new()
2227 object_properties_init(&intern->zo, class_type); in php_sqlite3_object_new()
2235 static zend_object *php_sqlite3_stmt_object_new(zend_class_entry *class_type) /* {{{ */ in php_sqlite3_stmt_object_new() argument
2240 intern = zend_object_alloc(sizeof(php_sqlite3_stmt), class_type); in php_sqlite3_stmt_object_new()
2242 zend_object_std_init(&intern->zo, class_type); in php_sqlite3_stmt_object_new()
2243 object_properties_init(&intern->zo, class_type); in php_sqlite3_stmt_object_new()
2256 intern = zend_object_alloc(sizeof(php_sqlite3_result), class_type); in php_sqlite3_result_object_new()
2258 zend_object_std_init(&intern->zo, class_type); in php_sqlite3_result_object_new()
[all …]
/PHP-7.3/ext/tidy/
H A Dtidy.c703 static zend_object *tidy_object_new(zend_class_entry *class_type, zend_object_handlers *handlers, t… in tidy_object_new() argument
707 intern = zend_object_alloc(sizeof(PHPTidyObj), class_type); in tidy_object_new()
708 zend_object_std_init(&intern->std, class_type); in tidy_object_new()
709 object_properties_init(&intern->std, class_type); in tidy_object_new()
746 static zend_object *tidy_object_new_node(zend_class_entry *class_type) in tidy_object_new_node() argument
748 return tidy_object_new(class_type, &tidy_object_handlers_node, is_node); in tidy_object_new_node()
751 static zend_object *tidy_object_new_doc(zend_class_entry *class_type) in tidy_object_new_doc() argument
753 return tidy_object_new(class_type, &tidy_object_handlers_doc, is_doc); in tidy_object_new_doc()
/PHP-7.3/ext/date/
H A Dphp_date.c675 static zend_object *date_object_new_date(zend_class_entry *class_type);
676 static zend_object *date_object_new_timezone(zend_class_entry *class_type);
678 static zend_object *date_object_new_period(zend_class_entry *class_type);
2225 zend_object_std_init(&intern->std, class_type); in date_object_new_date()
2226 object_properties_init(&intern->std, class_type); in date_object_new_date()
2347 zend_object_std_init(&intern->std, class_type); in date_object_new_timezone()
2348 object_properties_init(&intern->std, class_type); in date_object_new_timezone()
2455 zend_object_std_init(&intern->std, class_type); in date_object_new_interval()
2456 object_properties_init(&intern->std, class_type); in date_object_new_interval()
2532 zend_object_std_init(&intern->std, class_type); in date_object_new_period()
[all …]
/PHP-7.3/ext/xmlreader/
H A Dphp_xmlreader.c374 zend_object *xmlreader_objects_new(zend_class_entry *class_type) in xmlreader_objects_new() argument
378 intern = zend_object_alloc(sizeof(xmlreader_object), class_type); in xmlreader_objects_new()
379 zend_object_std_init(&intern->std, class_type); in xmlreader_objects_new()
380 object_properties_init(&intern->std, class_type); in xmlreader_objects_new()
/PHP-7.3/ext/xmlwriter/
H A Dphp_xmlwriter.c146 static zend_object *xmlwriter_object_new(zend_class_entry *class_type) in xmlwriter_object_new() argument
150 intern = zend_object_alloc(sizeof(ze_xmlwriter_object), class_type); in xmlwriter_object_new()
151 zend_object_std_init(&intern->std, class_type); in xmlwriter_object_new()
152 object_properties_init(&intern->std, class_type); in xmlwriter_object_new()

Completed in 112 milliseconds

12