Home
last modified time | relevance | path

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

12

/PHP-7.1/Zend/
H A Dzend_interfaces.c305 if (class_type->get_iterator || (class_type->parent && class_type->parent->get_iterator)) { in zend_implement_traversable()
314 ZSTR_VAL(class_type->name), in zend_implement_traversable()
328 if (class_type->get_iterator) { in zend_implement_aggregate()
334 if (class_type->num_interfaces) { in zend_implement_aggregate()
338 ZSTR_VAL(class_type->name), in zend_implement_aggregate()
362 if (class_type->get_iterator && class_type->get_iterator != zend_user_it_get_iterator) { in zend_implement_iterator()
370 ZSTR_VAL(class_type->name), in zend_implement_iterator()
484 if (class_type->parent in zend_implement_serializable()
485 && (class_type->parent->serialize || class_type->parent->unserialize) in zend_implement_serializable()
489 if (!class_type->serialize) { in zend_implement_serializable()
[all …]
H A Dzend_API.c1091 if (class_type->parent) { in zend_update_class_constants()
1097 if (!CE_STATIC_MEMBERS(class_type) && class_type->default_static_members_count) { in zend_update_class_constants()
1105class_type->static_members_table = emalloc(sizeof(zval) * class_type->default_static_members_count… in zend_update_class_constants()
1110 class_type->parent && in zend_update_class_constants()
1139 ce = class_type; in zend_update_class_constants()
1168 if (class_type->default_properties_count) { in object_properties_init()
1274 if (class_type->ce_flags & ZEND_ACC_INTERFACE) { in _object_and_properties_init()
1294 if (class_type->create_object == NULL) { in _object_and_properties_init()
1295 ZVAL_OBJ(arg, zend_objects_new(class_type)); in _object_and_properties_init()
1302 ZVAL_OBJ(arg, class_type->create_object(class_type)); in _object_and_properties_init()
[all …]
H A Dzend_exceptions.c48 static int zend_implement_throwable(zend_class_entry *interface, zend_class_entry *class_type) in zend_implement_throwable() argument
50 …if (instanceof_function(class_type, zend_ce_exception) || instanceof_function(class_type, zend_ce_… in zend_implement_throwable()
54 ZSTR_VAL(class_type->name), in zend_implement_throwable()
202 static zend_object *zend_default_exception_new_ex(zend_class_entry *class_type, int skip_top_traces… in zend_default_exception_new_ex() argument
210 Z_OBJ(obj) = object = zend_objects_new(class_type); in zend_default_exception_new_ex()
213 object_properties_init(object, class_type); in zend_default_exception_new_ex()
224 if (EXPECTED(class_type != zend_ce_parse_error || !(filename = zend_get_compiled_filename()))) { in zend_default_exception_new_ex()
242 static zend_object *zend_default_exception_new(zend_class_entry *class_type) /* {{{ */ in zend_default_exception_new() argument
244 return zend_default_exception_new_ex(class_type, 0); in zend_default_exception_new()
248 static zend_object *zend_error_exception_new(zend_class_entry *class_type) /* {{{ */ in zend_error_exception_new() argument
[all …]
H A Dzend.h149 zend_object* (*create_object)(zend_class_entry *class_type);
151 …int (*interface_gets_implemented)(zend_class_entry *iface, zend_class_entry *class_type); /* a cla…
H A Dzend_generators.c32 static zend_object *zend_generator_create(zend_class_entry *class_type);
395 static zend_object *zend_generator_create(zend_class_entry *class_type) /* {{{ */ in zend_generator_create() argument
413 zend_object_std_init(&generator->std, class_type); in zend_generator_create()
H A Dzend_closures.c450 static zend_object *zend_closure_new(zend_class_entry *class_type) /* {{{ */ in zend_closure_new() argument
457 zend_object_std_init(&closure->std, class_type); in zend_closure_new()
/PHP-7.1/ext/spl/
H A Dspl_fixedarray.c212 zend_class_entry *parent = class_type; in spl_fixedarray_object_new_ex()
217 zend_object_std_init(&intern->std, class_type); in spl_fixedarray_object_new_ex()
218 object_properties_init(&intern->std, class_type); in spl_fixedarray_object_new_ex()
233 class_type->get_iterator = spl_fixedarray_get_iterator; in spl_fixedarray_object_new_ex()
245 if (!class_type->iterator_funcs.zf_current) { in spl_fixedarray_object_new_ex()
246class_type->iterator_funcs.zf_rewind = zend_hash_str_find_ptr(&class_type->function_table, "rewind… in spl_fixedarray_object_new_ex()
247class_type->iterator_funcs.zf_valid = zend_hash_str_find_ptr(&class_type->function_table, "valid",… in spl_fixedarray_object_new_ex()
248class_type->iterator_funcs.zf_key = zend_hash_str_find_ptr(&class_type->function_table, "key", siz… in spl_fixedarray_object_new_ex()
249class_type->iterator_funcs.zf_current = zend_hash_str_find_ptr(&class_type->function_table, "curre… in spl_fixedarray_object_new_ex()
250class_type->iterator_funcs.zf_next = zend_hash_str_find_ptr(&class_type->function_table, "next", s… in spl_fixedarray_object_new_ex()
[all …]
H A Dspl_array.c173 zend_class_entry *parent = class_type; in spl_array_object_new_ex()
178 zend_object_std_init(&intern->std, class_type); in spl_array_object_new_ex()
179 object_properties_init(&intern->std, class_type); in spl_array_object_new_ex()
211 class_type->get_iterator = spl_array_get_iterator; in spl_array_object_new_ex()
248 if (!class_type->iterator_funcs.zf_current) { in spl_array_object_new_ex()
249class_type->iterator_funcs.zf_rewind = zend_hash_str_find_ptr(&class_type->function_table, "rewind… in spl_array_object_new_ex()
250class_type->iterator_funcs.zf_valid = zend_hash_str_find_ptr(&class_type->function_table, "valid",… in spl_array_object_new_ex()
251class_type->iterator_funcs.zf_key = zend_hash_str_find_ptr(&class_type->function_table, "key", siz… in spl_array_object_new_ex()
252class_type->iterator_funcs.zf_current = zend_hash_str_find_ptr(&class_type->function_table, "curre… in spl_array_object_new_ex()
253class_type->iterator_funcs.zf_next = zend_hash_str_find_ptr(&class_type->function_table, "next", s… 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.c362 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
365 zend_class_entry *parent = class_type; in spl_heap_object_new_ex()
370 zend_object_std_init(&intern->std, class_type); in spl_heap_object_new_ex()
371 object_properties_init(&intern->std, class_type); in spl_heap_object_new_ex()
424 …intern->fptr_cmp = zend_hash_str_find_ptr(&class_type->function_table, "compare", sizeof("compare"… in spl_heap_object_new_ex()
428 …intern->fptr_count = zend_hash_str_find_ptr(&class_type->function_table, "count", sizeof("count") … in spl_heap_object_new_ex()
438 static zend_object *spl_heap_object_new(zend_class_entry *class_type) /* {{{ */ in spl_heap_object_new() argument
440 return spl_heap_object_new_ex(class_type, NULL, 0); in spl_heap_object_new()
H A Dspl_observer.c230 static zend_object *spl_object_storage_new_ex(zend_class_entry *class_type, zval *orig) /* {{{ */ in spl_object_storage_new_ex() argument
233 zend_class_entry *parent = class_type; in spl_object_storage_new_ex()
239 zend_object_std_init(&intern->std, class_type); in spl_object_storage_new_ex()
240 object_properties_init(&intern->std, class_type); in spl_object_storage_new_ex()
248 if (class_type != spl_ce_SplObjectStorage) { in spl_object_storage_new_ex()
249 …intern->fptr_get_hash = zend_hash_str_find_ptr(&class_type->function_table, "gethash", sizeof("get… in spl_object_storage_new_ex()
376 static zend_object *spl_SplObjectStorage_new(zend_class_entry *class_type) in spl_SplObjectStorage_new() argument
378 return spl_object_storage_new_ex(class_type, NULL); in spl_SplObjectStorage_new()
H A Dspl_functions.h26 typedef zend_object* (*create_object_func_t)(zend_class_entry *class_type);
H A Dspl_iterators.c978 zend_object_std_init(&intern->std, class_type); in spl_RecursiveIteratorIterator_new_ex()
979 object_properties_init(&intern->std, class_type); in spl_RecursiveIteratorIterator_new_ex()
989 return spl_RecursiveIteratorIterator_new_ex(class_type, 0); in spl_RecursiveIteratorIterator_new()
1356 class_type->iterator_funcs.zf_valid = NULL; in spl_dual_it_gets_implemented()
1357 class_type->iterator_funcs.zf_current = NULL; in spl_dual_it_gets_implemented()
1358 class_type->iterator_funcs.zf_key = NULL; in spl_dual_it_gets_implemented()
1359 class_type->iterator_funcs.zf_next = NULL; in spl_dual_it_gets_implemented()
1360 class_type->iterator_funcs.zf_rewind = NULL; in spl_dual_it_gets_implemented()
1361 if (!class_type->iterator_funcs.funcs) { in spl_dual_it_gets_implemented()
2364 zend_object_std_init(&intern->std, class_type); in spl_dual_it_new()
[all …]
H A Dspl_directory.c138 static zend_object *spl_filesystem_object_new_ex(zend_class_entry *class_type) in spl_filesystem_object_new_ex() argument
142 intern = ecalloc(1, sizeof(spl_filesystem_object) + zend_object_properties_size(class_type)); in spl_filesystem_object_new_ex()
147 zend_object_std_init(&intern->std, class_type); in spl_filesystem_object_new_ex()
148 object_properties_init(&intern->std, class_type); in spl_filesystem_object_new_ex()
157 static zend_object *spl_filesystem_object_new(zend_class_entry *class_type) in spl_filesystem_object_new() argument
159 return spl_filesystem_object_new_ex(class_type); in spl_filesystem_object_new()
164 static zend_object *spl_filesystem_object_new_check(zend_class_entry *class_type) in spl_filesystem_object_new_check() argument
166 spl_filesystem_object *ret = spl_filesystem_from_obj(spl_filesystem_object_new_ex(class_type)); in spl_filesystem_object_new_check()
/PHP-7.1/ext/standard/
H A Dincomplete_class.c103 static zend_object *php_create_incomplete_object(zend_class_entry *class_type) in php_create_incomplete_object() argument
107 object = zend_objects_new( class_type); in php_create_incomplete_object()
110 object_properties_init(object, class_type); in php_create_incomplete_object()
/PHP-7.1/ext/xsl/
H A Dphp_xsl.c107 zend_object *xsl_objects_new(zend_class_entry *class_type) in xsl_objects_new() argument
111 intern = ecalloc(1, sizeof(xsl_object) + zend_object_properties_size(class_type)); in xsl_objects_new()
114 zend_object_std_init(&intern->std, class_type); in xsl_objects_new()
115 object_properties_init(&intern->std, class_type); in xsl_objects_new()
/PHP-7.1/ext/dom/
H A Dphp_dom.h102 zend_object *dom_objects_new(zend_class_entry *class_type);
103 zend_object *dom_nnodemap_objects_new(zend_class_entry *class_type);
105 zend_object *dom_xpath_objects_new(zend_class_entry *class_type);
H A Dphp_dom.c502 static dom_object* dom_objects_set_class(zend_class_entry *class_type, zend_bool hash_copy);
1076 zend_class_entry *base_class = class_type; in dom_objects_set_class()
1083 zend_object_std_init(&intern->std, class_type); in dom_objects_set_class()
1085 object_properties_init(&intern->std, class_type); in dom_objects_set_class()
1093 zend_object *dom_objects_new(zend_class_entry *class_type) in dom_objects_new() argument
1095 dom_object *intern = dom_objects_set_class(class_type, 1); in dom_objects_new()
1103 zend_object *dom_xpath_objects_new(zend_class_entry *class_type) in dom_xpath_objects_new() argument
1113 zend_object_std_init(&intern->dom.std, class_type); in dom_xpath_objects_new()
1114 object_properties_init(&intern->dom.std, class_type); in dom_xpath_objects_new()
1155 zend_object *dom_nnodemap_objects_new(zend_class_entry *class_type) /* {{{ */ in dom_nnodemap_objects_new() argument
[all …]
/PHP-7.1/ext/fileinfo/
H A Dfileinfo.c99 PHP_FILEINFO_API zend_object *finfo_objects_new(zend_class_entry *class_type) in finfo_objects_new() argument
103 intern = ecalloc(1, sizeof(finfo_object) + zend_object_properties_size(class_type)); in finfo_objects_new()
105 zend_object_std_init(&intern->zo, class_type); in finfo_objects_new()
106 object_properties_init(&intern->zo, class_type); in finfo_objects_new()
/PHP-7.1/ext/mysqli/
H A Dmysqli.c446 PHP_MYSQLI_EXPORT(zend_object *) mysqli_objects_new(zend_class_entry *class_type) in mysqli_objects_new() argument
452 intern = ecalloc(1, sizeof(mysqli_object) + zend_object_properties_size(class_type)); in mysqli_objects_new()
454 mysqli_base_class = class_type; in mysqli_objects_new()
461 zend_object_std_init(&intern->zo, class_type); in mysqli_objects_new()
462 object_properties_init(&intern->zo, class_type); in mysqli_objects_new()
465 if (instanceof_function(class_type, mysqli_link_class_entry)) { in mysqli_objects_new()
467 } else if (instanceof_function(class_type, mysqli_driver_class_entry)) { /* driver object */ in mysqli_objects_new()
469 } else if (instanceof_function(class_type, mysqli_stmt_class_entry)) { /* stmt object */ in mysqli_objects_new()
471 } else if (instanceof_function(class_type, mysqli_result_class_entry)) { /* result object */ in mysqli_objects_new()
473 } else if (instanceof_function(class_type, mysqli_warning_class_entry)) { /* warning object */ in mysqli_objects_new()
/PHP-7.1/ext/sqlite3/
H A Dsqlite3.c2186 static zend_object *php_sqlite3_object_new(zend_class_entry *class_type) /* {{{ */ in php_sqlite3_object_new() argument
2196 zend_object_std_init(&intern->zo, class_type); in php_sqlite3_object_new()
2197 object_properties_init(&intern->zo, class_type); in php_sqlite3_object_new()
2205 static zend_object *php_sqlite3_stmt_object_new(zend_class_entry *class_type) /* {{{ */ in php_sqlite3_stmt_object_new() argument
2210 intern = ecalloc(1, sizeof(php_sqlite3_stmt) + zend_object_properties_size(class_type)); in php_sqlite3_stmt_object_new()
2212 zend_object_std_init(&intern->zo, class_type); in php_sqlite3_stmt_object_new()
2213 object_properties_init(&intern->zo, class_type); in php_sqlite3_stmt_object_new()
2221 static zend_object *php_sqlite3_result_object_new(zend_class_entry *class_type) /* {{{ */ in php_sqlite3_result_object_new() argument
2226 intern = ecalloc(1, sizeof(php_sqlite3_result) + zend_object_properties_size(class_type)); in php_sqlite3_result_object_new()
2228 zend_object_std_init(&intern->zo, class_type); in php_sqlite3_result_object_new()
[all …]
/PHP-7.1/ext/date/
H A Dphp_date.c2166 zend_object_std_init(&intern->std, class_type); in date_object_new_date_ex()
2168 object_properties_init(&intern->std, class_type); in date_object_new_date_ex()
2177 return date_object_new_date_ex(class_type, 1); in date_object_new_date()
2297 zend_object_std_init(&intern->std, class_type); in date_object_new_timezone_ex()
2299 object_properties_init(&intern->std, class_type); in date_object_new_timezone_ex()
2308 return date_object_new_timezone_ex(class_type, 1); in date_object_new_timezone()
2427 zend_object_std_init(&intern->std, class_type); in date_object_new_interval_ex()
2429 object_properties_init(&intern->std, class_type); in date_object_new_interval_ex()
2438 return date_object_new_interval_ex(class_type, 1); in date_object_new_interval()
2513 zend_object_std_init(&intern->std, class_type); in date_object_new_period_ex()
[all …]
/PHP-7.1/ext/tidy/
H A Dtidy.c684 static zend_object *tidy_object_new(zend_class_entry *class_type, zend_object_handlers *handlers, t… in tidy_object_new() argument
688 intern = ecalloc(1, sizeof(PHPTidyObj) + zend_object_properties_size(class_type)); in tidy_object_new()
689 zend_object_std_init(&intern->std, class_type); in tidy_object_new()
690 object_properties_init(&intern->std, class_type); in tidy_object_new()
727 static zend_object *tidy_object_new_node(zend_class_entry *class_type) in tidy_object_new_node() argument
729 return tidy_object_new(class_type, &tidy_object_handlers_node, is_node); in tidy_object_new_node()
732 static zend_object *tidy_object_new_doc(zend_class_entry *class_type) in tidy_object_new_doc() argument
734 return tidy_object_new(class_type, &tidy_object_handlers_doc, is_doc); in tidy_object_new_doc()
/PHP-7.1/ext/xmlreader/
H A Dphp_xmlreader.c385 zend_object *xmlreader_objects_new(zend_class_entry *class_type) in xmlreader_objects_new() argument
389 intern = ecalloc(1, sizeof(xmlreader_object) + zend_object_properties_size(class_type)); in xmlreader_objects_new()
390 zend_object_std_init(&intern->std, class_type); in xmlreader_objects_new()
391 object_properties_init(&intern->std, class_type); in xmlreader_objects_new()
/PHP-7.1/ext/xmlwriter/
H A Dphp_xmlwriter.c140 static zend_object *xmlwriter_object_new(zend_class_entry *class_type) in xmlwriter_object_new() argument
144 intern = ecalloc(1, sizeof(ze_xmlwriter_object) + zend_object_properties_size(class_type)); in xmlwriter_object_new()
145 zend_object_std_init(&intern->std, class_type); in xmlwriter_object_new()
146 object_properties_init(&intern->std, class_type); in xmlwriter_object_new()

Completed in 136 milliseconds

12