Home
last modified time | relevance | path

Searched refs:class_type (Results 1 – 25 of 58) sorted by path

123

/php-src/Zend/
H A Dzend.h195 zend_object* (*create_object)(zend_class_entry *class_type);
196 …int (*interface_gets_implemented)(zend_class_entry *iface, zend_class_entry *class_type); /* a cla…
H A Dzend_API.c1434 if (c->ce == class_type) { in zend_separate_class_constants_table()
1520 ce_flags = class_type->ce_flags; in zend_update_class_constants()
1539 if (class_type->parent) { in zend_update_class_constants()
1561 if (c->ce != class_type) { in zend_update_class_constants()
1579 zend_class_init_statics(class_type); in zend_update_class_constants()
1630 …if (class_type->type == ZEND_USER_CLASS && class_type->ce_flags & ZEND_ACC_ENUM && class_type->enu… in zend_update_class_constants()
1643 class_type->ce_flags = ce_flags; in zend_update_class_constants()
1652 if (class_type->default_properties_count) { in _object_properties_init()
1821 if (class_type->create_object == NULL) { in _object_and_properties_init()
1831 ZVAL_OBJ(arg, class_type->create_object(class_type)); in _object_and_properties_init()
[all …]
H A Dzend_API.h447 ZEND_API zend_result zend_update_class_constants(zend_class_entry *class_type);
448 ZEND_API HashTable *zend_separate_class_constants_table(zend_class_entry *class_type);
541 ZEND_API void object_properties_init(zend_object *object, zend_class_entry *class_type);
H A Dzend_closures.c538 static zend_object *zend_closure_new(zend_class_entry *class_type) /* {{{ */ in zend_closure_new() argument
545 zend_object_std_init(&closure->std, class_type); in zend_closure_new()
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()
H A Dzend_generators.c33 static zend_object *zend_generator_create(zend_class_entry *class_type);
405 static zend_object *zend_generator_create(zend_class_entry *class_type) /* {{{ */ in zend_generator_create() argument
421 zend_object_std_init(&generator->std, class_type); in zend_generator_create()
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_object_handlers.c1549 ZEND_API void zend_class_init_statics(zend_class_entry *class_type) /* {{{ */ in zend_class_init_statics() argument
1554 if (class_type->default_static_members_count && !CE_STATIC_MEMBERS(class_type)) { in zend_class_init_statics()
1555 if (class_type->parent) { in zend_class_init_statics()
1556 zend_class_init_statics(class_type->parent); in zend_class_init_statics()
1559 …ZEND_MAP_PTR_SET(class_type->static_members_table, emalloc(sizeof(zval) * class_type->default_stat… in zend_class_init_statics()
1560 for (i = 0; i < class_type->default_static_members_count; i++) { in zend_class_init_statics()
1561 p = &class_type->default_static_members_table[i]; in zend_class_init_statics()
1563 zval *q = &CE_STATIC_MEMBERS(class_type->parent)[i]; in zend_class_init_statics()
1565 ZVAL_INDIRECT(&CE_STATIC_MEMBERS(class_type)[i], q); in zend_class_init_statics()
1567 ZVAL_COPY_OR_DUP(&CE_STATIC_MEMBERS(class_type)[i], p); in zend_class_init_statics()
/php-src/ext/curl/
H A Dinterface.c234 static zend_object *curl_create_object(zend_class_entry *class_type);
423 static zend_object *curl_create_object(zend_class_entry *class_type) { in curl_create_object() argument
424 php_curl *intern = zend_object_alloc(sizeof(php_curl), class_type); in curl_create_object()
426 zend_object_std_init(&intern->std, class_type); in curl_create_object()
427 object_properties_init(&intern->std, class_type); in curl_create_object()
H A Dmulti.c505 static zend_object *curl_multi_create_object(zend_class_entry *class_type) { in curl_multi_create_object() argument
506 php_curlm *intern = zend_object_alloc(sizeof(php_curlm), class_type); in curl_multi_create_object()
508 zend_object_std_init(&intern->std, class_type); in curl_multi_create_object()
509 object_properties_init(&intern->std, class_type); in curl_multi_create_object()
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()
/php-src/ext/date/
H A Dphp_date.c339 static zend_object *date_object_new_date(zend_class_entry *class_type);
340 static zend_object *date_object_new_timezone(zend_class_entry *class_type);
342 static zend_object *date_object_new_period(zend_class_entry *class_type);
1855 zend_object_std_init(&intern->std, class_type); in date_object_new_date()
1856 object_properties_init(&intern->std, class_type); in date_object_new_date()
1995 zend_object_std_init(&intern->std, class_type); in date_object_new_timezone()
1996 object_properties_init(&intern->std, class_type); in date_object_new_timezone()
2159 zend_object_std_init(&intern->std, class_type); in date_object_new_interval()
2160 object_properties_init(&intern->std, class_type); in date_object_new_interval()
2250 zend_object_std_init(&intern->std, class_type); in date_object_new_period()
[all …]
/php-src/ext/dom/
H A Ddocument.c1455 php_libxml_class_type class_type = PHP_LIBXML_CLASS_LEGACY; in php_dom_finish_loading_document() local
1461 class_type = doc_ptr->class_type; in php_dom_finish_loading_document()
1476 intern->document->class_type = class_type; in php_dom_finish_loading_document()
H A Ddomimplementation.c309 intern->document->class_type = PHP_LIBXML_CLASS_MODERN; in PHP_METHOD()
410 intern->document->class_type = PHP_LIBXML_CLASS_MODERN; in PHP_METHOD()
H A Dhtml_document.c759 intern->document->class_type = PHP_LIBXML_CLASS_MODERN; in PHP_METHOD()
919 intern->document->class_type = PHP_LIBXML_CLASS_MODERN; in PHP_METHOD()
1139 intern->document->class_type = PHP_LIBXML_CLASS_MODERN; in PHP_METHOD()
H A Dphp_dom.c248 dest_doc->class_type = source_doc->class_type; in dom_copy_document_ref()
530 nodeobj->document->class_type = new_class; in dom_import_simplexml_common()
1394 zend_class_entry *base_class = class_type; in dom_objects_set_class_ex()
1401 zend_object_std_init(&intern->std, class_type); in dom_objects_set_class_ex()
1402 object_properties_init(&intern->std, class_type); in dom_objects_set_class_ex()
1408 dom_objects_set_class_ex(class_type, intern); in dom_objects_set_class()
1415 dom_object *intern = dom_objects_set_class(class_type); in dom_objects_new()
1423 dom_objects_set_class_ex(class_type, &intern->dom); in dom_objects_namespace_node_new()
1450 zend_object_std_init(&intern->dom.std, class_type); in dom_xpath_objects_new()
1451 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);
H A Dxml_common.h115 return document != NULL && document->class_type == PHP_LIBXML_CLASS_MODERN; in php_dom_follow_spec_doc_ref()
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()
/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/ffi/
H A Dffi.c256 static zend_object *zend_ffi_cdata_new(zend_class_entry *class_type) /* {{{ */ in zend_ffi_cdata_new() argument
262 zend_ffi_object_init(&cdata->std, class_type); in zend_ffi_cdata_new()
2191 static zend_object *zend_ffi_ctype_new(zend_class_entry *class_type) /* {{{ */ in zend_ffi_ctype_new() argument
2197 zend_ffi_object_init(&ctype->std, class_type); in zend_ffi_ctype_new()
2281 static zend_object *zend_ffi_new(zend_class_entry *class_type) /* {{{ */ in zend_ffi_new() argument
2287 zend_ffi_object_init(&ffi->std, class_type); in zend_ffi_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/gd/
H A Dgd.c172 zend_object *php_gd_image_object_create(zend_class_entry *class_type) in php_gd_image_object_create() argument
174 size_t block_len = sizeof(php_gd_image_object) + zend_object_properties_size(class_type); in php_gd_image_object_create()
178 zend_object_std_init(&intern->std, class_type); in php_gd_image_object_create()
179 object_properties_init(&intern->std, class_type); in php_gd_image_object_create()
/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()

Completed in 190 milliseconds

123