mirror of
https://github.com/phpseclib/phpseclib.git
synced 2024-12-27 03:42:40 +00:00
SFTP: backport DavidAnderson684's changes to 1.0 branch
This commit is contained in:
parent
23db2f7be3
commit
e2a2ad8c91
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user