1
0
mirror of https://github.com/Ne-Lexa/php-zip.git synced 2025-03-21 06:59:40 +01:00

Merge branch 'litlife-patch-1' into develop

This commit is contained in:
wapplay 2018-10-09 09:55:45 +03:00
commit 59773d62a8

View File

@ -66,12 +66,13 @@ class ZipSourceEntry extends ZipAbstractEntry
if ($this->getSize() < self::MAX_SIZE_CACHED_CONTENT_IN_MEMORY) {
$this->entryContent = $content;
} else {
$this->entryContent = fopen('php://temp', 'rb');
$this->entryContent = fopen('php://temp', 'r+b');
fwrite($this->entryContent, $content);
}
return $content;
}
if (is_resource($this->entryContent)) {
rewind($this->entryContent);
return stream_get_contents($this->entryContent, -1, 0);
}
return $this->entryContent;