/PHP-7.2/Zend/ |
H A D | zend_interfaces.c | 289 if (class_type->get_iterator || (class_type->parent && class_type->parent->get_iterator)) { in zend_implement_traversable() 298 ZSTR_VAL(class_type->name), in zend_implement_traversable() 312 if (class_type->get_iterator) { in zend_implement_aggregate() 318 if (class_type->num_interfaces) { in zend_implement_aggregate() 322 ZSTR_VAL(class_type->name), in zend_implement_aggregate() 346 if (class_type->get_iterator && class_type->get_iterator != zend_user_it_get_iterator) { in zend_implement_iterator() 354 ZSTR_VAL(class_type->name), in zend_implement_iterator() 459 if (class_type->parent in zend_implement_serializable() 460 && (class_type->parent->serialize || class_type->parent->unserialize) in zend_implement_serializable() 464 if (!class_type->serialize) { in zend_implement_serializable() [all …]
|
H A D | zend_exceptions.c | 48 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 D | zend_API.c | 1121 if (class_type->parent) { in zend_update_class_constants() 1127 if (!CE_STATIC_MEMBERS(class_type) && class_type->default_static_members_count) { in zend_update_class_constants() 1135 …class_type->static_members_table = emalloc(sizeof(zval) * class_type->default_static_members_count… in zend_update_class_constants() 1140 class_type->parent && in zend_update_class_constants() 1169 ce = class_type; in zend_update_class_constants() 1198 if (class_type->default_properties_count) { in object_properties_init() 1304 if (class_type->ce_flags & ZEND_ACC_INTERFACE) { in _object_and_properties_init() 1324 if (class_type->create_object == NULL) { in _object_and_properties_init() 1325 ZVAL_OBJ(arg, zend_objects_new(class_type)); in _object_and_properties_init() 1332 ZVAL_OBJ(arg, class_type->create_object(class_type)); in _object_and_properties_init() [all …]
|
H A D | zend.h | 148 zend_object* (*create_object)(zend_class_entry *class_type); 150 …int (*interface_gets_implemented)(zend_class_entry *iface, zend_class_entry *class_type); /* a cla…
|
H A D | zend_generators.c | 32 static zend_object *zend_generator_create(zend_class_entry *class_type); 399 static zend_object *zend_generator_create(zend_class_entry *class_type) /* {{{ */ in zend_generator_create() argument 417 zend_object_std_init(&generator->std, class_type); in zend_generator_create()
|
/PHP-7.2/ext/spl/ |
H A D | spl_fixedarray.c | 212 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() 246 …class_type->iterator_funcs.zf_rewind = zend_hash_str_find_ptr(&class_type->function_table, "rewind… in spl_fixedarray_object_new_ex() 247 …class_type->iterator_funcs.zf_valid = zend_hash_str_find_ptr(&class_type->function_table, "valid",… in spl_fixedarray_object_new_ex() 248 …class_type->iterator_funcs.zf_key = zend_hash_str_find_ptr(&class_type->function_table, "key", siz… in spl_fixedarray_object_new_ex() 249 …class_type->iterator_funcs.zf_current = zend_hash_str_find_ptr(&class_type->function_table, "curre… in spl_fixedarray_object_new_ex() 250 …class_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 D | spl_array.c | 173 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() 249 …class_type->iterator_funcs.zf_rewind = zend_hash_str_find_ptr(&class_type->function_table, "rewind… in spl_array_object_new_ex() 250 …class_type->iterator_funcs.zf_valid = zend_hash_str_find_ptr(&class_type->function_table, "valid",… in spl_array_object_new_ex() 251 …class_type->iterator_funcs.zf_key = zend_hash_str_find_ptr(&class_type->function_table, "key", siz… in spl_array_object_new_ex() 252 …class_type->iterator_funcs.zf_current = zend_hash_str_find_ptr(&class_type->function_table, "curre… in spl_array_object_new_ex() 253 …class_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 D | spl_dllist.c | 370 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 D | spl_heap.c | 362 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 D | spl_observer.c | 230 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 D | spl_functions.h | 26 typedef zend_object* (*create_object_func_t)(zend_class_entry *class_type);
|
H A D | spl_iterators.c | 977 zend_object_std_init(&intern->std, class_type); in spl_RecursiveIteratorIterator_new_ex() 978 object_properties_init(&intern->std, class_type); in spl_RecursiveIteratorIterator_new_ex() 988 return spl_RecursiveIteratorIterator_new_ex(class_type, 0); in spl_RecursiveIteratorIterator_new() 1355 class_type->iterator_funcs.zf_valid = NULL; in spl_dual_it_gets_implemented() 1356 class_type->iterator_funcs.zf_current = NULL; in spl_dual_it_gets_implemented() 1357 class_type->iterator_funcs.zf_key = NULL; in spl_dual_it_gets_implemented() 1358 class_type->iterator_funcs.zf_next = NULL; in spl_dual_it_gets_implemented() 1359 class_type->iterator_funcs.zf_rewind = NULL; in spl_dual_it_gets_implemented() 1360 if (!class_type->iterator_funcs.funcs) { in spl_dual_it_gets_implemented() 2363 zend_object_std_init(&intern->std, class_type); in spl_dual_it_new() [all …]
|
H A D | spl_directory.c | 153 static zend_object *spl_filesystem_object_new_ex(zend_class_entry *class_type) in spl_filesystem_object_new_ex() argument 157 intern = ecalloc(1, sizeof(spl_filesystem_object) + zend_object_properties_size(class_type)); in spl_filesystem_object_new_ex() 162 zend_object_std_init(&intern->std, class_type); in spl_filesystem_object_new_ex() 163 object_properties_init(&intern->std, class_type); in spl_filesystem_object_new_ex() 172 static zend_object *spl_filesystem_object_new(zend_class_entry *class_type) in spl_filesystem_object_new() argument 174 return spl_filesystem_object_new_ex(class_type); in spl_filesystem_object_new() 179 static zend_object *spl_filesystem_object_new_check(zend_class_entry *class_type) in spl_filesystem_object_new_check() argument 181 spl_filesystem_object *ret = spl_filesystem_from_obj(spl_filesystem_object_new_ex(class_type)); in spl_filesystem_object_new_check()
|
/PHP-7.2/ext/standard/ |
H A D | incomplete_class.c | 103 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.2/ext/xsl/ |
H A D | php_xsl.c | 107 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.2/ext/dom/ |
H A D | php_dom.h | 102 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 D | php_dom.c | 502 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.2/ext/zend_test/ |
H A D | test.c | 129 static zend_object *zend_test_class_new(zend_class_entry *class_type) /* {{{ */ { in zend_test_class_new() argument 130 zend_object *obj = zend_objects_new(class_type); in zend_test_class_new()
|
/PHP-7.2/ext/fileinfo/ |
H A D | fileinfo.c | 99 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.2/ext/mysqli/ |
H A D | mysqli.c | 446 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.2/ext/sqlite3/ |
H A D | sqlite3.c | 2223 static zend_object *php_sqlite3_object_new(zend_class_entry *class_type) /* {{{ */ in php_sqlite3_object_new() argument 2233 zend_object_std_init(&intern->zo, class_type); in php_sqlite3_object_new() 2234 object_properties_init(&intern->zo, class_type); in php_sqlite3_object_new() 2242 static zend_object *php_sqlite3_stmt_object_new(zend_class_entry *class_type) /* {{{ */ in php_sqlite3_stmt_object_new() argument 2247 intern = ecalloc(1, sizeof(php_sqlite3_stmt) + zend_object_properties_size(class_type)); in php_sqlite3_stmt_object_new() 2249 zend_object_std_init(&intern->zo, class_type); in php_sqlite3_stmt_object_new() 2250 object_properties_init(&intern->zo, class_type); in php_sqlite3_stmt_object_new() 2258 static zend_object *php_sqlite3_result_object_new(zend_class_entry *class_type) /* {{{ */ in php_sqlite3_result_object_new() argument 2263 intern = ecalloc(1, sizeof(php_sqlite3_result) + zend_object_properties_size(class_type)); in php_sqlite3_result_object_new() 2265 zend_object_std_init(&intern->zo, class_type); in php_sqlite3_result_object_new() [all …]
|
/PHP-7.2/ext/date/ |
H A D | php_date.c | 2204 zend_object_std_init(&intern->std, class_type); in date_object_new_date_ex() 2206 object_properties_init(&intern->std, class_type); in date_object_new_date_ex() 2215 return date_object_new_date_ex(class_type, 1); in date_object_new_date() 2335 zend_object_std_init(&intern->std, class_type); in date_object_new_timezone_ex() 2337 object_properties_init(&intern->std, class_type); in date_object_new_timezone_ex() 2346 return date_object_new_timezone_ex(class_type, 1); in date_object_new_timezone() 2452 zend_object_std_init(&intern->std, class_type); in date_object_new_interval_ex() 2454 object_properties_init(&intern->std, class_type); in date_object_new_interval_ex() 2463 return date_object_new_interval_ex(class_type, 1); in date_object_new_interval() 2538 zend_object_std_init(&intern->std, class_type); in date_object_new_period_ex() [all …]
|
/PHP-7.2/ext/tidy/ |
H A D | tidy.c | 684 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.2/ext/xmlreader/ |
H A D | php_xmlreader.c | 385 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.2/ext/xmlwriter/ |
H A D | php_xmlwriter.c | 140 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()
|