mirror of
https://github.com/phpseclib/phpseclib.git
synced 2024-12-28 12:10:59 +00:00
SFTP: remove $start = $offset line
$start isn't used anywhere in the function
This commit is contained in:
parent
0bdf39c83b
commit
63ec6e2055
@ -1649,7 +1649,6 @@ class Net_SFTP extends Net_SSH2 {
|
||||
}
|
||||
|
||||
$size = (1 << 20) < $length || $length < 0 ? 1 << 20 : $length;
|
||||
$start = $offset;
|
||||
while (true) {
|
||||
$packet = pack('Na*N3', strlen($handle), $handle, 0, $offset, $size);
|
||||
if (!$this->_send_sftp_packet(NET_SFTP_READ, $packet)) {
|
||||
@ -2205,4 +2204,4 @@ class Net_SFTP extends Net_SSH2 {
|
||||
$this->pwd = false;
|
||||
parent::_disconnect($reason);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user