Browse Source

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

Daniele Alessandri 14 years ago
parent
commit
f0f1647773
1 changed files with 1 additions and 1 deletions
  1. 1 1
      lib/Predis.php

+ 1 - 1
lib/Predis.php

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