diff --git a/src/ZipStreamer.php b/src/ZipStreamer.php index 464bfba..e476eb6 100644 --- a/src/ZipStreamer.php +++ b/src/ZipStreamer.php @@ -356,7 +356,7 @@ private function streamFileData($stream, $compress, $level) { $compStream = DeflateStream::create($level); } - while (!feof($stream) && $data = fread($stream, self::STREAM_CHUNK_SIZE)) { + while (!feof($stream) && ($data = fread($stream, self::STREAM_CHUNK_SIZE)) !== false) { $dataLength->add(strlen($data)); hash_update($hashCtx, $data); if (COMPR::DEFLATE === $compress) {