Browse Source
Hanlde writestream not closing source
Fixes #14298
If a storage doesn'tclose the write stream then $isEOF is not yet set.
So we have to fallback.
Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
tags/v16.0.0alpha1
Roeland Jago Douma
5 years ago
No account linked to committer's email address
|
|
@@ -181,8 +181,12 @@ class File extends Node implements IFile { |
|
|
|
|
|
|
|
$count = $partStorage->writeStream($internalPartPath, $wrappedData); |
|
|
|
$result = $count > 0; |
|
|
|
|
|
|
|
if ($result === false) { |
|
|
|
$result = $isEOF; |
|
|
|
if (is_resource($wrappedData)) { |
|
|
|
$result = feof($wrappedData); |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
} else { |