Skip to content

Commit a4f8456

Browse files
committed
Bugfixes.
1 parent 14fbb6b commit a4f8456

File tree

3 files changed

+6
-9
lines changed

3 files changed

+6
-9
lines changed

library.c

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1006,6 +1006,7 @@ redis_serialize(RedisSock *redis_sock, zval *z, char **val, int *val_len TSRMLS_
10061006
}
10071007
return 0;
10081008
}
1009+
return 0;
10091010
}
10101011

10111012
PHPAPI int
@@ -1044,5 +1045,6 @@ redis_unserialize(RedisSock *redis_sock, const char *val, int val_len, zval **re
10441045
return 0;
10451046
break;
10461047
}
1048+
return 0;
10471049
}
10481050

library.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,4 +33,4 @@ PHPAPI int
3333
redis_serialize(RedisSock *redis_sock, zval *z, char **val, int *val_len TSRMLS_CC);
3434

3535
PHPAPI int
36-
redis_unserialize(RedisSock *redis_sock, char *val, int val_len, zval **return_value TSRMLS_CC);
36+
redis_unserialize(RedisSock *redis_sock, const char *val, int val_len, zval **return_value TSRMLS_CC);

redis.c

Lines changed: 3 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -3268,17 +3268,12 @@ PHP_METHOD(Redis, zRevRank) {
32683268
PHPAPI void generic_incrby_method(INTERNAL_FUNCTION_PARAMETERS, char *keyword, int keyword_len) {
32693269
zval *object;
32703270
RedisSock *redis_sock;
3271-
<<<<<<< HEAD
3272-
char *key = NULL, *cmd, *val, *response;
3273-
int key_len, val_len, cmd_len, response_len;
3271+
3272+
char *key = NULL, *cmd, *val;
3273+
int key_len, val_len, cmd_len;
32743274
double add;
32753275
int val_free;
32763276
zval *z_value;
3277-
=======
3278-
char *key = NULL, *cmd, *member;
3279-
int key_len, member_len, cmd_len;
3280-
double val;
3281-
>>>>>>> master
32823277

32833278
if (zend_parse_method_parameters(ZEND_NUM_ARGS() TSRMLS_CC, getThis(), "Osdz",
32843279
&object, redis_ce,

0 commit comments

Comments
 (0)