10000 Fix incompatible types · jrtkcoder/phpredis@4d66e3d · GitHub
[go: up one dir, main page]

Skip to content

Commit 4d66e3d

Browse files
Jan-ESean-Der
authored andcommitted
Fix incompatible types
1 parent daa4d9f commit 4d66e3d

File tree

6 files changed

+9
-9
lines changed

6 files changed

+9
-9
lines changed

library.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1217,7 +1217,7 @@ static void array_zip_values_and_scores(RedisSock *redis_sock, zval *z_tab,
12171217
char *hkey, *hval;
12181218
zend_string *tablekey;
12191219
int hkey_len;
1220-
unsigned long idx;
1220+
zend_ulong idx;
12211221
zval *z_key_p, *z_value_p;
12221222

12231223
zend_hash_get_current_key(keytable, &tablekey, &idx);

redis.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1848,7 +1848,7 @@ generic_mset(INTERNAL_FUNCTION_PARAMETERS, char *kw, ResultCallback fun) {
18481848
zend_string *key_zstr;
18491849
char *val, *key;
18501850
size_t val_len, key_len;
1851-
unsigned long idx;
1851+
zend_ulong idx;
18521852
int type;
18531853
zval *z_value_p;
18541854
int val_free, key_free;

redis_array.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -952,7 +952,7 @@ PHP_METHOD(RedisArray, mset)
952952
zend_string *key_zstr;
953953
unsigned int key_len, free_idx = 0;
954954
int type, *key_lens;
955-
unsigned long idx;
955+
zend_ulong idx;
956956

957957
/* Multi/exec support */
958958
HANDLE_MULTI_EXEC("MSET");

redis_array_impl.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -533,7 +533,7 @@ ra_index_keys(zval *z_pairs, zval *z_redis TSRMLS_DC) {
533533
zend_hash_internal_pointer_reset_ex(Z_ARRVAL_P(z_pairs), &pos);
534534
while ((z_entry_p = zend_hash_get_current_data_ex(Z_ARRVAL_P(z_pairs), &pos)) != NULL) {
535535
zend_string *key;
536-
unsigned long num_key;
536+
zend_ulong num_key;
537537
zval z_new;
538538

539539
switch (zend_hash_get_current_key_ex(Z_ARRVAL_P(z_pairs), &key, &num_key, &pos)) {
@@ -814,7 +814,7 @@ ra_move_zset(const char *key, int key_len, zval *z_from, zval *z_to, long ttl TS
814814
HashTable *h_zset_vals;
815815
zend_string *val;
816816
int i;
817-
unsigned long idx;
817+
zend_ulong idx;
818818

819819
/* run ZRANGE key 0 -1 WITHSCORES on source */
820820
ZVAL_STRINGL(&z_fun_zrange, "ZRANGE", 6);

redis_cluster.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -534,7 +534,7 @@ static int get_key_val_ht(redisCluster *c, HashTable *ht, HashPosition *ptr,
534534
clusterKeyValHT *kv TSRMLS_DC)
535535
{
536536
zval *z_val;
537-
ulong idx;
537+
zend_ulong idx;
538538
zend_string *key_zstr;
539539

540540
// Grab the key, convert it to a string using provided kbuf buffer if it's
@@ -2038,7 +2038,7 @@ PHP_METHOD(RedisCluster, watch) {
20382038
smart_string cmd = {0};
20392039
zval *z_args;
20402040
int argc = ZEND_NUM_ARGS(), i;
2041-
ulong slot;
2041+
zend_ulong slot;
20422042

20432043
// Disallow in MULTI mode
20442044
if(c->flags->mode == MULTI) {

redis_commands.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1223,7 +1223,7 @@ int redis_set_cmd(INTERNAL_FUNCTION_PARAMETERS, RedisSock *redis_sock,
12231223
if(z_opts && Z_TYPE_P(z_opts) == IS_ARRAY) {
12241224
HashTable *kt = Z_ARRVAL_P(z_opts);
12251225
int type;
1226-
unsigned long idx;
1226+
zend_ulong idx;
12271227
zend_string *k;
12281228
zval *v;
12291229

@@ -1565,7 +1565,7 @@ int redis_hmset_cmd(INTERNAL_FUNCTION_PARAMETERS, RedisSock *redis_sock,
15651565
char *key;
15661566
int key_free, count, ktype;
15671567
size_t key_len;
1568-
unsigned long idx;
1568+
zend_ulong idx;
15691569
zval *z_arr;
15701570
HashTable *ht_vals;
15711571
HashPosition pos;

0 commit comments

Comments
 (0)
0