mirror of
https://github.com/phpseclib/phpseclib.git
synced 2025-01-15 03:03:49 +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;
|
return false;
|
||||||
}
|
}
|
||||||
$size = filesize($data);
|
$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));
|
$this->_send(fgets($fp, $this->packet_size));
|
||||||
}
|
}
|
||||||
fclose($fp);
|
fclose($fp);
|
||||||
|
Loading…
Reference in New Issue
Block a user