/php-src/ext/spl/ |
H A D | spl_directory.c | 143 if (intern->oth_handler && intern->oth_handler->dtor) { in spl_filesystem_object_free_storage() 144 intern->oth_handler->dtor(intern); in spl_filesystem_object_free_storage() 273 if (!intern->u.dir.dirp || !php_stream_readdir(intern->u.dir.dirp, &intern->u.dir.entry)) { in spl_filesystem_dir_read() 341 if (!ZSTR_LEN(intern->file_name) || !intern->u.file.stream) { in spl_filesystem_file_open() 362 …intern->file_name = zend_string_init(ZSTR_VAL(intern->file_name), ZSTR_LEN(intern->file_name)-1, 0… in spl_filesystem_file_open() 364 intern->file_name = zend_string_copy(intern->file_name); in spl_filesystem_file_open() 437 if (intern->oth_handler && intern->oth_handler->clone) { in spl_filesystem_object_clone() 438 intern->oth_handler->clone(source, intern); in spl_filesystem_object_clone() 495 return intern; in spl_filesystem_object_create_info() 1281 if (intern->type == SPL_FS_DIR && !intern->file_name && intern->u.dir.entry.d_name[0]) { in PHP_METHOD() [all …]
|
H A D | spl_observer.c | 86 …zend_call_method_with_1_params(&intern->std, intern->std.ce, &intern->fptr_get_hash, "getHash", &r… in spl_object_storage_get_hash() 262 intern->pos = 0; in spl_object_storage_new_ex() 757 zend_hash_move_forward_ex(&intern->storage, &intern->pos); in PHP_METHOD() 758 intern->index++; in PHP_METHOD() 783 zend_hash_move_forward_ex(&intern->storage, &intern->pos); in PHP_METHOD() 792 zend_hash_move_forward_ex(&intern->storage, &intern->pos); in PHP_METHOD() 1142 zend_hash_move_forward_ex(&intern->storage, &intern->pos); in PHP_METHOD() 1206 zend_hash_move_forward_ex(&intern->storage, &intern->pos); in PHP_METHOD() 1227 zend_hash_move_forward_ex(&intern->storage, &intern->pos); in PHP_METHOD() 1268 zend_hash_move_forward_ex(&intern->storage, &intern->pos); in PHP_METHOD() [all …]
|
H A D | spl_iterators.c | 1407 intern->inner.iterator = intern->inner.ce->get_iterator(intern->inner.ce, zobject, 0); in spl_dual_it_construct() 1409 return intern; in spl_dual_it_construct() 1496 intern->inner.iterator->funcs->get_current_key(intern->inner.iterator, &intern->current.key); in spl_dual_it_fetch() 1502 ZVAL_LONG(&intern->current.key, intern->current.pos); in spl_dual_it_fetch() 1811 …&intern->current.data, intern->u.regex.mode == REGIT_MODE_ALL_MATCHES, intern->u.regex.preg_flags,… in PHP_METHOD() 2121 …if (intern->u.limit.count != -1 && intern->current.pos >= intern->u.limit.offset + intern->u.limit… in spl_limit_it_valid() 2137 if (pos >= intern->u.limit.offset + intern->u.limit.count && intern->u.limit.count != -1) { in spl_limit_it_seek() 2181 spl_limit_it_seek(intern, intern->u.limit.offset); in PHP_METHOD() 2194 …RETURN_BOOL((intern->u.limit.count == -1 || intern->current.pos < intern->u.limit.offset + intern-… in PHP_METHOD() 2207 …if (intern->u.limit.count == -1 || intern->current.pos < intern->u.limit.offset + intern->u.limit.… in PHP_METHOD() [all …]
|
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() 757 llist = intern->llist; in PHP_METHOD() 934 …spl_dllist_it_helper_move_forward(&intern->traverse_pointer, &intern->traverse_position, intern->l… in PHP_METHOD() 947 …spl_dllist_it_helper_move_forward(&intern->traverse_pointer, &intern->traverse_position, intern->l… in PHP_METHOD() [all …]
|
H A D | spl_array.c | 98 intern = Z_SPLARRAY_P(&intern->array); in spl_array_is_object() 100 return (intern->ar_flags & SPL_ARRAY_IS_SELF) || Z_TYPE(intern->array) == IS_OBJECT; in spl_array_is_object() 141 spl_array_object *intern; in spl_array_object_new_ex() local 150 intern->ar_flags = 0; in spl_array_object_new_ex() 151 intern->is_child = false; in spl_array_object_new_ex() 152 intern->bucket = NULL; in spl_array_object_new_ex() 221 return &intern->std; in spl_array_object_new_ex() 952 ZVAL_COPY(&intern->bucket->val, &intern->array); in spl_array_set_array() 1193 intern->nApplyCount++; in spl_array_method() 1195 intern->nApplyCount--; in spl_array_method() [all …]
|
H A D | spl_fixedarray.c | 54 zend_object_iterator intern; member 218 *n = (int)intern->array.size; in spl_fixedarray_object_get_gc() 310 return &intern->std; in spl_fixedarray_object_new_ex() 535 *count = intern->array.size; in spl_fixedarray_object_count_elements() 645 intern->array.size = 0; in PHP_METHOD() 648 ZVAL_COPY(&intern->array.elements[intern->array.size], elem); in PHP_METHOD() 649 intern->array.size++; in PHP_METHOD() 657 if (intern->array.size) { in PHP_METHOD() 658 intern->array.elements = erealloc(intern->array.elements, sizeof(zval) * intern->array.size); in PHP_METHOD() 763 intern->array = array; in PHP_METHOD() [all …]
|
H A D | spl_heap.c | 441 return &intern->std; in spl_heap_object_new_ex() 477 return &intern->std; in spl_heap_object_new_ex() 624 spl_heap_object *intern; in PHP_METHOD() local 646 spl_heap_object *intern; in PHP_METHOD() local 669 spl_heap_object *intern; in PHP_METHOD() local 688 if (!intern->fptr_cmp) { in PHP_METHOD() 711 spl_heap_object *intern; in PHP_METHOD() local 736 spl_heap_object *intern; in PHP_METHOD() local 765 spl_heap_object *intern; in PHP_METHOD() local 778 intern->flags = value; in PHP_METHOD() [all …]
|
/php-src/ext/dom/ |
H A D | token_list.c | 29 #define TOKEN_LIST_GET_SET(intern) (&(intern)->token_set) argument 147 efree(intern->cached_string); in dom_token_list_update() 148 intern->cached_string = value; in dom_token_list_update() 172 intern->cached_string = NULL; in dom_token_list_update_set() 189 efree(intern->cached_string); in dom_token_list_ensure_set_up_to_date() 205 intern->dom.ptr = ptr; in dom_token_list_ctor() 231 efree(intern->cached_string); in dom_token_list_free_obj() 479 dom_token_list_update(intern); in PHP_METHOD() 505 dom_token_list_update(intern); in PHP_METHOD() 548 dom_token_list_update(intern); in PHP_METHOD() [all …]
|
H A D | xpath.c | 43 if (intern->dom.ptr != NULL) { in dom_xpath_objects_free_storage() 75 if (UNEXPECTED(intern == NULL)) { in dom_xpath_ext_fetch_intern() 81 return intern; in dom_xpath_ext_fetch_intern() 87 if (!intern) { in dom_xpath_ext_function_php() 110 if (!intern) { in dom_xpath_ext_function_trampoline() 153 intern->dom.ptr = ctx; in dom_xpath_construct() 154 ctx->userData = (void *)intern; in dom_xpath_construct() 439 &intern->xpath_callbacks, in PHP_METHOD() 440 intern->dom.ptr, in PHP_METHOD() 476 &intern->xpath_callbacks, in PHP_METHOD() [all …]
|
H A D | documentfragment.c | 37 dom_object *intern; in PHP_METHOD() local 50 intern = Z_DOMOBJ_P(ZEND_THIS); in PHP_METHOD() 51 oldnode = dom_object_get_node(intern); in PHP_METHOD() 53 php_libxml_node_decrement_resource((php_libxml_node_object *)intern); in PHP_METHOD() 55 php_libxml_increment_node_ptr((php_libxml_node_object *)intern, nodep, (void *)intern); in PHP_METHOD() 63 dom_object *intern; in PHP_METHOD() local 74 DOM_GET_OBJ(nodep, id, xmlNodePtr, intern); in PHP_METHOD() 77 php_dom_throw_error(NO_MODIFICATION_ALLOWED_ERR, dom_get_strict_error(intern->document)); in PHP_METHOD()
|
H A D | element.c | 43 dom_object *intern; in PHP_METHOD() local 298 dom_object *intern; in PHP_METHOD() local 348 dom_object *intern; in PHP_METHOD() local 409 dom_object *intern; in PHP_METHOD() local 605 dom_object *intern; in PHP_METHOD() local 626 dom_object *intern; in PHP_METHOD() local 652 dom_object *intern; in PHP_METHOD() local 884 dom_object *intern; in PHP_METHOD() local 1044 dom_object *intern; in PHP_METHOD() local 1132 dom_object *intern; in PHP_METHOD() local [all …]
|
H A D | cdatasection.c | 37 dom_object *intern; in PHP_METHOD() local 52 intern = Z_DOMOBJ_P(ZEND_THIS); in PHP_METHOD() 53 oldnode = dom_object_get_node(intern); in PHP_METHOD() 55 php_libxml_node_decrement_resource((php_libxml_node_object *)intern); in PHP_METHOD() 57 php_libxml_increment_node_ptr((php_libxml_node_object *)intern, nodep, (void *)intern); in PHP_METHOD()
|
H A D | comment.c | 37 dom_object *intern; in PHP_METHOD() local 52 intern = Z_DOMOBJ_P(ZEND_THIS); in PHP_METHOD() 53 oldnode = dom_object_get_node(intern); in PHP_METHOD() 55 php_libxml_node_decrement_resource((php_libxml_node_object *)intern); in PHP_METHOD() 57 php_libxml_increment_node_ptr((php_libxml_node_object *)intern, (xmlNodePtr)nodep, (void *)intern); in PHP_METHOD()
|
H A D | text.c | 38 dom_object *intern; in PHP_METHOD() local 53 intern = Z_DOMOBJ_P(ZEND_THIS); in PHP_METHOD() 54 oldnode = dom_object_get_node(intern); in PHP_METHOD() 56 php_libxml_node_decrement_resource((php_libxml_node_object *)intern); in PHP_METHOD() 58 php_libxml_increment_node_ptr((php_libxml_node_object *)intern, nodep, (void *)intern); in PHP_METHOD() 106 dom_object *intern; in PHP_METHOD() local 112 DOM_GET_OBJ(node, id, xmlNodePtr, intern); in PHP_METHOD() 123 if (php_dom_follow_spec_intern(intern)) { in PHP_METHOD() 149 php_dom_create_object(nnode, return_value, intern); in PHP_METHOD() 160 dom_object *intern; in PHP_METHOD() local [all …]
|
H A D | characterdata.c | 40 if (php_dom_follow_spec_intern(intern)) { in dom_convert_number_unsigned() 112 dom_object *intern; in PHP_METHOD() local 119 DOM_GET_OBJ(node, id, xmlNodePtr, intern); in PHP_METHOD() 129 …if (!dom_convert_number_unsigned(intern, offset_input, &offset) || !dom_convert_number_unsigned(in… in PHP_METHOD() 160 dom_object *intern; in dom_character_data_append_data() local 198 dom_object *intern; in dom_character_data_insert_data() local 205 DOM_GET_OBJ(node, id, xmlNodePtr, intern); in dom_character_data_insert_data() 263 dom_object *intern; in dom_character_data_delete_data() local 270 DOM_GET_OBJ(node, id, xmlNodePtr, intern); in dom_character_data_delete_data() 333 dom_object *intern; in dom_character_data_replace_data() local [all …]
|
H A D | document.c | 434 dom_object *intern; in PHP_METHOD() local 466 dom_object *intern; in PHP_METHOD() local 506 dom_object *intern; in PHP_METHOD() local 533 dom_object *intern; in PHP_METHOD() local 561 dom_object *intern; in PHP_METHOD() local 591 dom_object *intern; in PHP_METHOD() local 632 dom_object *intern; in dom_document_create_processing_instruction() local 682 dom_object *intern; in PHP_METHOD() local 723 dom_object *intern; in PHP_METHOD() local 859 dom_object *intern; in PHP_METHOD() local [all …]
|
/php-src/ext/xsl/ |
H A D | xsltprocessor.c | 90 return intern; in xsl_ext_fetch_intern() 96 if (!intern) { in xsl_ext_function_php() 119 if (!intern) { in xsl_ext_function_trampoline() 421 efree(intern->doc); in php_xsl_apply_stylesheet() 422 intern->doc = NULL; in php_xsl_apply_stylesheet() 438 xsl_object *intern; in PHP_METHOD() local 493 xsl_object *intern; in PHP_METHOD() local 524 xsl_object *intern; in PHP_METHOD() local 585 xsl_object *intern; in PHP_METHOD() local 671 xsl_object *intern; in PHP_METHOD() local [all …]
|
H A D | php_xsl.c | 63 if (intern->ptr) { in xsl_free_sheet() 72 intern->ptr = NULL; in xsl_free_sheet() 81 zend_object_std_dtor(&intern->std); in xsl_objects_free_storage() 83 if (intern->parameter) { in xsl_objects_free_storage() 90 xsl_free_sheet(intern); in xsl_objects_free_storage() 92 if (intern->doc) { in xsl_objects_free_storage() 94 efree(intern->doc); in xsl_objects_free_storage() 97 if (intern->sheet_ref_obj) { in xsl_objects_free_storage() 101 if (intern->profiling) { in xsl_objects_free_storage() 110 xsl_object *intern; in xsl_objects_new() local [all …]
|
/php-src/ext/xmlreader/ |
H A D | php_xmlreader.c | 396 if (intern->ptr) { in ZEND_GET_MODULE() 453 if (intern->ptr) { in php_xmlreader_string_arg() 479 if (intern->ptr) { in php_xmlreader_no_arg() 503 if (intern->ptr) { in php_xmlreader_no_arg_string() 538 if (intern->ptr) { in php_xmlreader_set_relaxng_schema() 615 if (intern->ptr) { in PHP_METHOD() 650 if (intern->ptr) { in PHP_METHOD() 674 if (!intern || !intern->ptr) { in PHP_METHOD() 726 if (intern->ptr) { in PHP_METHOD() 1098 if (intern && intern->ptr) { in PHP_METHOD() [all …]
|
/php-src/ext/intl/dateformat/ |
H A D | dateformat_class.c | 49 IntlDateFormatter_object* intern; in IntlDateFormatter_object_create() local 51 intern = zend_object_alloc(sizeof(IntlDateFormatter_object), ce); in IntlDateFormatter_object_create() 52 dateformat_data_init( &intern->datef_data ); in IntlDateFormatter_object_create() 53 zend_object_std_init( &intern->zo, ce ); in IntlDateFormatter_object_create() 54 object_properties_init(&intern->zo, ce); in IntlDateFormatter_object_create() 55 intern->date_type = 0; in IntlDateFormatter_object_create() 56 intern->time_type = 0; in IntlDateFormatter_object_create() 57 intern->calendar = -1; in IntlDateFormatter_object_create() 58 intern->requested_locale = NULL; in IntlDateFormatter_object_create() 60 return &intern->zo; in IntlDateFormatter_object_create()
|
/php-src/Zend/ |
H A D | zend_interfaces.c | 534 return intern; in zend_internal_iterator_fetch() 561 if (!intern) { in ZEND_METHOD() 569 zval *data = intern->iter->funcs->get_current_data(intern->iter); in ZEND_METHOD() 579 if (!intern) { in ZEND_METHOD() 588 intern->iter->funcs->get_current_key(intern->iter, return_value); in ZEND_METHOD() 598 if (!intern) { in ZEND_METHOD() 608 intern->iter->funcs->move_forward(intern->iter); in ZEND_METHOD() 615 if (!intern) { in ZEND_METHOD() 623 RETURN_BOOL(intern->iter->funcs->valid(intern->iter) == SUCCESS); in ZEND_METHOD() 630 if (!intern) { in ZEND_METHOD() [all …]
|
/php-src/ext/dom/parentnode/ |
H A D | css_selectors.c | 32 dom_object *intern; member 42 if (intern->document != NULL && intern->document->quirks_mode) { in dom_quirks_opt() 79 const dom_object *intern in dom_parse_selector() argument 128 const dom_object *intern, in dom_query_selector_common() argument 155 const dom_object *intern, in dom_query_matches() argument 180 const dom_object *intern, in dom_query_closest() argument 219 intern, in dom_parent_node_query_selector() 227 DOM_RET_OBJ(result, intern); in dom_parent_node_query_selector() 239 intern, in dom_parent_node_query_selector_all() 263 intern, in dom_element_matches() [all …]
|
/php-src/ext/zip/ |
H A D | php_zip.c | 469 intern = obj->za; \ 470 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() 1453 struct zip *intern; local 1529 struct zip *intern; local 1556 struct zip *intern; local 1610 struct zip *intern; local [all …]
|
/php-src/ext/mysqli/ |
H A D | mysqli_result_iterator.c | 34 zend_object_iterator intern; member 52 zend_iterator_init(&iterator->intern); in php_mysqli_result_get_iterator() 55 ZVAL_OBJ(&iterator->intern.data, Z_OBJ_P(object)); in php_mysqli_result_get_iterator() 56 iterator->intern.funcs = &php_mysqli_result_iterator_funcs; in php_mysqli_result_get_iterator() 60 return &iterator->intern; in php_mysqli_result_get_iterator() 70 zval_ptr_dtor(&iterator->intern.data); in php_mysqli_result_iterator_dtor() 98 mysqli_object *intern = iterator->result; in php_mysqli_result_iterator_move_forward() local 101 MYSQLI_FETCH_RESOURCE_BY_OBJ(result, MYSQL_RES *, intern, "mysqli_result", MYSQLI_STATUS_VALID); in php_mysqli_result_iterator_move_forward() 115 mysqli_object *intern = iterator->result; in php_mysqli_result_iterator_rewind() local 118 MYSQLI_FETCH_RESOURCE_BY_OBJ(result, MYSQL_RES *, intern, "mysqli_result", MYSQLI_STATUS_VALID); in php_mysqli_result_iterator_rewind()
|
/php-src/ext/reflection/ |
H A D | php_reflection.c | 244 if (intern->ptr) { in reflection_free_objects_storage() 279 intern->ptr = NULL; in reflection_free_objects_storage() 300 return &intern->zo; in reflection_objects_new() 1314 intern->ptr = ce; in zend_reflection_class_factory() 1316 intern->ce = ce; in zend_reflection_class_factory() 1488 intern->ce = ce; in reflection_method_factory() 1511 intern->ce = ce; in reflection_property_factory() 2164 Z_ISUNDEF(intern->obj) ? NULL : &intern->obj, in ZEND_METHOD() 2549 intern->ce = ce; in ZEND_METHOD() 3264 intern->ce = ce; in instantiate_reflection_method() [all …]
|