mirror of
https://github.com/phpseclib/phpseclib.git
synced 2024-11-16 10:15:14 +00:00
Merge branch '1.0' into 2.0
This commit is contained in:
commit
411d09cb7a
@ -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 {
|
||||||
|
Loading…
Reference in New Issue
Block a user