/php-src/ext/standard/ |
H A D | array.c | 620 if (GC_IS_RECURSIVE(ht)) { in php_count_recursive() 624 GC_PROTECT_RECURSION(ht); in php_count_recursive() 3859 return ht->arData + ht->nNumUsed; 3886 return ht->arPacked + ht->nNumUsed; 3945 if (HT_IS_PACKED(ht)) { 3947 zval *end = ht->arPacked + ht->nNumUsed; 3988 Bucket *end = ht->arData + ht->nNumUsed; 6221 if (num_avail < ht->nNumUsed - (ht->nNumUsed >> 1)) { 6246 if (HT_IS_PACKED(ht)) { 6766 HashTable *ht; local [all …]
|
H A D | browscap.c | 269 …rowscap_entry_add_kv_to_existing_array(browser_data *bdata, browscap_entry *entry, HashTable *ht) { in browscap_entry_add_kv_to_existing_array() argument 273 zend_hash_add(ht, bdata->kv[i].key, &tmp); in browscap_entry_add_kv_to_existing_array() 279 HashTable *ht = zend_new_array(2 + (entry->parent ? 1 : 0) + (entry->kv_end - entry->kv_start)); in browscap_entry_to_array() local 284 zend_hash_add_new(ht, key, &tmp); in browscap_entry_to_array() 290 zend_hash_add_new(ht, key, &tmp); in browscap_entry_to_array() 297 zend_hash_add_new(ht, key, &tmp); in browscap_entry_to_array() 301 browscap_entry_add_kv_to_existing_array(bdata, entry, ht); in browscap_entry_to_array() 303 return ht; in browscap_entry_to_array()
|
/php-src/ext/opcache/jit/ |
H A D | zend_jit_ir.c | 11182 HashTable *ht = Z_ARRVAL_P(RT_CONSTANT(opline, opline->op2)); local 11192 ir_CONST_ADDR(ht), 11198 ir_CONST_ADDR(ht), ir_CONST_ADDR(str));
|
/php-src/ext/ffi/ |
H A D | ffi.c | 2068 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() 4781 HashTable *ht; in ZEND_METHOD() local [all …]
|
/php-src/ext/dom/ |
H A D | php_dom.h | 85 xmlHashTable *ht; member 152 void dom_namednode_iter(dom_object *basenode, int ntype, dom_object *intern, xmlHashTablePtr ht, co…
|
H A D | php_dom.c | 1348 void dom_namednode_iter(dom_object *basenode, int ntype, dom_object *intern, xmlHashTablePtr ht, co… in dom_namednode_iter() argument 1360 mapptr->ht = ht; in dom_namednode_iter() 1501 objmap->ht = NULL; in dom_nnodemap_objects_new()
|
H A D | node.c | 2129 HashTable *ht = Z_ARRVAL_P(xpath_array); in dom_canonicalization() local 2134 tmp = zend_hash_find_deref(ht, ZSTR_KNOWN(ZEND_STR_QUERY)); in dom_canonicalization() 2150 tmp = zend_hash_str_find_deref(ht, "namespaces", sizeof("namespaces")-1); in dom_canonicalization()
|
H A D | nodelist.c | 70 if (objmap->ht) { in php_dom_get_nodelist_length() 71 return xmlHashSize(objmap->ht); in php_dom_get_nodelist_length() 144 if (objmap->ht) { in php_dom_nodelist_get_item_into_zval()
|
H A D | dom_iterators.c | 65 static xmlNode *php_dom_libxml_hash_iter_ex(xmlHashTable *ht, int index) in php_dom_libxml_hash_iter_ex() argument 69 if ((htsize = xmlHashSize(ht)) > 0 && index < htsize) { in php_dom_libxml_hash_iter_ex() 74 xmlHashScan(ht, itemHashScanner, &iter); in php_dom_libxml_hash_iter_ex() 83 xmlNode *curnode = php_dom_libxml_hash_iter_ex(objmap->ht, index); in php_dom_libxml_hash_iter()
|
/php-src/sapi/phpdbg/ |
H A D | phpdbg_watch.c | 547 HashTable *ht = HT_FROM_ZVP(zv); local 549 if (!ht) { 554 phpdbg_set_ht_watchpoint(ht, &watch); 650 hti->ht = element->parent_container; 655 …phpdbg_set_addr_watchpoint(HT_GET_DATA_ADDR(hti->ht), HT_HASH_SIZE(hti->ht->nTableMask), &hti->has… 719 HashTable *ht = HT_FROM_ZVP(parent); local 721 if (!ht) { 724 char *htPtr = ((char *) ht) + HT_WATCH_OFFSET; 725 char *oldPtr = ((char *) &element->backup.ht) + HT_WATCH_OFFSET; 749 element->parent_container = ht; [all …]
|
/php-src/ext/reflection/ |
H A D | php_reflection.c | 2005 HashTable *ht; in ZEND_METHOD() local 2008 ht = ZEND_MAP_PTR_GET(fptr->op_array.static_variables_ptr); in ZEND_METHOD() 2009 if (!ht) { in ZEND_METHOD() 2010 ht = zend_array_dup(fptr->op_array.static_variables); in ZEND_METHOD() 2011 ZEND_MAP_PTR_SET(fptr->op_array.static_variables_ptr, ht); in ZEND_METHOD() 4566 zend_hash_next_index_insert_new(ht, &method); in _addmethod() 4723 zend_hash_next_index_insert_new(ht, &property); in _addproperty() 6528 HashTable *ht; in ZEND_METHOD() local 6535 Z_PARAM_ARRAY_HT(ht) in ZEND_METHOD() 6540 item = zend_hash_find(ht, string_key); in ZEND_METHOD() [all …]
|
/php-src/Zend/ |
H A D | zend_compile.c | 9112 HashTable *ht = Z_ARRVAL_P(value); in zend_try_ct_eval_array() local 9116 ZEND_HASH_FOREACH_STR_KEY_VAL(ht, key, val) { in zend_try_ct_eval_array()
|
H A D | zend_inheritance.c | 372 HashTable *ht; in track_class_dependency() local 394 if (ht) { in track_class_dependency() 396 FREE_HASHTABLE(ht); in track_class_dependency() 405 if (!ht) { in track_class_dependency() 406 ALLOC_HASHTABLE(ht); in track_class_dependency() 2690 HashTable *ht; in get_or_init_obligations_for_class() local 2699 if (ht) { in get_or_init_obligations_for_class() 2700 return ht; in get_or_init_obligations_for_class() 2707 return ht; in get_or_init_obligations_for_class() 3232 if (ht) { in zend_do_link_class() [all …]
|
H A D | zend_API.h | 351 #define zend_get_parameters_array(ht, param_count, argument_array) \ argument 631 ZEND_API zend_result array_set_zval_key(HashTable *ht, zval *key, zval *value);
|
H A D | zend_builtin_functions.c | 431 static bool validate_constant_array_argument(HashTable *ht, int argument_number) /* {{{ */ in validate_constant_array_argument() argument 436 GC_PROTECT_RECURSION(ht); in validate_constant_array_argument() 437 ZEND_HASH_FOREACH_VAL(ht, val) { in validate_constant_array_argument() 450 GC_UNPROTECT_RECURSION(ht); in validate_constant_array_argument()
|
H A D | zend_API.c | 2158 ZEND_API zend_result array_set_zval_key(HashTable *ht, zval *key, zval *value) /* {{{ */ in array_set_zval_key() argument 2164 result = zend_symtable_update(ht, Z_STR_P(key), value); in array_set_zval_key() 2167 result = zend_hash_update(ht, ZSTR_EMPTY_ALLOC(), value); in array_set_zval_key() 2171 result = zend_hash_index_update(ht, Z_RES_HANDLE_P(key), value); in array_set_zval_key() 2174 result = zend_hash_index_update(ht, 0, value); in array_set_zval_key() 2177 result = zend_hash_index_update(ht, 1, value); in array_set_zval_key() 2180 result = zend_hash_index_update(ht, Z_LVAL_P(key), value); in array_set_zval_key() 2183 result = zend_hash_index_update(ht, zend_dval_to_lval_safe(Z_DVAL_P(key)), value); in array_set_zval_key()
|
H A D | zend.c | 370 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()
|
H A D | zend_execute_API.c | 314 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() 1817 HashTable *ht = execute_data->symbol_table; in zend_attach_symbol_table() local 1827 zval *zv = zend_hash_find_known_hash(ht, *str); in zend_attach_symbol_table() 1839 zv = zend_hash_add_new(ht, *str, var); in zend_attach_symbol_table() 1852 HashTable *ht = execute_data->symbol_table; in zend_detach_symbol_table() local 1862 zend_hash_del(ht, *str); in zend_detach_symbol_table() [all …]
|
H A D | zend_execute.c | 2187 HashTable *ht; in zend_get_target_symbol_table() local 2198 return ht; in zend_get_target_symbol_table() 2216 GC_ADDREF(ht); in zend_undefined_offset_write() 2219 if (!(GC_FLAGS(ht) & IS_ARRAY_IMMUTABLE) && GC_DELREF(ht) != 1) { in zend_undefined_offset_write() 2238 GC_ADDREF(ht); in zend_undefined_index_write() 2243 if (!(GC_FLAGS(ht) & IS_ARRAY_IMMUTABLE) && GC_DELREF(ht) != 1) { in zend_undefined_index_write() 2342 GC_ADDREF(ht); in slow_index_convert() 2345 if (!(GC_FLAGS(ht) & IS_ARRAY_IMMUTABLE) && !GC_DELREF(ht)) { in slow_index_convert() 2366 if (!(GC_FLAGS(ht) & IS_ARRAY_IMMUTABLE) && !GC_DELREF(ht)) { in slow_index_convert() 2379 GC_ADDREF(ht); in slow_index_convert() [all …]
|
/php-src/ext/pgsql/ |
H A D | pgsql.c | 5487 static inline int build_assignment_string(PGconn *pg_link, smart_str *querystr, HashTable *ht, int … in build_assignment_string() argument 5492 ZEND_HASH_FOREACH_STR_KEY_VAL(ht, fld, val) { in build_assignment_string()
|
/php-src/ext/mbstring/ |
H A D | mbstring.c | 3007 if (ht) { in is_trim_wchar() 3008 return zend_hash_index_exists(ht, w); in is_trim_wchar() 3691 HashTable *ht = HASH_OF(var); in mb_recursive_count_strings() local 3692 if (ht != NULL) { in mb_recursive_count_strings() 3694 ZEND_HASH_FOREACH_VAL_IND(ht, entry) { in mb_recursive_count_strings() 3723 HashTable *ht = HASH_OF(var); in mb_recursive_find_strings() local 3724 if (ht != NULL) { in mb_recursive_find_strings() 3726 ZEND_HASH_FOREACH_VAL_IND(ht, entry) { in mb_recursive_find_strings() 3766 HashTable *ht = HASH_OF(var); in mb_recursive_convert_variable() local 3767 if (ht != NULL) { in mb_recursive_convert_variable() [all …]
|
/php-src/ext/gmp/ |
H A D | gmp.c | 310 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()
|
/php-src/ext/readline/ |
H A D | readline_cli.c | 423 …tion_generator_ht(const char *text, size_t textlen, int *state, HashTable *ht, void **pData) /* {{… in cli_completion_generator_ht() argument 429 zend_hash_internal_pointer_reset(ht); in cli_completion_generator_ht() 432 while(zend_hash_has_more_elements(ht) == SUCCESS) { in cli_completion_generator_ht() 433 zend_hash_get_current_key(ht, &name, &number); in cli_completion_generator_ht() 436 *pData = zend_hash_get_current_data_ptr(ht); in cli_completion_generator_ht() 438 zend_hash_move_forward(ht); in cli_completion_generator_ht() 441 if (zend_hash_move_forward(ht) == FAILURE) { in cli_completion_generator_ht() 478 …li_completion_generator_func(const char *text, size_t textlen, int *state, HashTable *ht) /* {{{ */ in cli_completion_generator_func() argument 481 char *retval = cli_completion_generator_ht(text, textlen, state, ht, (void**)&func); in cli_completion_generator_func() 502 …_completion_generator_define(const char *text, size_t textlen, int *state, HashTable *ht) /* {{{ */ in cli_completion_generator_define() argument [all …]
|
/php-src/ext/spl/ |
H A D | php_spl.c | 477 #define HT_MOVE_TAIL_TO_HEAD(ht) \ argument 478 ZEND_ASSERT(!HT_IS_PACKED(ht)); \ 480 Bucket tmp = (ht)->arData[(ht)->nNumUsed-1]; \ 481 memmove((ht)->arData + 1, (ht)->arData, \ 482 sizeof(Bucket) * ((ht)->nNumUsed - 1)); \ 483 (ht)->arData[0] = tmp; \ 484 zend_hash_rehash(ht); \
|
H A D | spl_fixedarray.c | 219 HashTable *ht = zend_std_get_properties(obj); in spl_fixedarray_object_get_gc() local 224 return ht; in spl_fixedarray_object_get_gc() 244 HashTable *ht = zend_new_array(size); in spl_fixedarray_object_get_properties_for() local 248 zend_hash_next_index_insert(ht, &elements[i]); in spl_fixedarray_object_get_properties_for() 257 zend_hash_add_new(ht, skey, value); in spl_fixedarray_object_get_properties_for() 259 zend_hash_index_update(ht, nkey, value); in spl_fixedarray_object_get_properties_for() 264 return ht; in spl_fixedarray_object_get_properties_for() 600 HashTable *ht = zend_std_get_properties(&intern->std); in PHP_METHOD() local 601 uint32_t num_properties = zend_hash_num_elements(ht); in PHP_METHOD() 612 ZEND_HASH_FOREACH_STR_KEY_VAL_IND(ht, key, current) { in PHP_METHOD()
|