Forráskód Böngészése

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

Daniele Alessandri 14 éve
szülő
commit
f0f1647773
1 módosított fájl, 1 hozzáadás és 1 törlés
  1. 1 1
      lib/Predis.php

+ 1 - 1
lib/Predis.php

@@ -575,7 +575,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);
             }
         }