I think this is what you meant to do here

This commit is contained in:
Rasmus Lerdorf 2013-05-07 23:19:50 -07:00
parent c89db52e39
commit e24d7612a2

View File

@ -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);
@ -338,4 +338,4 @@ class Net_SCP {
$this->ssh->disconnect(); $this->ssh->disconnect();
} }
} }
} }