소스 검색

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