Skip to content

Commit 8f34100

Browse files
committed
Merge branch 'master' into edlerd-master
2 parents ccc824a + 87dfaf4 commit 8f34100

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

library.c

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -421,6 +421,15 @@ PHPAPI void redis_info_response(INTERNAL_FUNCTION_PARAMETERS, RedisSock *redis_s
421421

422422
cur = response;
423423
while(1) {
424+
425+
/* skip comments and empty lines */
426+
if(*cur == '#' || *cur == '\r') {
427+
if(!(cur = strchr(cur, '\n')))
428+
break;
429+
cur++;
430+
continue;
431+
}
432+
424433
/* key */
425434
pos = strchr(cur, ':');
426435
if(pos == NULL) {

0 commit comments

Comments
 (0)