浏览代码

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;
                 }