diff options
author | Nicolas Favre-Felix <n.favrefelix@gmail.com> | 2010-07-26 19:50:29 +0400 |
---|---|---|
committer | Nicolas Favre-Felix <n.favrefelix@gmail.com> | 2010-07-26 19:50:29 +0400 |
commit | e5bdf71cb112b0d08d4465f2f377a1521965131e (patch) | |
tree | cb248433cf44762f0c3b98ad90d148e49fb320dd /redis.c | |
parent | 8b7de818d101ca1f64affda549a3293bd100c382 (diff) |
PUBLISH/SUBSCRIBE crashes.
Diffstat (limited to 'redis.c')
-rwxr-xr-x | redis.c | 7 |
1 files changed, 3 insertions, 4 deletions
@@ -3970,8 +3970,7 @@ PHP_METHOD(Redis, multi) if(multi_value == REDIS_MULTI || multi_value == REDIS_PIPELINE) { set_flag(object, multi_value); } else { - /* php_printf("error[%f] !! \n", multi_value); */ - exit(-1); + RETURN_FALSE; } current = NULL; @@ -4394,7 +4393,7 @@ PHP_METHOD(Redis, subscribe) redis_sock TSRMLS_CC); zval **type, **channel, **data; - if(Z_TYPE_P(z_tab) == IS_NULL) { + if(Z_TYPE_P(z_tab) != IS_ARRAY) { //ERROR break; } @@ -4468,7 +4467,7 @@ PHP_METHOD(Redis, subscribe) * response format : * array( * channel_0 => TRUE|FALSE, - * channel_1 => TRUE_FALSE, + * channel_1 => TRUE|FALSE, * ... * channel_n => TRUE|FALSE * ); |