Skip to content

Commit 97ad396

Browse files
committed
64bit compatibility problem
fix type problem of zend_parse_parameters in eval, evalsha, migrate
1 parent 22f4555 commit 97ad396

File tree

1 file changed

+6
-3
lines changed

1 file changed

+6
-3
lines changed

redis.c

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5832,7 +5832,8 @@ PHP_METHOD(Redis, evalsha)
58325832
{
58335833
zval *object, *args= NULL;
58345834
char *cmd, *sha;
5835-
int cmd_len, sha_len, keys_count = 0;
5835+
int cmd_len, sha_len;
5836+
long keys_count = 0;
58365837
RedisSock *redis_sock;
58375838

58385839
if(zend_parse_method_parameters(ZEND_NUM_ARGS() TSRMLS_CC, getThis(), "Os|al",
@@ -5864,7 +5865,8 @@ PHP_METHOD(Redis, eval)
58645865
zval *object, *args = NULL;
58655866
RedisSock *redis_sock;
58665867
char *script, *cmd = "";
5867-
int script_len, cmd_len, keys_count = 0;
5868+
int script_len, cmd_len;
5869+
long keys_count = 0;
58685870

58695871
// Attempt to parse parameters
58705872
if(zend_parse_method_parameters(ZEND_NUM_ARGS() TSRMLS_CC, getThis(), "Os|al",
@@ -6051,7 +6053,8 @@ PHP_METHOD(Redis, migrate) {
60516053
zval *object;
60526054
RedisSock *redis_sock;
60536055
char *cmd, *host, *key;
6054-
int cmd_len, host_len, key_len, port, dest_db, timeout, key_free;
6056+
int cmd_len, host_len, key_len, key_free;
6057+
long port, dest_db, timeout;
60556058

60566059
// Parse arguments
60576060
if(zend_parse_method_parameters(ZEND_NUM_ARGS() TSRMLS_CC, getThis(), "Oslsll", &object, redis_ce,

0 commit comments

Comments
 (0)