Home
last modified time | relevance | path

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

123

/php-src/Zend/
H A Dzend_interfaces.c278 ZSTR_VAL(class_type->name), in zend_implement_traversable()
292 ZSTR_VAL(class_type->name)); in zend_implement_aggregate()
306 if (class_type->get_iterator && class_type->get_iterator != zend_user_it_get_new_iterator) { in zend_implement_aggregate()
308 if (!class_type->parent || class_type->parent->get_iterator != class_type->get_iterator) { in zend_implement_aggregate()
332 ZSTR_VAL(class_type->name)); in zend_implement_iterator()
353 if (class_type->get_iterator && class_type->get_iterator != zend_user_it_get_iterator) { in zend_implement_iterator()
354 if (!class_type->parent || class_type->parent->get_iterator != class_type->get_iterator) { in zend_implement_iterator()
462 if (class_type->parent in zend_implement_serializable()
463 && (class_type->parent->serialize || class_type->parent->unserialize) in zend_implement_serializable()
467 if (!class_type->serialize) { in zend_implement_serializable()
[all …]
H A Dzend_API.c1414 if (c->ce == class_type) { in zend_separate_class_constants_table()
1500 ce_flags = class_type->ce_flags; in zend_update_class_constants()
1519 if (class_type->parent) { in zend_update_class_constants()
1541 if (c->ce != class_type) { in zend_update_class_constants()
1559 zend_class_init_statics(class_type); in zend_update_class_constants()
1610 …if (class_type->type == ZEND_USER_CLASS && class_type->ce_flags & ZEND_ACC_ENUM && class_type->enu… in zend_update_class_constants()
1623 class_type->ce_flags = ce_flags; in zend_update_class_constants()
1632 if (class_type->default_properties_count) { in _object_properties_init()
1801 if (class_type->create_object == NULL) { in _object_and_properties_init()
1811 ZVAL_OBJ(arg, class_type->create_object(class_type)); in _object_and_properties_init()
[all …]
H A Dzend_enum.c127 static int zend_implement_unit_enum(zend_class_entry *interface, zend_class_entry *class_type) in zend_implement_unit_enum() argument
129 if (class_type->ce_flags & ZEND_ACC_ENUM) { in zend_implement_unit_enum()
134 ZSTR_VAL(class_type->name), in zend_implement_unit_enum()
140 static int zend_implement_backed_enum(zend_class_entry *interface, zend_class_entry *class_type) in zend_implement_backed_enum() argument
142 if (!(class_type->ce_flags & ZEND_ACC_ENUM)) { in zend_implement_backed_enum()
144 ZSTR_VAL(class_type->name), in zend_implement_backed_enum()
149 if (class_type->enum_backing_type == IS_UNDEF) { in zend_implement_backed_enum()
151 ZSTR_VAL(class_type->name), in zend_implement_backed_enum()
H A Dzend_exceptions.c58 static int zend_implement_throwable(zend_class_entry *interface, zend_class_entry *class_type) in zend_implement_throwable() argument
62 zend_class_entry *root = class_type; in zend_implement_throwable()
71 bool can_extend = (class_type->ce_flags & ZEND_ACC_ENUM) == 0; in zend_implement_throwable()
77 zend_get_object_type_uc(class_type), in zend_implement_throwable()
78 ZSTR_VAL(class_type->name), in zend_implement_throwable()
255 static zend_object *zend_default_exception_new(zend_class_entry *class_type) /* {{{ */ in zend_default_exception_new() argument
262 zend_object *object = zend_objects_new(class_type); in zend_default_exception_new()
263 object_properties_init(object, class_type); in zend_default_exception_new()
276 if (EXPECTED((class_type != zend_ce_parse_error && class_type != zend_ce_compile_error) in zend_default_exception_new()
/php-src/ext/curl/
H A Dshare.c139 static zend_object *curl_share_create_object(zend_class_entry *class_type) { in curl_share_create_object() argument
140 php_curlsh *intern = zend_object_alloc(sizeof(php_curlsh), class_type); in curl_share_create_object()
142 zend_object_std_init(&intern->std, class_type); in curl_share_create_object()
143 object_properties_init(&intern->std, class_type); in curl_share_create_object()
H A Dmulti.c513 static zend_object *curl_multi_create_object(zend_class_entry *class_type) { in curl_multi_create_object() argument
514 php_curlm *intern = zend_object_alloc(sizeof(php_curlm), class_type); in curl_multi_create_object()
516 zend_object_std_init(&intern->std, class_type); in curl_multi_create_object()
517 object_properties_init(&intern->std, class_type); in curl_multi_create_object()
/php-src/ext/standard/
H A Dincomplete_class.c99 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-src/ext/shmop/
H A Dshmop.c81 static zend_object *shmop_create_object(zend_class_entry *class_type) in shmop_create_object() argument
83 php_shmop *intern = zend_object_alloc(sizeof(php_shmop), class_type); in shmop_create_object()
85 zend_object_std_init(&intern->std, class_type); in shmop_create_object()
86 object_properties_init(&intern->std, class_type); in shmop_create_object()
/php-src/ext/sysvsem/
H A Dsysvsem.c93 static zend_object *sysvsem_create_object(zend_class_entry *class_type) { in sysvsem_create_object() argument
94 sysvsem_sem *intern = zend_object_alloc(sizeof(sysvsem_sem), class_type); in sysvsem_create_object()
96 zend_object_std_init(&intern->std, class_type); in sysvsem_create_object()
97 object_properties_init(&intern->std, class_type); in sysvsem_create_object()
/php-src/ext/enchant/
H A Denchant.c59 static zend_object *enchant_broker_create_object(zend_class_entry *class_type) { in enchant_broker_create_object() argument
60 enchant_broker *intern = zend_object_alloc(sizeof(enchant_broker), class_type); in enchant_broker_create_object()
62 zend_object_std_init(&intern->std, class_type); in enchant_broker_create_object()
63 object_properties_init(&intern->std, class_type); in enchant_broker_create_object()
77 static zend_object *enchant_dict_create_object(zend_class_entry *class_type) { in enchant_dict_create_object() argument
78 enchant_dict *intern = zend_object_alloc(sizeof(enchant_dict), class_type); in enchant_dict_create_object()
80 zend_object_std_init(&intern->std, class_type); in enchant_dict_create_object()
81 object_properties_init(&intern->std, class_type); in enchant_dict_create_object()
/php-src/ext/spl/
H A Dspl_functions.h22 typedef zend_object* (*create_object_func_t)(zend_class_entry *class_type);
H A Dspl_observer.c252 #define SPL_OBJECT_STORAGE_CLASS_HAS_OVERRIDE(class_type, zstr_method) \ argument
253 (class_type->arrayaccess_funcs_ptr && class_type->arrayaccess_funcs_ptr->zstr_method)
258 zend_class_entry *parent = class_type; in spl_object_storage_new_ex()
264 zend_object_std_init(&intern->std, class_type); in spl_object_storage_new_ex()
265 object_properties_init(&intern->std, class_type); in spl_object_storage_new_ex()
273 if (class_type != spl_ce_SplObjectStorage) { in spl_object_storage_new_ex()
279 SPL_OBJECT_STORAGE_CLASS_HAS_OVERRIDE(class_type, zf_offsetget) || in spl_object_storage_new_ex()
280 SPL_OBJECT_STORAGE_CLASS_HAS_OVERRIDE(class_type, zf_offsetexists)) { in spl_object_storage_new_ex()
285 SPL_OBJECT_STORAGE_CLASS_HAS_OVERRIDE(class_type, zf_offsetset)) { in spl_object_storage_new_ex()
290 SPL_OBJECT_STORAGE_CLASS_HAS_OVERRIDE(class_type, zf_offsetunset)) { in spl_object_storage_new_ex()
[all …]
H A Dspl_dllist.c309 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
312 zend_class_entry *parent = class_type; in spl_dllist_object_new_ex()
317 zend_object_std_init(&intern->std, class_type); in spl_dllist_object_new_ex()
318 object_properties_init(&intern->std, class_type); in spl_dllist_object_new_ex()
363 …intern->fptr_offset_get = zend_hash_str_find_ptr(&class_type->function_table, "offsetget", sizeof(… in spl_dllist_object_new_ex()
367 …intern->fptr_offset_set = zend_hash_str_find_ptr(&class_type->function_table, "offsetset", sizeof(… in spl_dllist_object_new_ex()
371 …intern->fptr_offset_has = zend_hash_str_find_ptr(&class_type->function_table, "offsetexists", size… in spl_dllist_object_new_ex()
375 …intern->fptr_offset_del = zend_hash_str_find_ptr(&class_type->function_table, "offsetunset", sizeo… in spl_dllist_object_new_ex()
380 intern->fptr_count = zend_hash_find_ptr(&class_type->function_table, ZSTR_KNOWN(ZEND_STR_COUNT)); in spl_dllist_object_new_ex()
390 static zend_object *spl_dllist_object_new(zend_class_entry *class_type) /* {{{ */ in spl_dllist_object_new() argument
[all …]
H A Dspl_heap.c406 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
409 zend_class_entry *parent = class_type; in spl_heap_object_new_ex()
414 zend_object_std_init(&intern->std, class_type); in spl_heap_object_new_ex()
415 object_properties_init(&intern->std, class_type); in spl_heap_object_new_ex()
455 …intern->fptr_cmp = zend_hash_str_find_ptr(&class_type->function_table, "compare", sizeof("compare"… in spl_heap_object_new_ex()
460 intern->fptr_count = zend_hash_find_ptr(&class_type->function_table, ZSTR_KNOWN(ZEND_STR_COUNT)); in spl_heap_object_new_ex()
470 static zend_object *spl_heap_object_new(zend_class_entry *class_type) /* {{{ */ in spl_heap_object_new() argument
472 return spl_heap_object_new_ex(class_type, NULL, 0); in spl_heap_object_new()
H A Dspl_fixedarray.c274 static zend_object *spl_fixedarray_object_new_ex(zend_class_entry *class_type, zend_object *orig, b… in spl_fixedarray_object_new_ex() argument
277 zend_class_entry *parent = class_type; in spl_fixedarray_object_new_ex()
282 zend_object_std_init(&intern->std, class_type); in spl_fixedarray_object_new_ex()
283 object_properties_init(&intern->std, class_type); in spl_fixedarray_object_new_ex()
303 …zend_function *fptr_count = zend_hash_find_ptr(&class_type->function_table, ZSTR_KNOWN(ZEND_STR_CO… in spl_fixedarray_object_new_ex()
313 static zend_object *spl_fixedarray_new(zend_class_entry *class_type) in spl_fixedarray_new() argument
315 return spl_fixedarray_object_new_ex(class_type, NULL, 0); in spl_fixedarray_new()
/php-src/ext/mysqli/
H A Dmysqli.c367 PHP_MYSQLI_EXPORT(zend_object *) mysqli_objects_new(zend_class_entry *class_type) in mysqli_objects_new() argument
373 intern = zend_object_alloc(sizeof(mysqli_object), class_type); in mysqli_objects_new()
375 mysqli_base_class = class_type; in mysqli_objects_new()
382 zend_object_std_init(&intern->zo, class_type); in mysqli_objects_new()
383 object_properties_init(&intern->zo, class_type); in mysqli_objects_new()
386 if (instanceof_function(class_type, mysqli_link_class_entry)) { in mysqli_objects_new()
388 } else if (instanceof_function(class_type, mysqli_driver_class_entry)) { /* driver object */ in mysqli_objects_new()
390 } else if (instanceof_function(class_type, mysqli_stmt_class_entry)) { /* stmt object */ in mysqli_objects_new()
392 } else if (instanceof_function(class_type, mysqli_result_class_entry)) { /* result object */ in mysqli_objects_new()
394 } else if (instanceof_function(class_type, mysqli_warning_class_entry)) { /* warning object */ in mysqli_objects_new()
/php-src/ext/fileinfo/
H A Dfileinfo.c84 PHP_FILEINFO_API zend_object *finfo_objects_new(zend_class_entry *class_type) in finfo_objects_new() argument
88 intern = zend_object_alloc(sizeof(finfo_object), class_type); in finfo_objects_new()
90 zend_object_std_init(&intern->zo, class_type); in finfo_objects_new()
91 object_properties_init(&intern->zo, class_type); in finfo_objects_new()
/php-src/ext/xsl/
H A Dphp_xsl.c109 zend_object *xsl_objects_new(zend_class_entry *class_type) in xsl_objects_new() argument
113 intern = zend_object_alloc(sizeof(xsl_object), class_type); in xsl_objects_new()
116 zend_object_std_init(&intern->std, class_type); in xsl_objects_new()
117 object_properties_init(&intern->std, class_type); in xsl_objects_new()
/php-src/ext/sysvshm/
H A Dsysvshm.c45 static zend_object *sysvshm_create_object(zend_class_entry *class_type) { in sysvshm_create_object() argument
46 sysvshm_shm *intern = zend_object_alloc(sizeof(sysvshm_shm), class_type); in sysvshm_create_object()
48 zend_object_std_init(&intern->std, class_type); in sysvshm_create_object()
49 object_properties_init(&intern->std, class_type); in sysvshm_create_object()
/php-src/ext/sysvmsg/
H A Dsysvmsg.c77 static zend_object *sysvmsg_queue_create_object(zend_class_entry *class_type) { in sysvmsg_queue_create_object() argument
78 sysvmsg_queue_t *intern = zend_object_alloc(sizeof(sysvmsg_queue_t), class_type); in sysvmsg_queue_create_object()
80 zend_object_std_init(&intern->std, class_type); in sysvmsg_queue_create_object()
81 object_properties_init(&intern->std, class_type); in sysvmsg_queue_create_object()
/php-src/ext/dom/
H A Dxml_document.c121 intern->document->class_type = PHP_LIBXML_CLASS_MODERN; in PHP_METHOD()
230 intern->document->class_type = PHP_LIBXML_CLASS_MODERN; in load_from_helper()
H A Dphp_dom.c246 dest_doc->class_type = source_doc->class_type; in dom_copy_document_ref()
528 nodeobj->document->class_type = new_class; in dom_import_simplexml_common()
1376 zend_class_entry *base_class = class_type; in dom_objects_set_class_ex()
1383 zend_object_std_init(&intern->std, class_type); in dom_objects_set_class_ex()
1384 object_properties_init(&intern->std, class_type); in dom_objects_set_class_ex()
1390 dom_objects_set_class_ex(class_type, intern); in dom_objects_set_class()
1397 dom_object *intern = dom_objects_set_class(class_type); in dom_objects_new()
1405 dom_objects_set_class_ex(class_type, &intern->dom); in dom_objects_namespace_node_new()
1432 zend_object_std_init(&intern->dom.std, class_type); in dom_xpath_objects_new()
1433 object_properties_init(&intern->dom.std, class_type); in dom_xpath_objects_new()
[all …]
H A Dphp_dom.h128 zend_object *dom_objects_new(zend_class_entry *class_type);
129 zend_object *dom_nnodemap_objects_new(zend_class_entry *class_type);
131 zend_object *dom_xpath_objects_new(zend_class_entry *class_type);
/php-src/ext/json/
H A Djson.c40 …int php_json_implement_json_serializable(zend_class_entry *interface, zend_class_entry *class_type) in ZEND_DECLARE_MODULE_GLOBALS()
42 class_type->ce_flags |= ZEND_ACC_USE_GUARDS; in ZEND_DECLARE_MODULE_GLOBALS()
/php-src/ext/tidy/
H A Dtidy.c403 static zend_object *tidy_object_new(zend_class_entry *class_type, zend_object_handlers *handlers, t… in tidy_object_new() argument
407 intern = zend_object_alloc(sizeof(PHPTidyObj), class_type); in tidy_object_new()
408 zend_object_std_init(&intern->std, class_type); in tidy_object_new()
409 object_properties_init(&intern->std, class_type); in tidy_object_new()
444 static zend_object *tidy_object_new_node(zend_class_entry *class_type) in tidy_object_new_node() argument
446 return tidy_object_new(class_type, &tidy_object_handlers_node, is_node); in tidy_object_new_node()
449 static zend_object *tidy_object_new_doc(zend_class_entry *class_type) in tidy_object_new_doc() argument
451 return tidy_object_new(class_type, &tidy_object_handlers_doc, is_doc); in tidy_object_new_doc()

Completed in 116 milliseconds

123