Explorar o código

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

Daniele Alessandri %!s(int64=15) %!d(string=hai) anos
pai
achega
f727c6aa69
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  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;
                 }