Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit b4eb158

Browse files
committed
ulong => zend_ulong for 7.4
1 parent 7d47331 commit b4eb158

6 files changed

Lines changed: 13 additions & 13 deletions

File tree

cluster_library.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -176,7 +176,7 @@ cluster_multibulk_resp_recursive(RedisSock *sock, size_t elements,
176176

177177
/* Return the socket for a slot and slave index */
178178
static RedisSock *cluster_slot_sock(redisCluster *c, unsigned short slot,
179-
ulong slaveidx)
179+
zend_ulong slaveidx)
180180
{
181181
redisClusterNode *node;
182182

@@ -669,7 +669,7 @@ cluster_node_create(redisCluster *c, char *host, size_t host_len,
669669
PHP_REDIS_API int
670670
cluster_node_add_slave(redisClusterNode *master, redisClusterNode *slave)
671671
{
672-
ulong index;
672+
zend_ulong index;
673673

674674
// Allocate our slaves hash table if we haven't yet
675675
if (!master->slaves) {

library.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -754,7 +754,7 @@ int redis_cmd_append_sstr_key(smart_string *str, char *key, size_t len, RedisSoc
754754

755755
/* Append an array key to a redis smart string command. This function
756756
* handles the boilerplate conditionals around string or integer keys */
757-
int redis_cmd_append_sstr_arrkey(smart_string *cmd, zend_string *kstr, ulong idx)
757+
int redis_cmd_append_sstr_arrkey(smart_string *cmd, zend_string *kstr, zend_ulong idx)
758758
{
759759
char *arg, kbuf[128];
760760
int len;

library.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ int redis_cmd_append_sstr_i64(smart_string *str, int64_t append);
2828
int redis_cmd_append_sstr_dbl(smart_string *str, double value);
2929
int redis_cmd_append_sstr_zval(smart_string *str, zval *z, RedisSock *redis_sock);
3030
int redis_cmd_append_sstr_key(smart_string *str, char *key, size_t len, RedisSock *redis_sock, short *slot);
31-
int redis_cmd_append_sstr_arrkey(smart_string *cmd, zend_string *kstr, ulong idx);
31+
int redis_cmd_append_sstr_arrkey(smart_string *cmd, zend_string *kstr, zend_ulong idx);
3232

3333
PHP_REDIS_API int redis_spprintf(RedisSock *redis_sock, short *slot, char **ret, char *kw, char *fmt, ...);
3434

redis_array.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1033,7 +1033,7 @@ PHP_METHOD(RedisArray, mset)
10331033
char *key, kbuf[40];
10341034
int key_len;
10351035
zend_string **keys, *zkey;
1036-
ulong idx;
1036+
zend_ulong idx;
10371037

10381038
if ((ra = redis_array_get(getThis())) == NULL) {
10391039
RETURN_FALSE;

redis_array_impl.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -907,7 +907,7 @@ ra_move_zset(const char *key, int key_len, zval *z_from, zval *z_to, long ttl) {
907907
int i, count;
908908
HashTable *h_zset_vals;
909909
zend_string *zkey;
910-
ulong idx;
910+
zend_ulong idx;
911911

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

redis_commands.c

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -572,7 +572,7 @@ int redis_zrangebyscore_cmd(INTERNAL_FUNCTION_PARAMETERS, RedisSock *redis_sock,
572572
size_t key_len, start_len, end_len;
573573
zval *z_opt=NULL, *z_ele;
574574
zend_string *zkey;
575-
ulong idx;
575+
zend_ulong idx;
576576
HashTable *ht_opt;
577577

578578
PHPREDIS_NOTUSED(idx);
@@ -1329,7 +1329,7 @@ int redis_set_cmd(INTERNAL_FUNCTION_PARAMETERS, RedisSock *redis_sock,
13291329
if (z_opts && Z_TYPE_P(z_opts) == IS_ARRAY) {
13301330
HashTable *kt = Z_ARRVAL_P(z_opts);
13311331
zend_string *zkey;
1332-
ulong idx;
1332+
zend_ulong idx;
13331333
zval *v;
13341334

13351335
PHPREDIS_NOTUSED(idx);
@@ -1632,7 +1632,7 @@ int redis_hmset_cmd(INTERNAL_FUNCTION_PARAMETERS, RedisSock *redis_sock,
16321632
char *key;
16331633
int key_free, count;
16341634
size_t key_len;
1635-
ulong idx;
1635+
zend_ulong idx;
16361636
zval *z_arr;
16371637
HashTable *ht_vals;
16381638
smart_string cmdstr = {0};
@@ -2723,7 +2723,7 @@ geoStoreType get_georadius_store_type(zend_string *key) {
27232723

27242724
/* Helper function to extract optional arguments for GEORADIUS and GEORADIUSBYMEMBER */
27252725
static int get_georadius_opts(HashTable *ht, geoOptions *opts) {
2726-
ulong idx;
2726+
zend_ulong idx;
27272727
char *optstr;
27282728
zend_string *zkey;
27292729
zval *optval;
@@ -3214,7 +3214,7 @@ int redis_xadd_cmd(INTERNAL_FUNCTION_PARAMETERS, RedisSock *redis_sock,
32143214
zval *z_fields, *value;
32153215
zend_long maxlen = 0;
32163216
zend_bool approx = 0;
3217-
ulong idx;
3217+
zend_ulong idx;
32183218
HashTable *ht_fields;
32193219
int fcount, argc;
32203220
char *key, *id;
@@ -3356,7 +3356,7 @@ append_stream_args(smart_string *cmdstr, HashTable *ht, RedisSock *redis_sock,
33563356
zend_string *key, *idstr;
33573357
short oldslot;
33583358
zval **id;
3359-
ulong idx;
3359+
zend_ulong idx;
33603360

33613361
/* Append STREAM qualifier */
33623362
REDIS_CMD_APPEND_SSTR_STATIC(cmdstr, "STREAMS");
@@ -3619,7 +3619,7 @@ static void get_xclaim_options(zval *z_arr, xclaimOptions *opt) {
36193619
zend_string *zkey;
36203620
char *kval;
36213621
size_t klen;
3622-
ulong idx;
3622+
zend_ulong idx;
36233623
zval *zv;
36243624

36253625
PHPREDIS_NOTUSED(idx);

0 commit comments

Comments
 (0)