Merge branch '3.0'

This commit is contained in:
terrafrost 2020-12-18 17:32:25 -06:00
commit c1a9c5e6da

View File

@ -1878,7 +1878,7 @@ class SFTP extends SSH2
$offset = $start;
} elseif ($mode & self::RESUME) {
// if NET_SFTP_OPEN_APPEND worked as it should _size() wouldn't need to be called
$size = $this->size($remote_file);
$size = $this->stat($remote_file)['size'];
$offset = $size !== false ? $size : 0;
} else {
$offset = 0;