Skip to content

Commit a4784b4

Browse files
committed
Merge branch 'hotfix/issue-229' into develop
2 parents fb7c7a8 + 5953e8f commit a4784b4

File tree

2 files changed

+908
-0
lines changed

2 files changed

+908
-0
lines changed

library.c

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -839,6 +839,11 @@ PHPAPI int redis_sock_read_multibulk_reply_zipped_with_flag(INTERNAL_FUNCTION_PA
839839
}
840840

841841
if(inbuf[0] != '*') {
842+
IF_MULTI_OR_PIPELINE() {
843+
add_next_index_bool(z_tab, 0);
844+
} else {
845+
RETURN_FALSE;
846+
}
842847
return -1;
843848
}
844849
numElems = atoi(inbuf+1);
@@ -1207,6 +1212,11 @@ PHPAPI int redis_sock_read_multibulk_reply(INTERNAL_FUNCTION_PARAMETERS, RedisSo
12071212
}
12081213

12091214
if(inbuf[0] != '*') {
1215+
IF_MULTI_OR_PIPELINE() {
1216+
add_next_index_bool(z_tab, 0);
1217+
} else {
1218+
RETURN_FALSE;
1219+
}
12101220
return -1;
12111221
}
12121222
numElems = atoi(inbuf+1);
@@ -1249,6 +1259,11 @@ PHPAPI int redis_sock_read_multibulk_reply_raw(INTERNAL_FUNCTION_PARAMETERS, Red
12491259
}
12501260

12511261
if(inbuf[0] != '*') {
1262+
IF_MULTI_OR_PIPELINE() {
1263+
add_next_index_bool(z_tab, 0);
1264+
} else {
1265+
RETURN_FALSE;
1266+
}
12521267
return -1;
12531268
}
12541269
numElems = atoi(inbuf+1);
@@ -1323,6 +1338,11 @@ PHPAPI int redis_sock_read_multibulk_reply_assoc(INTERNAL_FUNCTION_PARAMETERS, R
13231338
}
13241339

13251340
if(inbuf[0] != '*') {
1341+
IF_MULTI_OR_PIPELINE() {
1342+
add_next_index_bool(z_tab, 0);
1343+
} else {
1344+
RETURN_FALSE;
1345+
}
13261346
return -1;
13271347
}
13281348
numElems = atoi(inbuf+1);

0 commit comments

Comments
 (0)