Przeglądaj źródła

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

Daniele Alessandri 14 lat temu
rodzic
commit
1e32f8aaa8
1 zmienionych plików z 1 dodań i 1 usunięć
  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);
             }
         }