Lines Matching refs:value
214 static inline uint32_t get_string_zval_hash(zval *value) in get_string_zval_hash() argument
216 return get_string_hash(Z_STR_P(value)); in get_string_zval_hash()
251 static inline uint32_t get_double_hash(zval *value) in get_double_hash() argument
258 hack.d = Z_DVAL_P(value); in get_double_hash()
303 static uint32_t get_hash(zval *value) in get_hash() argument
305 switch (Z_TYPE_P(value)) { in get_hash()
307 return Z_LVAL_P(value); in get_hash()
310 return get_double_hash(value); in get_hash()
313 return get_string_zval_hash(value); in get_hash()
323 return get_object_hash(value); in get_hash()
326 return get_array_hash(value); in get_hash()
329 return get_resource_hash(value); in get_hash()
332 return get_hash(Z_REFVAL_P(value)); in get_hash()
415 ds_htable_bucket_t *ds_htable_lookup_by_value(ds_htable_t *table, zval *value) in ds_htable_lookup_by_value() argument
420 if (zend_is_identical(value, &bucket->value)) { in ds_htable_lookup_by_value()
433 return bucket && ds_zval_isset(&bucket->value, check_empty); in ds_htable_isset()
440 return bucket ? &bucket->value : NULL; in ds_htable_get()
459 bool ds_htable_has_value(ds_htable_t *table, zval *value) in ds_htable_has_value() argument
461 return ds_htable_lookup_by_value(table, value) != NULL; in ds_htable_has_value()
535 ZVAL_COPY_VALUE(¶ms[0], &x->value); in user_compare_by_value()
536 ZVAL_COPY_VALUE(¶ms[1], &y->value); in user_compare_by_value()
585 if (compare_function(&retval, &x->value, &y->value) == SUCCESS) { in compare_by_value()
659 zval *value, in ds_htable_init_next_bucket() argument
669 if (value) { in ds_htable_init_next_bucket()
670 ZVAL_COPY(&bucket->value, value); in ds_htable_init_next_bucket()
672 ZVAL_NULL(&bucket->value); in ds_htable_init_next_bucket()
698 void ds_htable_put(ds_htable_t *table, zval *key, zval *value) in ds_htable_put() argument
707 DTOR_AND_UNDEF(&bucket->value); in ds_htable_put()
709 if (value) { in ds_htable_put()
710 ZVAL_COPY(&bucket->value, value); in ds_htable_put()
718 zval *value; in ds_htable_values() local
720 DS_HTABLE_FOREACH_VALUE(table, value) { in ds_htable_values()
721 ZVAL_COPY(target++, value); in ds_htable_values()
813 ZVAL_COPY(return_value, &bucket->value); in ds_htable_remove()
878 slice, &src->key, &src->value, DS_HTABLE_BUCKET_HASH(src)); in ds_htable_slice()
890 slice, &src->key, &src->value, DS_HTABLE_BUCKET_HASH(src)); in ds_htable_slice()
922 slice, &src->key, &src->value, DS_HTABLE_BUCKET_HASH(src)); in ds_htable_slice()
946 zval_ptr_dtor(&bucket->value); in ds_htable_apply()
947 ZVAL_COPY_VALUE(&bucket->value, &retval); in ds_htable_apply()
986 if (zend_is_true(&bucket->value)) { in ds_htable_filter()
990 &bucket->value, in ds_htable_filter()
1020 filtered, &src->key, &src->value, DS_HTABLE_BUCKET_HASH(src)); in ds_htable_filter_callback()
1032 zval *key, *value; in ds_htable_reduce() local
1042 DS_HTABLE_FOREACH_KEY_VALUE(table, key, value) { in ds_htable_reduce()
1045 ZVAL_COPY_VALUE(¶ms[2], value); in ds_htable_reduce()
1121 ds_htable_put(merged, &bucket->key, &bucket->value); in ds_htable_merge()
1191 zval *key, *value; in ds_htable_serialize() local
1195 DS_HTABLE_FOREACH_KEY_VALUE(table, key, value) { in ds_htable_serialize()
1197 php_var_serialize(&buf, value, &serialize_data); in ds_htable_serialize()
1223 zval *value = var_tmp_var(&unserialize_data); in ds_htable_unserialize() local
1231 if (php_var_unserialize(value, &pos, end, &unserialize_data)) { in ds_htable_unserialize()
1232 var_push_dtor(&unserialize_data, value); in ds_htable_unserialize()
1237 ds_htable_put(table, key, value); in ds_htable_unserialize()