Merge branch '1.0' into 2.0

This commit is contained in:
terrafrost 2023-07-02 10:45:46 -05:00
commit 411d09cb7a

View File

@ -2385,7 +2385,11 @@ class SFTP extends SSH2
if ($local_start >= 0) { if ($local_start >= 0) {
fseek($fp, $local_start); fseek($fp, $local_start);
$size-= $local_start; $size-= $local_start;
} elseif ($mode & NET_SFTP_RESUME) {
fseek($fp, $offset);
$size-= $offset;
} }
} elseif ($dataCallback) { } elseif ($dataCallback) {
$size = 0; $size = 0;
} else { } else {