Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/phpredis/phpredis.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNicolas Favre-Felix <n.favrefelix@gmail.com>2010-07-26 19:38:02 +0400
committerNicolas Favre-Felix <n.favrefelix@gmail.com>2010-07-26 19:38:02 +0400
commit8b7de818d101ca1f64affda549a3293bd100c382 (patch)
treecdafebe643c9a3e7c505115cf84e1b9a5fb9387f /redis.c
parent049727f3e637aece542a6a19ea0f8fdb4c5ee399 (diff)
MULTI/EXEC updates and documentation.
Diffstat (limited to 'redis.c')
-rwxr-xr-xredis.c9
1 files changed, 2 insertions, 7 deletions
diff --git a/redis.c b/redis.c
index 707648d1..118cbf3a 100755
--- a/redis.c
+++ b/redis.c
@@ -3954,9 +3954,9 @@ PHP_METHOD(Redis, multi)
int response_len, cmd_len;
char * response;
zval *object;
- double multi_value;
+ long multi_value = REDIS_MULTI;
- if (zend_parse_method_parameters(ZEND_NUM_ARGS() TSRMLS_CC, getThis(), "Od",
+ if (zend_parse_method_parameters(ZEND_NUM_ARGS() TSRMLS_CC, getThis(), "O|l",
&object, redis_ce, &multi_value) == FAILURE) {
RETURN_FALSE;
}
@@ -3974,11 +3974,6 @@ PHP_METHOD(Redis, multi)
exit(-1);
}
- /*
- head = malloc(sizeof(fold_item));
- current = head;
- current->function_name = strdup("__begin__");
- */
current = NULL;
IF_MULTI() {