/php-src/Zend/ |
H A D | zend_interfaces.c | 279 ZSTR_VAL(class_type->name), in zend_implement_traversable() 293 ZSTR_VAL(class_type->name)); in zend_implement_aggregate() 307 if (class_type->get_iterator in zend_implement_aggregate() 311 if (!class_type->parent || class_type->parent->get_iterator != class_type->get_iterator) { in zend_implement_aggregate() 335 ZSTR_VAL(class_type->name)); in zend_implement_iterator() 356 if (class_type->get_iterator in zend_implement_iterator() 359 if (!class_type->parent || class_type->parent->get_iterator != class_type->get_iterator) { in zend_implement_iterator() 467 if (class_type->parent in zend_implement_serializable() 468 && (class_type->parent->serialize || class_type->parent->unserialize) in zend_implement_serializable() 472 if (!class_type->serialize) { in zend_implement_serializable() [all …]
|
H A D | zend_API.c | 1440 if (c->ce == class_type) { in zend_separate_class_constants_table() 1526 ce_flags = class_type->ce_flags; in zend_update_class_constants() 1545 if (class_type->parent) { in zend_update_class_constants() 1567 if (c->ce != class_type) { in zend_update_class_constants() 1585 zend_class_init_statics(class_type); in zend_update_class_constants() 1636 …if (class_type->type == ZEND_USER_CLASS && class_type->ce_flags & ZEND_ACC_ENUM && class_type->enu… in zend_update_class_constants() 1649 class_type->ce_flags = ce_flags; in zend_update_class_constants() 1822 if (class_type->create_object == NULL) { in _object_and_properties_init() 1832 ZVAL_OBJ(arg, class_type->create_object(class_type)); in _object_and_properties_init() 1897 class_type, in object_init_with_constructor() [all …]
|
H A D | zend_enum.c | 127 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 D | zend_exceptions.c | 58 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() 258 static zend_object *zend_default_exception_new(zend_class_entry *class_type) /* {{{ */ in zend_default_exception_new() argument 265 zend_object *object = zend_objects_new(class_type); in zend_default_exception_new() 266 object_properties_init(object, class_type); in zend_default_exception_new() 279 if (EXPECTED((class_type != zend_ce_parse_error && class_type != zend_ce_compile_error) in zend_default_exception_new()
|
H A D | zend_lazy_objects.h | 62 zend_class_entry *class_type, zval *initializer_zv,
|
/php-src/ext/curl/ |
H A D | share.c | 139 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 D | multi.c | 537 static zend_object *curl_multi_create_object(zend_class_entry *class_type) { in curl_multi_create_object() argument 538 php_curlm *intern = zend_object_alloc(sizeof(php_curlm), class_type); in curl_multi_create_object() 540 zend_object_std_init(&intern->std, class_type); in curl_multi_create_object() 541 object_properties_init(&intern->std, class_type); in curl_multi_create_object()
|
/php-src/ext/standard/ |
H A D | incomplete_class.c | 99 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/sysvsem/ |
H A D | sysvsem.c | 93 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/shmop/ |
H A D | shmop.c | 82 static zend_object *shmop_create_object(zend_class_entry *class_type) in shmop_create_object() argument 84 php_shmop *intern = zend_object_alloc(sizeof(php_shmop), class_type); in shmop_create_object() 86 zend_object_std_init(&intern->std, class_type); in shmop_create_object() 87 object_properties_init(&intern->std, class_type); in shmop_create_object()
|
/php-src/ext/enchant/ |
H A D | enchant.c | 59 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/mysqli/ |
H A D | mysqli.c | 366 PHP_MYSQLI_EXPORT(zend_object *) mysqli_objects_new(zend_class_entry *class_type) in mysqli_objects_new() argument 372 intern = zend_object_alloc(sizeof(mysqli_object), class_type); in mysqli_objects_new() 374 mysqli_base_class = class_type; in mysqli_objects_new() 381 zend_object_std_init(&intern->zo, class_type); in mysqli_objects_new() 382 object_properties_init(&intern->zo, class_type); in mysqli_objects_new() 385 if (instanceof_function(class_type, mysqli_link_class_entry)) { in mysqli_objects_new() 387 } else if (instanceof_function(class_type, mysqli_driver_class_entry)) { /* driver object */ in mysqli_objects_new() 389 } else if (instanceof_function(class_type, mysqli_stmt_class_entry)) { /* stmt object */ in mysqli_objects_new() 391 } else if (instanceof_function(class_type, mysqli_result_class_entry)) { /* result object */ in mysqli_objects_new() 393 } else if (instanceof_function(class_type, mysqli_warning_class_entry)) { /* warning object */ in mysqli_objects_new()
|
/php-src/ext/spl/ |
H A D | spl_observer.c | 252 #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 D | spl_dllist.c | 309 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 D | spl_heap.c | 417 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 420 zend_class_entry *parent = class_type; in spl_heap_object_new_ex() 425 zend_object_std_init(&intern->std, class_type); in spl_heap_object_new_ex() 426 object_properties_init(&intern->std, class_type); in spl_heap_object_new_ex() 466 …intern->fptr_cmp = zend_hash_str_find_ptr(&class_type->function_table, "compare", sizeof("compare"… in spl_heap_object_new_ex() 471 intern->fptr_count = zend_hash_find_ptr(&class_type->function_table, ZSTR_KNOWN(ZEND_STR_COUNT)); in spl_heap_object_new_ex() 481 static zend_object *spl_heap_object_new(zend_class_entry *class_type) /* {{{ */ in spl_heap_object_new() argument 483 return spl_heap_object_new_ex(class_type, NULL, 0); in spl_heap_object_new()
|
H A D | spl_fixedarray.c | 270 static zend_object *spl_fixedarray_object_new_ex(zend_class_entry *class_type, zend_object *orig, b… in spl_fixedarray_object_new_ex() argument 273 zend_class_entry *parent = class_type; in spl_fixedarray_object_new_ex() 278 zend_object_std_init(&intern->std, class_type); in spl_fixedarray_object_new_ex() 279 object_properties_init(&intern->std, class_type); in spl_fixedarray_object_new_ex() 299 …zend_function *fptr_count = zend_hash_find_ptr(&class_type->function_table, ZSTR_KNOWN(ZEND_STR_CO… in spl_fixedarray_object_new_ex() 309 static zend_object *spl_fixedarray_new(zend_class_entry *class_type) in spl_fixedarray_new() argument 311 return spl_fixedarray_object_new_ex(class_type, NULL, 0); in spl_fixedarray_new()
|
H A D | spl_array.c | 139 static zend_object *spl_array_object_new_ex(zend_class_entry *class_type, zend_object *orig, int cl… in spl_array_object_new_ex() argument 142 zend_class_entry *parent = class_type; in spl_array_object_new_ex() 147 zend_object_std_init(&intern->std, class_type); in spl_array_object_new_ex() 148 object_properties_init(&intern->std, class_type); in spl_array_object_new_ex() 163 } else if (instanceof_function(class_type, spl_ce_ArrayObject)) { in spl_array_object_new_ex() 172 ZEND_ASSERT(instanceof_function(class_type, spl_ce_ArrayIterator)); in spl_array_object_new_ex() 197 …intern->fptr_offset_get = zend_hash_str_find_ptr(&class_type->function_table, "offsetget", sizeof(… in spl_array_object_new_ex() 201 …intern->fptr_offset_set = zend_hash_str_find_ptr(&class_type->function_table, "offsetset", sizeof(… in spl_array_object_new_ex() 214 intern->fptr_count = zend_hash_find_ptr(&class_type->function_table, ZSTR_KNOWN(ZEND_STR_COUNT)); in spl_array_object_new_ex() 226 static zend_object *spl_array_object_new(zend_class_entry *class_type) in spl_array_object_new() argument [all …]
|
/php-src/ext/xsl/ |
H A D | php_xsl.c | 108 zend_object *xsl_objects_new(zend_class_entry *class_type) in xsl_objects_new() argument 112 intern = zend_object_alloc(sizeof(xsl_object), class_type); in xsl_objects_new() 115 zend_object_std_init(&intern->std, class_type); in xsl_objects_new() 116 object_properties_init(&intern->std, class_type); in xsl_objects_new()
|
/php-src/ext/fileinfo/ |
H A D | fileinfo.c | 84 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/sysvshm/ |
H A D | sysvshm.c | 44 static zend_object *sysvshm_create_object(zend_class_entry *class_type) { in sysvshm_create_object() argument 45 sysvshm_shm *intern = zend_object_alloc(sizeof(sysvshm_shm), class_type); in sysvshm_create_object() 47 zend_object_std_init(&intern->std, class_type); in sysvshm_create_object() 48 object_properties_init(&intern->std, class_type); in sysvshm_create_object()
|
/php-src/ext/sysvmsg/ |
H A D | sysvmsg.c | 76 static zend_object *sysvmsg_queue_create_object(zend_class_entry *class_type) { in sysvmsg_queue_create_object() argument 77 sysvmsg_queue_t *intern = zend_object_alloc(sizeof(sysvmsg_queue_t), class_type); in sysvmsg_queue_create_object() 79 zend_object_std_init(&intern->std, class_type); in sysvmsg_queue_create_object() 80 object_properties_init(&intern->std, class_type); in sysvmsg_queue_create_object()
|
/php-src/ext/dom/ |
H A D | php_dom.c | 260 dest_doc->class_type = source_doc->class_type; in dom_copy_document_ref() 580 nodeobj->document->class_type = new_class; in dom_import_simplexml_common() 689 zend_object_std_init(&intern->dom.std, class_type); in dom_token_list_new() 690 object_properties_init(&intern->dom.std, class_type); in dom_token_list_new() 1497 zend_class_entry *base_class = class_type; in dom_objects_set_class_ex() 1504 zend_object_std_init(&intern->std, class_type); in dom_objects_set_class_ex() 1505 object_properties_init(&intern->std, class_type); in dom_objects_set_class_ex() 1511 dom_objects_set_class_ex(class_type, intern); in dom_objects_set_class() 1526 dom_objects_set_class_ex(class_type, &intern->dom); in dom_objects_namespace_node_new() 1551 zend_object_std_init(&intern->dom.std, class_type); in dom_xpath_objects_new() [all …]
|
H A D | internal_helpers.h | 69 return doc_ptr->class_type == PHP_LIBXML_CLASS_MODERN ? 1 : 2; in DOM_DEF_GET_CE_FUNC()
|
/php-src/ext/json/ |
H A D | json.c | 38 …int php_json_implement_json_serializable(zend_class_entry *interface, zend_class_entry *class_type) in ZEND_DECLARE_MODULE_GLOBALS() 40 class_type->ce_flags |= ZEND_ACC_USE_GUARDS; in ZEND_DECLARE_MODULE_GLOBALS()
|
/php-src/ext/tidy/ |
H A D | tidy.c | 421 static zend_object *tidy_object_new(zend_class_entry *class_type, zend_object_handlers *handlers, t… in tidy_object_new() argument 425 intern = zend_object_alloc(sizeof(PHPTidyObj), class_type); in tidy_object_new() 426 zend_object_std_init(&intern->std, class_type); in tidy_object_new() 427 object_properties_init(&intern->std, class_type); in tidy_object_new() 462 static zend_object *tidy_object_new_node(zend_class_entry *class_type) in tidy_object_new_node() argument 464 return tidy_object_new(class_type, &tidy_object_handlers_node, is_node); in tidy_object_new_node() 467 static zend_object *tidy_object_new_doc(zend_class_entry *class_type) in tidy_object_new_doc() argument 469 return tidy_object_new(class_type, &tidy_object_handlers_doc, is_doc); in tidy_object_new_doc()
|