Merge branch '1.0' into 2.0

This commit is contained in:
terrafrost 2023-07-02 11:55:40 -05:00
commit 09f19cb92a

View File

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