Browse Source

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

Daniele Alessandri 15 years ago
parent
commit
f727c6aa69
1 changed files with 1 additions and 1 deletions
  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;
                 }