/php-src/ext/spl/ |
H A D | spl_dllist.c | 298 if (intern->llist) { in spl_dllist_object_free_storage() 320 intern->flags = 0; in spl_dllist_object_new_ex() 330 intern->traverse_pointer = intern->llist->head; in spl_dllist_object_new_ex() 334 intern->traverse_pointer = intern->llist->head; in spl_dllist_object_new_ex() 341 intern->traverse_pointer = intern->llist->head; in spl_dllist_object_new_ex() 386 return &intern->std; in spl_dllist_object_new_ex() 410 if (intern->fptr_count) { in spl_dllist_object_count_elements() 762 llist = intern->llist; in PHP_METHOD() 939 …spl_dllist_it_helper_move_forward(&intern->traverse_pointer, &intern->traverse_position, intern->l… in PHP_METHOD() 952 …spl_dllist_it_helper_move_forward(&intern->traverse_pointer, &intern->traverse_position, intern->l… in PHP_METHOD() [all …]
|
H A D | spl_heap.c | 430 return &intern->std; in spl_heap_object_new_ex() 466 return &intern->std; in spl_heap_object_new_ex() 608 spl_heap_object *intern; in PHP_METHOD() local 631 spl_heap_object *intern; in PHP_METHOD() local 655 spl_heap_object *intern; in PHP_METHOD() local 675 if (!intern->fptr_cmp) { in PHP_METHOD() 698 spl_heap_object *intern; in PHP_METHOD() local 724 spl_heap_object *intern; in PHP_METHOD() local 754 spl_heap_object *intern; in PHP_METHOD() local 767 intern->flags = value; in PHP_METHOD() [all …]
|
H A D | spl_array.c | 103 intern = Z_SPLARRAY_P(&intern->array); in spl_array_is_object() 105 return (intern->ar_flags & SPL_ARRAY_IS_SELF) || Z_TYPE(intern->array) == IS_OBJECT; in spl_array_is_object() 146 spl_array_object *intern; in spl_array_object_new_ex() local 155 intern->ar_flags = 0; in spl_array_object_new_ex() 156 intern->is_child = false; in spl_array_object_new_ex() 157 intern->bucket = NULL; in spl_array_object_new_ex() 219 return &intern->std; in spl_array_object_new_ex() 953 ZVAL_COPY(&intern->bucket->val, &intern->array); in spl_array_set_array() 1184 intern->nApplyCount++; in spl_array_method() 1186 intern->nApplyCount--; in spl_array_method() [all …]
|
H A D | spl_iterators.c | 649 sub_iter = intern->iterators[intern->level].iterator; in spl_recursive_it_it_construct() 1458 intern->inner.iterator = intern->inner.ce->get_iterator(intern->inner.ce, zobject, 0); in spl_dual_it_construct() 1460 return intern; in spl_dual_it_construct() 1549 intern->inner.iterator->funcs->get_current_key(intern->inner.iterator, &intern->current.key); in spl_dual_it_fetch() 1555 ZVAL_LONG(&intern->current.key, intern->current.pos); in spl_dual_it_fetch() 2190 …if (intern->u.limit.count != -1 && intern->current.pos >= intern->u.limit.offset + intern->u.limit… in spl_limit_it_valid() 2206 if (pos >= intern->u.limit.offset + intern->u.limit.count && intern->u.limit.count != -1) { in spl_limit_it_seek() 2252 spl_limit_it_seek(intern, intern->u.limit.offset); in PHP_METHOD() 2267 …RETURN_BOOL((intern->u.limit.count == -1 || intern->current.pos < intern->u.limit.offset + intern-… in PHP_METHOD() 2282 …if (intern->u.limit.count == -1 || intern->current.pos < intern->u.limit.offset + intern->u.limit.… in PHP_METHOD() [all …]
|
H A D | spl_directory.h | 39 PHPAPI zend_string *spl_filesystem_object_get_path(spl_filesystem_object *intern); 102 #define SPL_FILE_DIR_CURRENT(intern,mode) ((intern->flags&SPL_FILE_DIR_CURRENT_MODE_MASK)==mode) argument 108 #define SPL_FILE_DIR_KEY(intern,mode) ((intern->flags&SPL_FILE_DIR_KEY_MODE_MASK)==mode) argument
|
/php-src/ext/sysvsem/ |
H A D | sysvsem.c | 94 sysvsem_sem *intern = zend_object_alloc(sizeof(sysvsem_sem), class_type); in sysvsem_create_object() local 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() 99 return &intern->std; in sysvsem_create_object()
|
/php-src/ext/ldap/ |
H A D | ldap.c | 114 ldap_linkdata *intern = zend_object_alloc(sizeof(ldap_linkdata), class_type); in ldap_link_create_object() local 116 zend_object_std_init(&intern->std, class_type); in ldap_link_create_object() 117 object_properties_init(&intern->std, class_type); in ldap_link_create_object() 119 return &intern->std; in ldap_link_create_object() 159 ldap_resultdata *intern = zend_object_alloc(sizeof(ldap_resultdata), class_type); in ldap_result_create_object() local 161 zend_object_std_init(&intern->std, class_type); in ldap_result_create_object() 162 object_properties_init(&intern->std, class_type); in ldap_result_create_object() 164 return &intern->std; in ldap_result_create_object() 198 zend_object_std_init(&intern->std, class_type); in ldap_result_entry_create_object() 199 object_properties_init(&intern->std, class_type); in ldap_result_entry_create_object() [all …]
|
/php-src/ext/gd/ |
H A D | gd.c | 175 php_gd_image_object *intern = emalloc(block_len); in php_gd_image_object_create() local 176 memset(intern, 0, block_len); 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() 181 return &intern->std; in php_gd_image_object_create() 184 static void php_gd_image_object_free(zend_object *intern) in php_gd_image_object_free() argument 186 php_gd_image_object *img_obj_ptr = php_gd_exgdimage_from_zobj_p(intern); in php_gd_image_object_free() 190 zend_object_std_dtor(intern); in php_gd_image_object_free()
|
/php-src/ext/dom/ |
H A D | xpath_callbacks.h | 36 …xpath_callbacks_proxy_factory)(xmlNodePtr node, zval *proxy, dom_object *intern, xmlXPathParserCon… 64 …args, php_dom_xpath_nodeset_evaluation_mode evaluation_mode, dom_object *intern, php_dom_xpath_cal… 65 …args, php_dom_xpath_nodeset_evaluation_mode evaluation_mode, dom_object *intern, php_dom_xpath_cal…
|
/php-src/ext/zend_test/ |
H A D | iterators.c | 29 zend_object_iterator intern; member 40 zval_ptr_dtor(&iterator->intern.data); in test_traversable_it_dtor() 102 ZVAL_OBJ_COPY(&iterator->intern.data, Z_OBJ_P(object)); in test_traversable_get_iterator() 103 iterator->intern.funcs = &test_traversable_it_vtable; in test_traversable_get_iterator()
|
/php-src/ext/intl/common/ |
H A D | common_enum.cpp | 193 IntlIterator_object *intern; in IntlIterator_object_create() local 195 …intern = (IntlIterator_object*)ecalloc(1, sizeof(IntlIterator_object) + sizeof(zval) * (ce->defaul… in IntlIterator_object_create() 197 zend_object_std_init(&intern->zo, ce); in IntlIterator_object_create() 198 object_properties_init(&intern->zo, ce); in IntlIterator_object_create() 199 intl_error_init(INTLITERATOR_ERROR_P(intern)); in IntlIterator_object_create() 201 intern->iterator = NULL; in IntlIterator_object_create() 203 return &intern->zo; in IntlIterator_object_create()
|
/php-src/ext/intl/resourcebundle/ |
H A D | resourcebundle_iterator.c | 71 zval *object = &iterator->intern.data; in resourcebundle_iterator_dtor() 158 zend_iterator_init(&iterator->intern); in resourcebundle_get_iterator() 160 ZVAL_OBJ(&iterator->intern.data, Z_OBJ_P(object)); in resourcebundle_get_iterator() 161 iterator->intern.funcs = &resourcebundle_iterator_funcs; in resourcebundle_get_iterator()
|
/php-src/ext/mysqli/ |
H A D | mysqli_result_iterator.c | 35 zend_object_iterator intern; member 53 zend_iterator_init(&iterator->intern); in php_mysqli_result_get_iterator() 56 ZVAL_OBJ(&iterator->intern.data, Z_OBJ_P(object)); in php_mysqli_result_get_iterator() 57 iterator->intern.funcs = &php_mysqli_result_iterator_funcs; in php_mysqli_result_get_iterator() 61 return &iterator->intern; in php_mysqli_result_get_iterator() 71 zval_ptr_dtor(&iterator->intern.data); in php_mysqli_result_iterator_dtor() 99 mysqli_object *intern = iterator->result; in php_mysqli_result_iterator_move_forward() local 102 MYSQLI_FETCH_RESOURCE_BY_OBJ(result, MYSQL_RES *, intern, "mysqli_result", MYSQLI_STATUS_VALID); in php_mysqli_result_iterator_move_forward() 116 mysqli_object *intern = iterator->result; in php_mysqli_result_iterator_rewind() local 119 MYSQLI_FETCH_RESOURCE_BY_OBJ(result, MYSQL_RES *, intern, "mysqli_result", MYSQLI_STATUS_VALID); in php_mysqli_result_iterator_rewind()
|
H A D | php_mysqli_structs.h | 183 mysqli_object *intern = Z_MYSQLI_P(__id); \ 184 if (!(my_res = (MYSQLI_RESOURCE *)intern->ptr)) {\ 185 zend_throw_error(NULL, "%s object is already closed", ZSTR_VAL(intern->zo.ce->name));\ 190 zend_throw_error(NULL, "%s object is not fully initialized", ZSTR_VAL(intern->zo.ce->name)); \ 199 zend_throw_error(NULL, "%s object is already closed", ZSTR_VAL(intern->zo.ce->name));\ 204 zend_throw_error(NULL, "%s object is not fully initialized", ZSTR_VAL(intern->zo.ce->name)); \ 226 mysqli_object *intern = Z_MYSQLI_P(__id); \ 227 ((MYSQLI_RESOURCE *)intern->ptr)->status = __value; \ 232 mysqli_object *intern = Z_MYSQLI_P(__id); \ 233 efree(intern->ptr); \ [all …]
|
/php-src/Zend/ |
H A D | zend_interfaces.c | 525 return intern; in zend_internal_iterator_fetch() 552 if (!intern) { in ZEND_METHOD() 560 zval *data = intern->iter->funcs->get_current_data(intern->iter); in ZEND_METHOD() 570 if (!intern) { in ZEND_METHOD() 579 intern->iter->funcs->get_current_key(intern->iter, return_value); in ZEND_METHOD() 589 if (!intern) { in ZEND_METHOD() 599 intern->iter->funcs->move_forward(intern->iter); in ZEND_METHOD() 606 if (!intern) { in ZEND_METHOD() 614 RETURN_BOOL(intern->iter->funcs->valid(intern->iter) == SUCCESS); in ZEND_METHOD() 621 if (!intern) { in ZEND_METHOD() [all …]
|
/php-src/ext/zip/ |
H A D | php_zip.c | 470 intern = obj->za; \ 471 if (!intern) { \ 1050 if (!intern) { in php_zip_object_free_storage() 1053 if (intern->za) { in php_zip_object_free_storage() 1077 intern->za = NULL; in php_zip_object_free_storage() 1096 return &intern->zo; in php_zip_object_new() 1447 struct zip *intern; local 1523 struct zip *intern; local 1550 struct zip *intern; local 1604 struct zip *intern; local [all …]
|
/php-src/ext/snmp/ |
H A D | snmp.c | 166 php_snmp_object *intern = php_snmp_fetch_object(object); in php_snmp_object_free_storage() local 168 if (!intern) { in php_snmp_object_free_storage() 172 netsnmp_session_free(&(intern->session)); in php_snmp_object_free_storage() 174 zend_object_std_dtor(&intern->zo); in php_snmp_object_free_storage() 180 php_snmp_object *intern; in php_snmp_object_new() local 183 intern = zend_object_alloc(sizeof(php_snmp_object), class_type); in php_snmp_object_new() 185 zend_object_std_init(&intern->zo, class_type); in php_snmp_object_new() 186 object_properties_init(&intern->zo, class_type); in php_snmp_object_new() 188 return &intern->zo; in php_snmp_object_new()
|
/php-src/ext/xmlwriter/ |
H A D | php_xmlwriter.c | 55 if (intern->ptr) { in xmlwriter_object_dtor() 56 xmlFreeTextWriter(intern->ptr); in xmlwriter_object_dtor() 57 intern->ptr = NULL; in xmlwriter_object_dtor() 59 if (intern->output) { in xmlwriter_object_dtor() 60 xmlBufferFree(intern->output); in xmlwriter_object_dtor() 61 intern->output = NULL; in xmlwriter_object_dtor() 72 zend_object_std_dtor(&intern->std); in xmlwriter_object_free_storage() 80 ze_xmlwriter_object *intern; in xmlwriter_object_new() local 83 zend_object_std_init(&intern->std, class_type); in xmlwriter_object_new() 84 object_properties_init(&intern->std, class_type); in xmlwriter_object_new() [all …]
|
/php-src/ext/intl/spoofchecker/ |
H A D | spoofchecker_class.c | 43 Spoofchecker_object* intern; in Spoofchecker_object_create() local 45 intern = zend_object_alloc(sizeof(Spoofchecker_object), ce); in Spoofchecker_object_create() 46 intl_error_init(SPOOFCHECKER_ERROR_P(intern)); in Spoofchecker_object_create() 47 zend_object_std_init(&intern->zo, ce); in Spoofchecker_object_create() 48 object_properties_init(&intern->zo, ce); in Spoofchecker_object_create() 50 return &intern->zo; in Spoofchecker_object_create()
|
/php-src/ext/fileinfo/ |
H A D | fileinfo.c | 72 finfo_object *intern = php_finfo_fetch_object(object); in finfo_objects_free() local 74 if (intern->ptr) { in finfo_objects_free() 75 magic_close(intern->ptr->magic); in finfo_objects_free() 76 efree(intern->ptr); in finfo_objects_free() 79 zend_object_std_dtor(&intern->zo); in finfo_objects_free() 86 finfo_object *intern; in finfo_objects_new() local 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() 93 return &intern->zo; in finfo_objects_new()
|
/php-src/ext/sysvmsg/ |
H A D | sysvmsg.c | 78 sysvmsg_queue_t *intern = zend_object_alloc(sizeof(sysvmsg_queue_t), class_type); in sysvmsg_queue_create_object() local 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() 83 return &intern->std; in sysvmsg_queue_create_object()
|
/php-src/ext/shmop/ |
H A D | shmop.c | 83 php_shmop *intern = zend_object_alloc(sizeof(php_shmop), class_type); in shmop_create_object() local 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() 88 return &intern->std; in shmop_create_object()
|
/php-src/ext/intl/timezone/ |
H A D | timezone_class.cpp | 372 TimeZone_object* intern; in TimeZone_object_create() local 374 …intern = (TimeZone_object*)ecalloc(1, sizeof(TimeZone_object) + sizeof(zval) * (ce->default_proper… in TimeZone_object_create() 376 zend_object_std_init(&intern->zo, ce); in TimeZone_object_create() 377 object_properties_init(&intern->zo, ce); in TimeZone_object_create() 378 TimeZone_object_init(intern); in TimeZone_object_create() 380 return &intern->zo; in TimeZone_object_create()
|
/php-src/ext/intl/calendar/ |
H A D | calendar_class.cpp | 251 Calendar_object* intern; in Calendar_object_create() local 253 …intern = (Calendar_object*)ecalloc(1, sizeof(Calendar_object) + sizeof(zval) * (ce->default_proper… in Calendar_object_create() 255 zend_object_std_init(&intern->zo, ce); in Calendar_object_create() 256 object_properties_init(&intern->zo, ce); in Calendar_object_create() 257 calendar_object_init(intern); in Calendar_object_create() 259 return &intern->zo; in Calendar_object_create()
|
/php-src/ext/sysvshm/ |
H A D | sysvshm.c | 46 sysvshm_shm *intern = zend_object_alloc(sizeof(sysvshm_shm), class_type); in sysvshm_create_object() local 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() 51 return &intern->std; in sysvshm_create_object()
|