mirror of
https://github.com/phpseclib/phpseclib.git
synced 2025-01-14 18:59:51 +00:00
I think this is what you meant to do here
This commit is contained in:
parent
c89db52e39
commit
e24d7612a2
@ -201,7 +201,7 @@ class Net_SCP {
|
||||
return false;
|
||||
}
|
||||
$size = filesize($data);
|
||||
for ($i = 0; $i < $length; $i++) {
|
||||
for ($i = 0; $i < $size; $i += $this->packet_size) {
|
||||
$this->_send(fgets($fp, $this->packet_size));
|
||||
}
|
||||
fclose($fp);
|
||||
@ -338,4 +338,4 @@ class Net_SCP {
|
||||
$this->ssh->disconnect();
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user