ソースを参照

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