/PHP-7.2/ext/spl/ |
H A D | spl_directory.c | 111 intern->oth_handler->dtor(intern); in spl_filesystem_object_free_storage() 235 if (!intern->u.dir.dirp || !php_stream_readdir(intern->u.dir.dirp, &intern->u.dir.entry)) { in spl_filesystem_dir_read() 265 intern->_path = estrndup(path, intern->_path_len); in spl_filesystem_dir_open() 317 if (intern->file_name_len > 1 && IS_SLASH_AT(intern->file_name, intern->file_name_len-1)) { in spl_filesystem_file_open() 323 intern->file_name = estrndup(intern->file_name, intern->file_name_len); in spl_filesystem_file_open() 393 intern->oth_handler->clone(source, intern); in spl_filesystem_object_clone() 412 intern->file_name[intern->file_name_len-1] = 0; in spl_filesystem_info_set_filename() 518 intern->_path = estrndup(intern->_path, intern->_path_len); in spl_filesystem_object_create_type() 544 intern->_path = estrndup(intern->_path, intern->_path_len); in spl_filesystem_object_create_type() 2292 &intern->file_name, &intern->file_name_len, in SPL_METHOD() [all …]
|
H A D | spl_fixedarray.c | 66 zend_user_iterator intern; member 198 if (intern->array.size > 0 && intern->array.elements) { in spl_fixedarray_object_free_storage() 220 intern->current = 0; in spl_fixedarray_object_new_ex() 221 intern->flags = 0; in spl_fixedarray_object_new_ex() 291 return &intern->std; in spl_fixedarray_object_new_ex() 535 if (intern->fptr_count) { in spl_fixedarray_object_count_elements() 720 intern->array = array; in SPL_METHOD() 943 intern->current++; in SPL_METHOD() 957 RETURN_BOOL(intern->current >= 0 && intern->current < intern->array.size); in SPL_METHOD() 971 intern->current = 0; in SPL_METHOD() [all …]
|
H A D | spl_observer.c | 227 intern->index = 0; in spl_object_storage_addall() 331 if (intern->storage.nNumOfElements * 2 > intern->gcdata_num) { in spl_object_storage_get_gc() 332 intern->gcdata_num = intern->storage.nNumOfElements * 2; in spl_object_storage_get_gc() 333 intern->gcdata = (zval*)erealloc(intern->gcdata, sizeof(zval) * intern->gcdata_num); in spl_object_storage_get_gc() 690 zend_hash_move_forward_ex(&intern->storage, &intern->pos); in SPL_METHOD() 691 intern->index++; in SPL_METHOD() 1016 zend_hash_move_forward_ex(&intern->storage, &intern->pos); in SPL_METHOD() 1042 zend_hash_move_forward_ex(&intern->storage, &intern->pos); in SPL_METHOD() 1065 zend_hash_move_forward_ex(&intern->storage, &intern->pos); in SPL_METHOD() 1107 zend_hash_move_forward_ex(&intern->storage, &intern->pos); in SPL_METHOD() [all …]
|
H A D | spl_iterators.c | 596 sub_iter = intern->iterators[intern->level].iterator; in spl_recursive_it_it_construct() 1605 intern->inner.iterator = intern->inner.ce->get_iterator(intern->inner.ce, zobject, 0); in spl_dual_it_construct() 1704 intern->inner.iterator->funcs->get_current_key(intern->inner.iterator, &intern->current.key); in spl_dual_it_fetch() 1710 ZVAL_LONG(&intern->current.key, intern->current.pos); in spl_dual_it_fetch() 2075 …&intern->current.data, intern->u.regex.mode == REGIT_MODE_ALL_MATCHES, intern->u.regex.use_flags, … in SPL_METHOD() 2481 …if (intern->u.limit.count != -1 && intern->current.pos >= intern->u.limit.offset + intern->u.limit… in spl_limit_it_valid() 2497 if (pos >= intern->u.limit.offset + intern->u.limit.count && intern->u.limit.count != -1) { in spl_limit_it_seek() 2542 spl_limit_it_seek(intern, intern->u.limit.offset); in SPL_METHOD() 2554 …RETURN_BOOL((intern->u.limit.count == -1 || intern->current.pos < intern->u.limit.offset + intern-… in SPL_METHOD() 2566 …if (intern->u.limit.count == -1 || intern->current.pos < intern->u.limit.offset + intern->u.limit.… 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() 546 if (intern->gc_data_count < intern->llist->count) { in spl_dllist_object_get_gc() 547 intern->gc_data_count = intern->llist->count; in spl_dllist_object_get_gc() 548 intern->gc_data = safe_erealloc(intern->gc_data, intern->gc_data_count, sizeof(zval), 0); in spl_dllist_object_get_gc() 1063 …spl_dllist_it_helper_move_forward(&intern->traverse_pointer, &intern->traverse_position, intern->l… in SPL_METHOD() 1077 …spl_dllist_it_helper_move_forward(&intern->traverse_pointer, &intern->traverse_position, intern->l… in SPL_METHOD() [all …]
|
H A D | spl_array.c | 127 intern = Z_SPLARRAY_P(&intern->array); in spl_array_is_object() 172 spl_array_object *intern; in spl_array_object_new_ex() local 181 intern->ar_flags = 0; in spl_array_object_new_ex() 265 return &intern->std; in spl_array_object_new_ex() 405 (intern->fptr_offset_get || (type == BP_VAR_IS && intern->fptr_offset_has))) { in spl_array_read_dimension_ex() 1480 intern->nApplyCount++; in spl_array_method() 1482 intern->nApplyCount--; in spl_array_method() 1491 intern->nApplyCount++; in spl_array_method() 1493 intern->nApplyCount--; in spl_array_method() 1500 intern->nApplyCount++; in spl_array_method() [all …]
|
H A D | spl_heap.c | 81 zend_user_iterator intern; member 373 intern->flags = 0; in spl_heap_object_new_ex() 434 return &intern->std; in spl_heap_object_new_ex() 581 spl_heap_object *intern; in SPL_METHOD() local 605 spl_heap_object *intern; in SPL_METHOD() local 632 spl_heap_object *intern; in SPL_METHOD() local 663 spl_heap_object *intern; in SPL_METHOD() local 702 spl_heap_object *intern; in SPL_METHOD() local 740 spl_heap_object *intern; in SPL_METHOD() local 758 spl_heap_object *intern; in SPL_METHOD() local [all …]
|
/PHP-7.2/ext/xsl/ |
H A D | php_xsl.c | 73 zend_object_std_dtor(&intern->std); in ZEND_GET_MODULE() 76 FREE_HASHTABLE(intern->parameter); in ZEND_GET_MODULE() 81 if (intern->node_list) { in ZEND_GET_MODULE() 86 if (intern->doc) { in ZEND_GET_MODULE() 88 efree(intern->doc); in ZEND_GET_MODULE() 91 if (intern->ptr) { in ZEND_GET_MODULE() 98 intern->ptr = NULL; in ZEND_GET_MODULE() 100 if (intern->profiling) { in ZEND_GET_MODULE() 101 efree(intern->profiling); in ZEND_GET_MODULE() 109 xsl_object *intern; in xsl_objects_new() local [all …]
|
H A D | xsltprocessor.c | 187 xsl_object *intern; in xsl_ext_function_php() local 398 xsl_object *intern; in PHP_FUNCTION() local 602 efree(intern->doc); in php_xsl_apply_stylesheet() 603 intern->doc = NULL; in php_xsl_apply_stylesheet() 628 xsl_object *intern; in PHP_FUNCTION() local 685 xsl_object *intern; in PHP_FUNCTION() local 717 xsl_object *intern; in PHP_FUNCTION() local 752 xsl_object *intern; in PHP_FUNCTION() local 796 xsl_object *intern; in PHP_FUNCTION() local 821 xsl_object *intern; in PHP_FUNCTION() local [all …]
|
/PHP-7.2/ext/xmlreader/ |
H A D | php_xmlreader.c | 419 if (intern && intern->ptr) { in php_xmlreader_string_arg() 441 if (intern && intern->ptr) { in php_xmlreader_no_arg() 466 if (intern && intern->ptr) { in php_xmlreader_no_arg_string() 502 if (intern && intern->ptr) { in php_xmlreader_set_relaxng_schema() 577 if (intern && intern->ptr) { in PHP_METHOD() 608 if (intern && intern->ptr) { in PHP_METHOD() 634 if (intern && intern->ptr) { in PHP_METHOD() 686 if (intern && intern->ptr) { in PHP_METHOD() 714 if (intern && intern->ptr) { in PHP_METHOD() 748 if (intern && intern->ptr) { in PHP_METHOD() [all …]
|
/PHP-7.2/ext/xmlwriter/ |
H A D | php_xmlwriter.c | 95 if (intern) { in xmlwriter_free_resource_ptr() 96 if (intern->ptr) { in xmlwriter_free_resource_ptr() 98 intern->ptr = NULL; in xmlwriter_free_resource_ptr() 104 efree(intern); in xmlwriter_free_resource_ptr() 114 if (!intern) { \ 127 if (!intern) { in xmlwriter_object_free_storage() 149 return &intern->std; in xmlwriter_object_new() 722 ptr = intern->ptr; in php_xmlwriter_string_arg() 756 ptr = intern->ptr; in php_xmlwriter_end() 796 ptr = intern->ptr; in PHP_FUNCTION() [all …]
|
/PHP-7.2/ext/zip/ |
H A D | php_zip.c | 378 intern = obj->za; \ 379 if (!intern) { \ 1024 if (!intern) { in php_zip_object_free_storage() 1027 if (intern->za) { in php_zip_object_free_storage() 1045 intern->za = NULL; in php_zip_object_free_storage() 1064 return &intern->zo; in php_zip_object_new() 1436 struct zip *intern; in ZIPARCHIVE_METHOD() local 1496 struct zip *intern; in ZIPARCHIVE_METHOD() local 1528 struct zip *intern; in ZIPARCHIVE_METHOD() local 1567 struct zip *intern; in ZIPARCHIVE_METHOD() local [all …]
|
/PHP-7.2/ext/mysqli/ |
H A D | mysqli_result_iterator.c | 39 zend_object_iterator intern; member 55 zend_iterator_init(&iterator->intern); in php_mysqli_result_get_iterator() 57 ZVAL_COPY(&iterator->intern.data, object); in php_mysqli_result_get_iterator() 58 iterator->intern.funcs = &php_mysqli_result_iterator_funcs; in php_mysqli_result_get_iterator() 62 return &iterator->intern; in php_mysqli_result_get_iterator() 72 zval_ptr_dtor(&iterator->intern.data); in php_mysqli_result_iterator_dtor() 100 mysqli_object *intern = iterator->result; in php_mysqli_result_iterator_move_forward() local 103 MYSQLI_FETCH_RESOURCE_BY_OBJ(result, MYSQL_RES *, intern, "mysqli_result", MYSQLI_STATUS_VALID); in php_mysqli_result_iterator_move_forward() 117 mysqli_object *intern = iterator->result; local 120 MYSQLI_FETCH_RESOURCE_BY_OBJ(result, MYSQL_RES *, intern, "mysqli_result", MYSQLI_STATUS_VALID);
|
H A D | php_mysqli_structs.h | 256 mysqli_object *intern = Z_MYSQLI_P(__id); \ 257 if (!(my_res = (MYSQLI_RESOURCE *)intern->ptr)) {\ 258 php_error_docref(NULL, E_WARNING, "Couldn't fetch %s", ZSTR_VAL(intern->zo.ce->name));\ 272 php_error_docref(NULL, E_WARNING, "Couldn't fetch %s", ZSTR_VAL(intern->zo.ce->name));\ 286 mysqli_object *intern = Z_MYSQLI_P(__id); \ 296 mysqli_object *intern = Z_MYSQLI_P(__id); \ 304 mysqli_object *intern = Z_MYSQLI_P(__id); \ 305 ((MYSQLI_RESOURCE *)intern->ptr)->status = __value; \ 310 mysqli_object *intern = Z_MYSQLI_P(__id); \ 311 efree(intern->ptr); \ [all …]
|
/PHP-7.2/ext/dom/ |
H A D | xpath.c | 84 dom_xpath_object *intern; in dom_xpath_ext_function_php() local 93 if (intern == NULL) { in dom_xpath_ext_function_php() 257 dom_xpath_object *intern; in PHP_METHOD() local 272 intern = Z_XPATHOBJ_P(id); in PHP_METHOD() 273 if (intern != NULL) { in PHP_METHOD() 287 intern->dom.ptr = ctx; in PHP_METHOD() 316 dom_xpath_object *intern; in PHP_FUNCTION() local 323 intern = Z_XPATHOBJ_P(id); in PHP_FUNCTION() 354 dom_xpath_object *intern; in php_xpath_eval() local 365 intern = Z_XPATHOBJ_P(id); in php_xpath_eval() [all …]
|
H A D | comment.c | 55 dom_object *intern; in PHP_METHOD() local 70 intern = Z_DOMOBJ_P(id); in PHP_METHOD() 71 if (intern != NULL) { in PHP_METHOD() 72 oldnode = dom_object_get_node(intern); in PHP_METHOD() 76 …php_libxml_increment_node_ptr((php_libxml_node_object *)intern, (xmlNodePtr)nodep, (void *)intern); in PHP_METHOD()
|
H A D | document.c | 700 dom_object *intern; in PHP_FUNCTION() local 734 dom_object *intern; in PHP_FUNCTION() local 763 dom_object *intern; in PHP_FUNCTION() local 792 dom_object *intern; in PHP_FUNCTION() local 821 dom_object *intern; in PHP_FUNCTION() local 850 dom_object *intern; in PHP_FUNCTION() local 886 dom_object *intern; in PHP_FUNCTION() local 919 dom_object *intern; in PHP_FUNCTION() local 1040 dom_object *intern; in PHP_FUNCTION() local 1103 dom_object *intern; in PHP_FUNCTION() local [all …]
|
H A D | entityreference.c | 54 dom_object *intern; in PHP_METHOD() local 75 intern = Z_DOMOBJ_P(id); in PHP_METHOD() 76 if (intern != NULL) { in PHP_METHOD() 77 oldnode = dom_object_get_node(intern); in PHP_METHOD() 81 php_libxml_increment_node_ptr((php_libxml_node_object *)intern, node, (void *)intern); in PHP_METHOD()
|
H A D | cdatasection.c | 55 dom_object *intern; in PHP_METHOD() local 70 intern = Z_DOMOBJ_P(id); in PHP_METHOD() 71 oldnode = dom_object_get_node(intern); in PHP_METHOD() 75 php_libxml_increment_node_ptr((php_libxml_node_object *)intern, nodep, (void *)intern); in PHP_METHOD()
|
H A D | element.c | 159 dom_object *intern; in PHP_METHOD() local 328 dom_object *intern; in PHP_FUNCTION() local 372 dom_object *intern; in PHP_FUNCTION() local 436 dom_object *intern; in PHP_FUNCTION() local 486 dom_object *intern; in PHP_FUNCTION() local 661 dom_object *intern; in PHP_FUNCTION() local 745 dom_object *intern; in PHP_FUNCTION() local 870 dom_object *intern; in PHP_FUNCTION() local 926 dom_object *intern; in PHP_FUNCTION() local 1081 dom_object *intern; in PHP_FUNCTION() local [all …]
|
H A D | text.c | 70 dom_object *intern; in PHP_METHOD() local 85 intern = Z_DOMOBJ_P(id); in PHP_METHOD() 86 if (intern != NULL) { in PHP_METHOD() 87 oldnode = dom_object_get_node(intern); in PHP_METHOD() 91 php_libxml_increment_node_ptr((php_libxml_node_object *)intern, nodep, (void *)intern); in PHP_METHOD() 150 dom_object *intern; in PHP_FUNCTION() local 155 DOM_GET_OBJ(node, id, xmlNodePtr, intern); in PHP_FUNCTION() 193 php_dom_create_object(nnode, return_value, intern); in PHP_FUNCTION() 205 dom_object *intern; in PHP_FUNCTION() local 210 DOM_GET_OBJ(node, id, xmlNodePtr, intern); in PHP_FUNCTION()
|
H A D | documentfragment.c | 58 dom_object *intern; in PHP_METHOD() local 71 intern = Z_DOMOBJ_P(id); in PHP_METHOD() 72 oldnode = dom_object_get_node(intern); in PHP_METHOD() 77 php_libxml_increment_node_ptr((php_libxml_node_object *)intern, nodep, (void *)intern); in PHP_METHOD() 119 dom_object *intern; in PHP_METHOD() local 129 DOM_GET_OBJ(nodep, id, xmlNodePtr, intern); in PHP_METHOD() 132 php_dom_throw_error(NO_MODIFICATION_ALLOWED_ERR, dom_get_strict_error(intern->document)); in PHP_METHOD()
|
H A D | dom_iterators.c | 133 zval_ptr_dtor(&iterator->intern.data); in php_dom_iterator_dtor() 162 zval *object = &iterator->intern.data; in php_dom_iterator_current_key() 169 if (intern != NULL && intern->ptr != NULL) { in php_dom_iterator_current_key() 183 dom_object *intern; in php_dom_iterator_move_forward() local 193 object = &iterator->intern.data; in php_dom_iterator_move_forward() 197 intern = Z_DOMOBJ_P(&iterator->curobj); in php_dom_iterator_move_forward() 199 if (intern != NULL && intern->ptr != NULL) { in php_dom_iterator_move_forward() 262 dom_object *intern; in php_dom_get_iterator() local 274 zend_iterator_init(&iterator->intern); in php_dom_get_iterator() 281 intern = Z_DOMOBJ_P(object); in php_dom_get_iterator() [all …]
|
/PHP-7.2/ext/reflection/ |
H A D | php_reflection.c | 240 if (intern->ptr) { in reflection_free_objects_storage() 269 intern->ptr = NULL; in reflection_free_objects_storage() 294 return &intern->zo; in reflection_objects_new() 1127 intern->ptr = ce; in zend_reflection_class_factory() 1129 intern->ce = ce; in zend_reflection_class_factory() 1252 intern->ce = ce; in reflection_method_factory() 1301 intern->ce = ce; in reflection_property_factory() 2065 Z_ISUNDEF(intern->obj) ? NULL : &intern->obj, in ZEND_METHOD() 2487 intern->ce = ce; in ZEND_METHOD() 3072 intern->ce = ce; in ZEND_METHOD() [all …]
|
/PHP-7.2/ext/intl/dateformat/ |
H A D | dateformat_class.c | 62 IntlDateFormatter_object* intern; in IntlDateFormatter_object_create() local 64 intern = ecalloc( 1, sizeof(IntlDateFormatter_object) + zend_object_properties_size(ce)); in IntlDateFormatter_object_create() 65 dateformat_data_init( &intern->datef_data ); in IntlDateFormatter_object_create() 66 zend_object_std_init( &intern->zo, ce ); in IntlDateFormatter_object_create() 67 object_properties_init(&intern->zo, ce); in IntlDateFormatter_object_create() 68 intern->date_type = 0; in IntlDateFormatter_object_create() 69 intern->time_type = 0; in IntlDateFormatter_object_create() 70 intern->calendar = -1; in IntlDateFormatter_object_create() 71 intern->requested_locale = NULL; in IntlDateFormatter_object_create() 74 intern->zo.handlers = &IntlDateFormatter_handlers; in IntlDateFormatter_object_create() [all …]
|