/PHP-7.4/ext/date/ |
H A D | php_date.c | 1901 zend_object_iterator intern; member 2231 return &intern->std; in date_object_new_date() 2361 return &intern->std; in date_object_new_timezone() 2506 return &intern->std; in date_object_new_interval() 2582 return &intern->std; in date_object_new_period() 2615 if (intern->time) { in date_object_free_storage_date() 2616 timelib_time_dtor(intern->time); in date_object_free_storage_date() 2644 if (intern->start) { in date_object_free_storage_period() 2648 if (intern->current) { in date_object_free_storage_period() 2652 if (intern->end) { in date_object_free_storage_period() [all …]
|
/PHP-7.4/ext/mysqli/ |
H A D | mysqli.c | 200 mysqli_object *intern = php_mysqli_fetch_object(object); in mysqli_objects_free_storage() local 201 MYSQLI_RESOURCE *my_res = (MYSQLI_RESOURCE *)intern->ptr; in mysqli_objects_free_storage() 206 zend_object_std_dtor(&intern->zo); in mysqli_objects_free_storage() 216 mysqli_object *intern = php_mysqli_fetch_object(object); in mysqli_link_free_storage() local 458 mysqli_object *intern; in mysqli_objects_new() local 471 zend_object_std_init(&intern->zo, class_type); in mysqli_objects_new() 472 object_properties_init(&intern->zo, class_type); in mysqli_objects_new() 489 intern->zo.handlers = handlers; in mysqli_objects_new() 491 return &intern->zo; in mysqli_objects_new() 502 mysqli_object *intern = Z_MYSQLI_P(zv); in mysqli_convert_zv_to_mysqlnd() local [all …]
|
H A D | mysqli_nonapi.c | 740 mysqli_object *intern = Z_MYSQLI_P(elem); local 741 if (!(my_res = (MYSQLI_RESOURCE *)intern->ptr)) { 742 php_error_docref(NULL, E_WARNING, "[%d] Couldn't fetch %s", i, ZSTR_VAL(intern->zo.ce->name)); 747 …php_error_docref(NULL, E_WARNING, "Invalid object %d or resource %s", i, ZSTR_VAL(intern->zo.ce->n… 776 mysqli_object *intern = Z_MYSQLI_P(elem); local 777 if (!(my_res = (MYSQLI_RESOURCE *)intern->ptr)) { 778 php_error_docref(NULL, E_WARNING, "[%d] Couldn't fetch %s", i, ZSTR_VAL(intern->zo.ce->name)); 812 mysqli_object *intern = Z_MYSQLI_P(elem); local 813 mysql = (MY_MYSQL *)((MYSQLI_RESOURCE *)intern->ptr)->ptr;
|
H A D | php_mysqli_structs.h | 240 mysqli_object *intern = Z_MYSQLI_P(__id); \ 241 if (!(my_res = (MYSQLI_RESOURCE *)intern->ptr)) {\ 242 php_error_docref(NULL, E_WARNING, "Couldn't fetch %s", ZSTR_VAL(intern->zo.ce->name));\ 256 php_error_docref(NULL, E_WARNING, "Couldn't fetch %s", ZSTR_VAL(intern->zo.ce->name));\ 270 mysqli_object *intern = Z_MYSQLI_P(__id); \ 280 mysqli_object *intern = Z_MYSQLI_P(__id); \ 288 mysqli_object *intern = Z_MYSQLI_P(__id); \ 289 ((MYSQLI_RESOURCE *)intern->ptr)->status = __value; \ 294 mysqli_object *intern = Z_MYSQLI_P(__id); \ 295 efree(intern->ptr); \ [all …]
|
/PHP-7.4/ext/zip/ |
H A D | php_zip.c | 376 intern = obj->za; \ 377 if (!intern) { \ 1035 if (!intern) { in php_zip_object_free_storage() 1038 if (intern->za) { in php_zip_object_free_storage() 1056 intern->za = NULL; in php_zip_object_free_storage() 1075 return &intern->zo; in php_zip_object_new() 1436 struct zip *intern; local 1510 struct zip *intern; local 1538 struct zip *intern; local 1573 struct zip *intern; local [all …]
|
/PHP-7.4/ext/spl/ |
H A D | spl_fixedarray.c | 64 zend_user_iterator intern; member 199 if (intern->array.size > 0 && intern->array.elements) { in spl_fixedarray_object_free_storage() 222 intern->current = 0; in spl_fixedarray_object_new_ex() 223 intern->flags = 0; in spl_fixedarray_object_new_ex() 293 return &intern->std; in spl_fixedarray_object_new_ex() 528 if (intern->fptr_count) { in spl_fixedarray_object_count_elements() 709 intern->array = array; in SPL_METHOD() 930 intern->current++; in SPL_METHOD() 944 RETURN_BOOL(intern->current >= 0 && intern->current < intern->array.size); in SPL_METHOD() 958 intern->current = 0; in SPL_METHOD() [all …]
|
H A D | spl_directory.c | 112 intern->oth_handler->dtor(intern); in spl_filesystem_object_free_storage() 236 if (!intern->u.dir.dirp || !php_stream_readdir(intern->u.dir.dirp, &intern->u.dir.entry)) { in spl_filesystem_dir_read() 266 intern->_path = estrndup(path, intern->_path_len); in spl_filesystem_dir_open() 318 if (intern->file_name_len > 1 && IS_SLASH_AT(intern->file_name, intern->file_name_len-1)) { in spl_filesystem_file_open() 324 intern->file_name = estrndup(intern->file_name, intern->file_name_len); in spl_filesystem_file_open() 394 intern->oth_handler->clone(source, intern); in spl_filesystem_object_clone() 413 intern->file_name[intern->file_name_len-1] = 0; in spl_filesystem_info_set_filename() 519 intern->_path = estrndup(intern->_path, intern->_path_len); in spl_filesystem_object_create_type() 545 intern->_path = estrndup(intern->_path, intern->_path_len); in spl_filesystem_object_create_type() 2274 &intern->file_name, &intern->file_name_len, in SPL_METHOD() [all …]
|
H A D | spl_array.c | 125 intern = Z_SPLARRAY_P(&intern->array); in spl_array_is_object() 170 spl_array_object *intern; in spl_array_object_new_ex() local 179 intern->ar_flags = 0; in spl_array_object_new_ex() 264 return &intern->std; in spl_array_object_new_ex() 404 (intern->fptr_offset_get || (type == BP_VAR_IS && intern->fptr_offset_has))) { in spl_array_read_dimension_ex() 1439 intern->nApplyCount++; in spl_array_method() 1441 intern->nApplyCount--; in spl_array_method() 1450 intern->nApplyCount++; in spl_array_method() 1452 intern->nApplyCount--; in spl_array_method() 1459 intern->nApplyCount++; in spl_array_method() [all …]
|
H A D | spl_iterators.c | 596 sub_iter = intern->iterators[intern->level].iterator; in spl_recursive_it_it_construct() 1577 intern->inner.iterator = intern->inner.ce->get_iterator(intern->inner.ce, zobject, 0); in spl_dual_it_construct() 1675 intern->inner.iterator->funcs->get_current_key(intern->inner.iterator, &intern->current.key); in spl_dual_it_fetch() 1681 ZVAL_LONG(&intern->current.key, intern->current.pos); in spl_dual_it_fetch() 2052 …&intern->current.data, intern->u.regex.mode == REGIT_MODE_ALL_MATCHES, intern->u.regex.use_flags, … in SPL_METHOD() 2453 …if (intern->u.limit.count != -1 && intern->current.pos >= intern->u.limit.offset + intern->u.limit… in spl_limit_it_valid() 2469 if (pos >= intern->u.limit.offset + intern->u.limit.count && intern->u.limit.count != -1) { in spl_limit_it_seek() 2513 spl_limit_it_seek(intern, intern->u.limit.offset); in SPL_METHOD() 2525 …RETURN_BOOL((intern->u.limit.count == -1 || intern->current.pos < intern->u.limit.offset + intern-… in SPL_METHOD() 2537 …if (intern->u.limit.count == -1 || intern->current.pos < intern->u.limit.offset + intern->u.limit.… in SPL_METHOD() [all …]
|
H A D | spl_heap.c | 80 zend_user_iterator intern; member 423 return &intern->std; in spl_heap_object_new_ex() 462 return &intern->std; in spl_heap_object_new_ex() 611 spl_heap_object *intern; in SPL_METHOD() local 635 spl_heap_object *intern; in SPL_METHOD() local 660 spl_heap_object *intern; in SPL_METHOD() local 688 spl_heap_object *intern; in SPL_METHOD() local 715 spl_heap_object *intern; in SPL_METHOD() local 746 spl_heap_object *intern; in SPL_METHOD() local 759 intern->flags = value; in SPL_METHOD() [all …]
|
H A D | spl_dllist.c | 381 intern->flags = 0; in spl_dllist_object_new_ex() 391 intern->traverse_pointer = intern->llist->head; in spl_dllist_object_new_ex() 395 intern->traverse_pointer = intern->llist->head; in spl_dllist_object_new_ex() 402 intern->traverse_pointer = intern->llist->head; in spl_dllist_object_new_ex() 450 return &intern->std; in spl_dllist_object_new_ex() 544 if (intern->gc_data_count < intern->llist->count) { in spl_dllist_object_get_gc() 545 intern->gc_data_count = intern->llist->count; in spl_dllist_object_get_gc() 546 intern->gc_data = safe_erealloc(intern->gc_data, intern->gc_data_count, sizeof(zval), 0); in spl_dllist_object_get_gc() 1058 …spl_dllist_it_helper_move_forward(&intern->traverse_pointer, &intern->traverse_position, intern->l… in SPL_METHOD() 1072 …spl_dllist_it_helper_move_forward(&intern->traverse_pointer, &intern->traverse_position, intern->l… in SPL_METHOD() [all …]
|
/PHP-7.4/ext/dom/ |
H A D | element.c | 155 dom_object *intern; in PHP_METHOD() local 324 dom_object *intern; in PHP_FUNCTION() local 369 dom_object *intern; in PHP_FUNCTION() local 434 dom_object *intern; in PHP_FUNCTION() local 485 dom_object *intern; in PHP_FUNCTION() local 664 dom_object *intern; in PHP_FUNCTION() local 749 dom_object *intern; in PHP_FUNCTION() local 875 dom_object *intern; in PHP_FUNCTION() local 932 dom_object *intern; in PHP_FUNCTION() local 1090 dom_object *intern; in PHP_FUNCTION() local [all …]
|
H A D | php_dom.c | 468 if (intern->node) { in php_dom_export_node() 1022 if (intern->node_list) { in dom_xpath_objects_free_storage() 1049 intern->ptr = NULL; in dom_objects_free_storage() 1085 return intern; in dom_objects_set_class() 1094 return &intern->std; in dom_objects_new() 1112 return &intern->dom.std; in dom_xpath_objects_new() 1119 dom_object *intern; in dom_nnodemap_object_dtor() local 1136 intern->ptr = NULL; in dom_nnodemap_object_dtor() 1153 dom_object *intern; in dom_nnodemap_objects_new() local 1168 return &intern->std; in dom_nnodemap_objects_new() [all …]
|
H A D | document.c | 707 dom_object *intern; in PHP_FUNCTION() local 742 dom_object *intern; in PHP_FUNCTION() local 772 dom_object *intern; in PHP_FUNCTION() local 802 dom_object *intern; in PHP_FUNCTION() local 832 dom_object *intern; in PHP_FUNCTION() local 862 dom_object *intern; in PHP_FUNCTION() local 899 dom_object *intern; in PHP_FUNCTION() local 933 dom_object *intern; in PHP_FUNCTION() local 1057 dom_object *intern; in PHP_FUNCTION() local 1121 dom_object *intern; in PHP_FUNCTION() local [all …]
|
/PHP-7.4/ext/phar/ |
H A D | phar_object.c | 1477 …spl_filesystem_object *intern = (spl_filesystem_object*)((char*)Z_OBJ_P(value) - Z_OBJ_P(value)->h… in phar_build() local 1484 switch (intern->type) { in phar_build() 1486 test = spl_filesystem_object_get_path(intern, NULL); in phar_build() 1487 fname_len = spprintf(&fname, 0, "%s%c%s", test, DEFAULT_SLASH, intern->u.dir.entry.d_name); in phar_build() 1511 fname = expand_filepath(intern->file_name, NULL); in phar_build()
|
/PHP-7.4/Zend/ |
H A D | zend_API.c | 2854 zend_object *intern; in display_disabled_class() local 2856 intern = zend_objects_new(class_type); in display_disabled_class() 2860 zval *p = intern->properties_table; in display_disabled_class() 2869 return intern; in display_disabled_class()
|
/PHP-7.4/ext/intl/timezone/ |
H A D | timezone_class.cpp | 377 TimeZone_object* intern; in TimeZone_object_create() local 379 …intern = (TimeZone_object*)ecalloc(1, sizeof(TimeZone_object) + sizeof(zval) * (ce->default_proper… in TimeZone_object_create() 381 zend_object_std_init(&intern->zo, ce); in TimeZone_object_create() 382 object_properties_init(&intern->zo, ce); in TimeZone_object_create() 383 TimeZone_object_init(intern); in TimeZone_object_create() 385 intern->zo.handlers = &TimeZone_handlers; in TimeZone_object_create() 387 return &intern->zo; in TimeZone_object_create()
|
/PHP-7.4/ext/xmlreader/ |
H A D | php_xmlreader.c | 422 if (intern && intern->ptr) { in php_xmlreader_string_arg() 444 if (intern && intern->ptr) { in php_xmlreader_no_arg() 468 if (intern && intern->ptr) { in php_xmlreader_no_arg_string() 503 if (intern && intern->ptr) { in php_xmlreader_set_relaxng_schema() 578 if (intern && intern->ptr) { in PHP_METHOD() 609 if (intern && intern->ptr) { in PHP_METHOD() 635 if (intern && intern->ptr) { in PHP_METHOD() 687 if (intern && intern->ptr) { in PHP_METHOD() 715 if (intern && intern->ptr) { in PHP_METHOD() 749 if (intern && intern->ptr) { in PHP_METHOD() [all …]
|
/PHP-7.4/ext/simplexml/ |
H A D | simplexml.c | 96 php_sxe_object *intern; in php_sxe_get_first_node() local 103 GET_NODE(intern, retnode) in php_sxe_get_first_node() 1979 php_sxe_object *intern; in sxe_count_elements() local 1981 if (intern->fptr_count) { in sxe_count_elements() 2144 php_sxe_object *intern; in php_sxe_object_new() local 2150 intern->iter.name = NULL; in php_sxe_object_new() 2157 return intern; in php_sxe_object_new() 2169 return &intern->zo; in sxe_object_new() 2461 if (intern != NULL && intern->node != NULL) { in php_sxe_iterator_current_key() 2476 php_sxe_object *intern; in php_sxe_move_forward_iterator() local [all …]
|
/PHP-7.4/ext/reflection/ |
H A D | php_reflection.c | 219 if (intern->ptr) { in reflection_free_objects_storage() 254 intern->ptr = NULL; in reflection_free_objects_storage() 276 return &intern->zo; in reflection_objects_new() 1090 intern->ptr = ce; in zend_reflection_class_factory() 1092 intern->ce = ce; in zend_reflection_class_factory() 1205 intern->ce = ce; in reflection_method_factory() 1254 intern->ce = ce; in reflection_property_factory() 2002 Z_ISUNDEF(intern->obj) ? NULL : &intern->obj, in ZEND_METHOD() 2404 intern->ce = ce; in ZEND_METHOD() 3015 intern->ce = ce; in ZEND_METHOD() [all …]
|
/PHP-7.4/ext/tidy/ |
H A D | tidy.c | 700 if (intern->ptdoc) { in tidy_object_free_storage() 701 intern->ptdoc->ref_count--; in tidy_object_free_storage() 705 efree(intern->ptdoc->errbuf); in tidy_object_free_storage() 707 efree(intern->ptdoc); in tidy_object_free_storage() 714 PHPTidyObj *intern; in tidy_object_new() local 727 intern->ptdoc->ref_count = 1; in tidy_object_new() 732 if (tidySetErrorBuffer(intern->ptdoc->doc, intern->ptdoc->errbuf) != 0) { in tidy_object_new() 734 efree(intern->ptdoc->errbuf); in tidy_object_new() 736 efree(intern->ptdoc); in tidy_object_new() 737 efree(intern); in tidy_object_new() [all …]
|
/PHP-7.4/ext/snmp/ |
H A D | snmp.c | 455 php_snmp_object *intern = php_snmp_fetch_object(object); in php_snmp_object_free_storage() local 457 if (!intern) { in php_snmp_object_free_storage() 461 netsnmp_session_free(&(intern->session)); in php_snmp_object_free_storage() 463 zend_object_std_dtor(&intern->zo); in php_snmp_object_free_storage() 469 php_snmp_object *intern; in php_snmp_object_new() local 472 intern = zend_object_alloc(sizeof(php_snmp_object), class_type); in php_snmp_object_new() 474 zend_object_std_init(&intern->zo, class_type); in php_snmp_object_new() 475 object_properties_init(&intern->zo, class_type); in php_snmp_object_new() 477 intern->zo.handlers = &php_snmp_object_handlers; in php_snmp_object_new() 479 return &intern->zo; in php_snmp_object_new()
|
/PHP-7.4/ext/fileinfo/ |
H A D | fileinfo.c | 84 finfo_object *intern = php_finfo_fetch_object(object); in finfo_objects_free() local 86 if (intern->ptr) { in finfo_objects_free() 87 magic_close(intern->ptr->magic); in finfo_objects_free() 88 efree(intern->ptr); in finfo_objects_free() 91 zend_object_std_dtor(&intern->zo); in finfo_objects_free() 99 finfo_object *intern; in finfo_objects_new() local 101 intern = zend_object_alloc(sizeof(finfo_object), class_type); in finfo_objects_new() 103 zend_object_std_init(&intern->zo, class_type); in finfo_objects_new() 104 object_properties_init(&intern->zo, class_type); in finfo_objects_new() 105 intern->zo.handlers = &finfo_object_handlers; in finfo_objects_new() [all …]
|
/PHP-7.4/ext/gmp/ |
H A D | gmp.c | 376 gmp_object *intern = GET_GMP_OBJECT_FROM_OBJ(obj); in gmp_free_object_storage() local 378 mpz_clear(intern->num); in gmp_free_object_storage() 379 zend_object_std_dtor(&intern->std); in gmp_free_object_storage() 385 gmp_object *intern = emalloc(sizeof(gmp_object) + zend_object_properties_size(ce)); in gmp_create_object_ex() local 387 zend_object_std_init(&intern->std, ce); in gmp_create_object_ex() 388 object_properties_init(&intern->std, ce); in gmp_create_object_ex() 390 mpz_init(intern->num); in gmp_create_object_ex() 391 *gmpnum_target = intern->num; in gmp_create_object_ex() 392 intern->std.handlers = &gmp_object_handlers; in gmp_create_object_ex() 394 return &intern->std; in gmp_create_object_ex()
|
/PHP-7.4/ext/sqlite3/ |
H A D | sqlite3.c | 2341 if (!intern) { in php_sqlite3_object_free_storage() 2348 if (intern->initialised && intern->db) { in php_sqlite3_object_free_storage() 2369 if (intern->initialised && intern->db){ in php_sqlite3_object_free_storage() 2379 if (intern->initialised && intern->db) { in php_sqlite3_object_free_storage() 2392 if (!intern) { in php_sqlite3_stmt_object_free_storage() 2403 zend_llist_del_element(&(intern->db_obj->free_list), intern->stmt, in php_sqlite3_stmt_object_free_storage() 2419 if (!intern) { in php_sqlite3_result_object_free_storage() 2424 if (intern->stmt_obj && intern->stmt_obj->initialised) { in php_sqlite3_result_object_free_storage() 2450 return &intern->zo; in php_sqlite3_object_new() 2466 return &intern->zo; in php_sqlite3_stmt_object_new() [all …]
|