SFTP: backport DavidAnderson684's changes to 1.0 branch

This commit is contained in:
terrafrost 2015-09-27 10:56:05 -05:00
parent 23db2f7be3
commit e2a2ad8c91

View File

@ -1917,10 +1917,12 @@ class Net_SFTP extends Net_SSH2
if ($local_start >= 0) {
fseek($fp, $local_start);
$size-= $local_start;
} elseif ($mode & NET_SFTP_RESUME_START) {
// do nothing
} else {
fseek($fp, $offset);
$size-= $offset;
}
} elseif ($dataCallback) {
$size = 0;