mirror of
https://github.com/Ne-Lexa/php-zip.git
synced 2025-10-12 13:54:28 +02:00
Improved Windows compatibility, fix #54
This commit is contained in:
@@ -354,7 +354,9 @@ class ZipReader
|
||||
fseek($this->inStream, $cdOffset);
|
||||
|
||||
if (!($cdStream = fopen('php://temp', 'w+b'))) {
|
||||
throw new ZipException('Temp resource can not open from write');
|
||||
// @codeCoverageIgnoreStart
|
||||
throw new ZipException('A temporary resource cannot be opened for writing.');
|
||||
// @codeCoverageIgnoreEnd
|
||||
}
|
||||
stream_copy_to_stream($this->inStream, $cdStream, $endCD->getCdSize());
|
||||
rewind($cdStream);
|
||||
|
Reference in New Issue
Block a user