mirror of
https://github.com/Ne-Lexa/php-zip.git
synced 2025-07-16 05:36:19 +02:00
Merge branch 'litlife-patch-1' into develop
This commit is contained in:
@ -66,12 +66,13 @@ class ZipSourceEntry extends ZipAbstractEntry
|
|||||||
if ($this->getSize() < self::MAX_SIZE_CACHED_CONTENT_IN_MEMORY) {
|
if ($this->getSize() < self::MAX_SIZE_CACHED_CONTENT_IN_MEMORY) {
|
||||||
$this->entryContent = $content;
|
$this->entryContent = $content;
|
||||||
} else {
|
} else {
|
||||||
$this->entryContent = fopen('php://temp', 'rb');
|
$this->entryContent = fopen('php://temp', 'r+b');
|
||||||
fwrite($this->entryContent, $content);
|
fwrite($this->entryContent, $content);
|
||||||
}
|
}
|
||||||
return $content;
|
return $content;
|
||||||
}
|
}
|
||||||
if (is_resource($this->entryContent)) {
|
if (is_resource($this->entryContent)) {
|
||||||
|
rewind($this->entryContent);
|
||||||
return stream_get_contents($this->entryContent, -1, 0);
|
return stream_get_contents($this->entryContent, -1, 0);
|
||||||
}
|
}
|
||||||
return $this->entryContent;
|
return $this->entryContent;
|
||||||
|
Reference in New Issue
Block a user