瀏覽代碼

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);
             }
         }