Home
last modified time | relevance | path

Searched refs:ht (Results 51 – 75 of 99) sorted by relevance

1234

/PHP-8.2/ext/standard/
H A Dvar_unserializer.re468 static zend_always_inline int process_nested_array_data(UNSERIALIZE_PARAMETER, HashTable *ht, zend_…
496 data = zend_hash_index_lookup(ht, idx);
506 data = zend_hash_lookup(ht, Z_STR(key));
603 data = zend_hash_find(ht, Z_STR(key));
658 data = zend_hash_add_new(ht, Z_STR(key), &EG(uninitialized_zval));
663 data = zend_hash_lookup(ht, Z_STR(key));
790 HashTable *ht;
825 ht = Z_OBJPROP_P(rval);
826 if (elements >= (zend_long)(HT_MAX_SIZE - zend_hash_num_elements(ht))) {
830 zend_hash_extend(ht, zend_hash_num_elements(ht) + elements, HT_IS_PACKED(ht));
[all …]
H A Dinfo.c88 static ZEND_COLD void php_info_print_stream_hash(const char *name, HashTable *ht) /* {{{ */ in php_info_print_stream_hash() argument
92 if (ht) { in php_info_print_stream_hash()
93 if (zend_hash_num_elements(ht)) { in php_info_print_stream_hash()
102 if (!HT_IS_PACKED(ht)) { in php_info_print_stream_hash()
103 ZEND_HASH_MAP_FOREACH_STR_KEY(ht, key) { in php_info_print_stream_hash()
H A Dhtml.c739 static int resolve_named_entity_html(const char *start, size_t length, const entity_ht *ht, unsigne… in resolve_named_entity_html() argument
744 s = ht->buckets[hash % ht->num_elems]; in resolve_named_entity_html()
/PHP-8.2/Zend/
H A Dzend_execute_API.c314 HashTable *ht = ZEND_MAP_PTR_GET(op_array->static_variables_ptr); in zend_shutdown_executor_values() local
315 if (ht) { in zend_shutdown_executor_values()
316 zend_array_destroy(ht); in zend_shutdown_executor_values()
367 if (ht) { in zend_shutdown_executor_values()
368 zend_array_destroy(ht); in zend_shutdown_executor_values()
1806 HashTable *ht = execute_data->symbol_table; in zend_attach_symbol_table() local
1816 zval *zv = zend_hash_find_known_hash(ht, *str); in zend_attach_symbol_table()
1828 zv = zend_hash_add_new(ht, *str, var); in zend_attach_symbol_table()
1841 HashTable *ht = execute_data->symbol_table; in zend_detach_symbol_table() local
1851 zend_hash_del(ht, *str); in zend_detach_symbol_table()
[all …]
H A Dzend_closures.c754 HashTable *ht = ZEND_MAP_PTR_GET(func->op_array.static_variables_ptr); in zend_create_closure_ex() local
756 if (!ht) { in zend_create_closure_ex()
757 ht = zend_array_dup(func->op_array.static_variables); in zend_create_closure_ex()
758 ZEND_MAP_PTR_SET(func->op_array.static_variables_ptr, ht); in zend_create_closure_ex()
760 ZEND_MAP_PTR_INIT(closure->func.op_array.static_variables_ptr, ht); in zend_create_closure_ex()
H A Dzend_exceptions.c482 tmp = zend_hash_find(ht, key); \
530 static void _build_trace_string(smart_str *str, HashTable *ht, uint32_t num) /* {{{ */ in _build_trace_string() argument
538 file = zend_hash_find_known_hash(ht, ZSTR_KNOWN(ZEND_STR_FILE)); in _build_trace_string()
545 tmp = zend_hash_find_known_hash(ht, ZSTR_KNOWN(ZEND_STR_LINE)); in _build_trace_string()
565 tmp = zend_hash_find_known_hash(ht, ZSTR_KNOWN(ZEND_STR_ARGS)); in _build_trace_string()
H A Dzend_constants.c543 static void* zend_hash_add_constant(HashTable *ht, zend_string *key, zend_constant *c) in zend_hash_add_constant() argument
549 ret = zend_hash_add_ptr(ht, key, copy); in zend_hash_add_constant()
H A Dzend_operators.c799 HashTable *ht = zend_new_array(1); in convert_scalar_to_array() local
800 zend_hash_index_add_new(ht, 0, op); in convert_scalar_to_array()
801 ZVAL_ARR(op, ht); in convert_scalar_to_array()
819 HashTable *ht = zend_std_build_object_properties_array(Z_OBJ_P(op)); in convert_to_array() local
821 ZVAL_ARR(op, ht); in convert_to_array()
859 HashTable *ht = zend_symtable_to_proptable(Z_ARR_P(op)); in convert_to_object() local
862 if (GC_FLAGS(ht) & IS_ARRAY_IMMUTABLE) { in convert_to_object()
864 ht = zend_array_dup(ht); in convert_to_object()
865 } else if (ht != Z_ARR_P(op)) { in convert_to_object()
868 GC_DELREF(ht); in convert_to_object()
[all …]
H A Dzend_execute.h80 ZEND_API ZEND_COLD zval* ZEND_FASTCALL zend_undefined_offset_write(HashTable *ht, zend_long lval);
81 ZEND_API ZEND_COLD zval* ZEND_FASTCALL zend_undefined_index_write(HashTable *ht, zend_string *offse…
H A Dzend_opcode.c530 HashTable *ht = ZEND_MAP_PTR_GET(op_array->static_variables_ptr); in zend_destroy_static_vars() local
531 if (ht) { in zend_destroy_static_vars()
532 zend_array_destroy(ht); in zend_destroy_static_vars()
H A Dzend.c370 static void print_hash(smart_str *buf, HashTable *ht, int indent, bool is_object) /* {{{ */ in print_hash() argument
382 ZEND_HASH_FOREACH_KEY_VAL_IND(ht, num_key, string_key, tmp) { in print_hash()
421 static void print_flat_hash(smart_str *buf, HashTable *ht) /* {{{ */ in print_flat_hash() argument
428 ZEND_HASH_FOREACH_KEY_VAL_IND(ht, num_key, string_key, tmp) { in print_flat_hash()
/PHP-8.2/ext/sockets/
H A Dmulticast.c107 static zend_result php_get_if_index_from_array(const HashTable *ht, const char *key, in php_get_if_index_from_array() argument
112 if ((val = zend_hash_str_find(ht, key, strlen(key))) == NULL) { in php_get_if_index_from_array()
120 static zend_result php_get_address_from_array(const HashTable *ht, const char *key, in php_get_address_from_array() argument
126 if ((val = zend_hash_str_find(ht, key, strlen(key))) == NULL) { in php_get_address_from_array()
/PHP-8.2/ext/ftp/
H A Dftp.h166 int ftp_mlsd_parse_line(HashTable *ht, const char *input);
/PHP-8.2/ext/intl/converter/
H A Dconverter.c190 HashTable *ht = Z_ARRVAL_P(val); in php_converter_append_toUnicode_target() local
193 ZEND_HASH_FOREACH_VAL(ht, tmpzval) { in php_converter_append_toUnicode_target()
274 HashTable *ht = Z_ARRVAL_P(val); in php_converter_append_fromUnicode_target() local
276 ZEND_HASH_FOREACH_VAL(ht, tmpzval) { in php_converter_append_fromUnicode_target()
/PHP-8.2/ext/exif/
H A Dexif.c1320 HashTable *ht = malloc(sizeof(HashTable)); in exif_make_tag_ht() local
1321 zend_hash_init(ht, 0, NULL, NULL, 1); in exif_make_tag_ht()
1328 return ht; in exif_make_tag_ht()
1333 HashTable *ht = Z_PTR_P(zv); in exif_tag_ht_dtor() local
1334 zend_hash_destroy(ht); in exif_tag_ht_dtor()
1335 free(ht); in exif_tag_ht_dtor()
1340 HashTable *ht; in exif_get_tag_ht() local
1348 if (ht) { in exif_get_tag_ht()
1349 return ht; in exif_get_tag_ht()
1352 ht = exif_make_tag_ht(tag_table); in exif_get_tag_ht()
[all …]
/PHP-8.2/ext/soap/
H A Dphp_sdl.c592 HashTable ht; in wsdl_soap_binding_body() local
625 *params = ht; in wsdl_soap_binding_body()
1236 zend_hash_next_index_insert_ptr(ht, data); in sdl_deserialize_key()
1238 zend_hash_str_add_ptr(ht, *in, len, data); in sdl_deserialize_key()
1532 HashTable *ht; in sdl_deserialize_parameters() local
1536 ht = emalloc(sizeof(HashTable)); in sdl_deserialize_parameters()
1540 sdl_deserialize_key(ht, param, in); in sdl_deserialize_parameters()
1549 return ht; in sdl_deserialize_parameters()
2046 if (ht) { in sdl_serialize_parameters()
2047 i = zend_hash_num_elements(ht); in sdl_serialize_parameters()
[all …]
H A Dphp_schema.c2076 static void* schema_find_by_ref(HashTable *ht, char *ref) in schema_find_by_ref() argument
2080 if ((tmp = zend_hash_str_find_ptr(ht, ref, strlen(ref))) != NULL) { in schema_find_by_ref()
2085 if ((tmp = zend_hash_str_find_ptr(ht, ref, strlen(ref))) != NULL) { in schema_find_by_ref()
2141 static void schema_attributegroup_fixup(sdlCtx *ctx, sdlAttributePtr attr, HashTable *ht) in schema_attributegroup_fixup() argument
2166 HashTable *ht = emalloc(sizeof(HashTable)); in schema_attributegroup_fixup() local
2167 …zend_hash_init(ht, zend_hash_num_elements(newAttr->extraAttributes), NULL, delete_extra_attribute,… in schema_attributegroup_fixup()
2168 zend_hash_copy(ht, newAttr->extraAttributes, copy_extra_attribute); in schema_attributegroup_fixup()
2169 newAttr->extraAttributes = ht; in schema_attributegroup_fixup()
2173 zend_hash_add_ptr(ht, _key, newAttr); in schema_attributegroup_fixup()
2179 schema_attributegroup_fixup(ctx, tmp_attr, ht); in schema_attributegroup_fixup()
/PHP-8.2/ext/phar/
H A Ddirstream.c143 static int phar_add_empty(HashTable *ht, char *arKey, uint32_t nKeyLength) /* {{{ */ in phar_add_empty() argument
148 zend_hash_str_update(ht, arKey, nKeyLength, &dummy); in phar_add_empty()
/PHP-8.2/ext/ffi/
H A Dffi.c2068 ht = zend_new_array(1); in zend_ffi_cdata_get_debug_info()
2071 return ht; in zend_ffi_cdata_get_debug_info()
2079 return ht; in zend_ffi_cdata_get_debug_info()
2085 return ht; in zend_ffi_cdata_get_debug_info()
2091 return ht; in zend_ffi_cdata_get_debug_info()
2109 return ht; in zend_ffi_cdata_get_debug_info()
2118 return ht; in zend_ffi_cdata_get_debug_info()
2120 ht = zend_new_array(0); in zend_ffi_cdata_get_debug_info()
2123 return ht; in zend_ffi_cdata_get_debug_info()
4779 HashTable *ht; in ZEND_METHOD() local
[all …]
/PHP-8.2/ext/dom/
H A Delement.c337 HashTable *ht = Z_ARRVAL_P(return_value); in PHP_METHOD() local
338 zend_hash_real_init_packed(ht); in PHP_METHOD()
343 zend_hash_next_index_insert(ht, &tmp); in PHP_METHOD()
348 zend_hash_next_index_insert(ht, &tmp); in PHP_METHOD()
/PHP-8.2/ext/mbstring/
H A Dmbstring.c2962 if (ht) { in is_trim_wchar()
2963 return zend_hash_index_exists(ht, w); in is_trim_wchar()
3646 HashTable *ht = HASH_OF(var); in mb_recursive_count_strings() local
3647 if (ht != NULL) { in mb_recursive_count_strings()
3649 ZEND_HASH_FOREACH_VAL_IND(ht, entry) { in mb_recursive_count_strings()
3678 HashTable *ht = HASH_OF(var); in mb_recursive_find_strings() local
3679 if (ht != NULL) { in mb_recursive_find_strings()
3681 ZEND_HASH_FOREACH_VAL_IND(ht, entry) { in mb_recursive_find_strings()
3721 HashTable *ht = HASH_OF(var); in mb_recursive_convert_variable() local
3722 if (ht != NULL) { in mb_recursive_convert_variable()
[all …]
/PHP-8.2/ext/reflection/
H A Dphp_reflection.c1960 HashTable *ht; in ZEND_METHOD() local
1963 ht = ZEND_MAP_PTR_GET(fptr->op_array.static_variables_ptr); in ZEND_METHOD()
1964 if (!ht) { in ZEND_METHOD()
1965 ht = zend_array_dup(fptr->op_array.static_variables); in ZEND_METHOD()
1966 ZEND_MAP_PTR_SET(fptr->op_array.static_variables_ptr, ht); in ZEND_METHOD()
4504 zend_hash_next_index_insert_new(ht, &method); in _addmethod()
4661 zend_hash_next_index_insert_new(ht, &property); in _addproperty()
6466 HashTable *ht; in ZEND_METHOD() local
6473 Z_PARAM_ARRAY_HT(ht) in ZEND_METHOD()
6478 item = zend_hash_find(ht, string_key); in ZEND_METHOD()
[all …]
/PHP-8.2/Zend/Optimizer/
H A Dsccp.c704 HashTable *ht; in ct_eval_in_array() local
710 ht = Z_ARRVAL_P(op2); in ct_eval_in_array()
712 res = zend_hash_exists(ht, Z_STR_P(op1)); in ct_eval_in_array()
715 res = zend_hash_index_exists(ht, Z_LVAL_P(op1)); in ct_eval_in_array()
720 res = zend_hash_exists(ht, ZSTR_EMPTY_ALLOC()); in ct_eval_in_array()
726 ZEND_HASH_MAP_FOREACH_STR_KEY(ht, key) { in ct_eval_in_array()
/PHP-8.2/ext/pdo/
H A Dpdo_stmt.c97 HashTable *ht; in dispatch_param_event() local
107 ht = stmt->bound_params; in dispatch_param_event()
110 if (ht) { in dispatch_param_event()
111 ZEND_HASH_FOREACH_PTR(ht, param) { in dispatch_param_event()
119 ht = stmt->bound_columns; in dispatch_param_event()
/PHP-8.2/ext/gmp/
H A Dgmp.c310 HashTable *ht, *props = zend_std_get_properties(obj); in gmp_get_debug_info() local
315 ht = zend_array_dup(props); in gmp_get_debug_info()
318 zend_hash_str_update(ht, "num", sizeof("num")-1, &zv); in gmp_get_debug_info()
320 return ht; in gmp_get_debug_info()

Completed in 220 milliseconds

1234