Преглед изворни кода

Fixed a bug when reading large bulk replies from remote Redis instances

Daniele Alessandri пре 15 година
родитељ
комит
f727c6aa69
1 измењених фајлова са 1 додато и 1 уклоњено
  1. 1 1
      lib/Predis.php

+ 1 - 1
lib/Predis.php

@@ -428,7 +428,7 @@ class Response {
                 }
 
                 if ($dataLength > 0) {
-                    $value = fread($socket, $dataLength);
+                    $value = stream_get_contents($socket, $dataLength);
                     fread($socket, 2);
                     return $value;
                 }