소스 검색

Use an explicit index to add values to the multi-bulk reply array.

Daniele Alessandri 14 년 전
부모
커밋
1e32f8aaa8
1개의 변경된 파일1개의 추가작업 그리고 1개의 파일을 삭제
  1. 1 1
      lib/Predis.php

+ 1 - 1
lib/Predis.php

@@ -617,7 +617,7 @@ class ResponseMultiBulkHandler implements IResponseHandler {
         if ($listLength > 0) {
             $reader = $connection->getResponseReader();
             for ($i = 0; $i < $listLength; $i++) {
-                $list[] = $reader->read($connection);
+                $list[$i] = $reader->read($connection);
             }
         }