SFTP_Stream: Better EOF detection

$result will be false on error and '' if the EOF is reached.
This commit is contained in:
terrafrost 2013-03-24 20:25:58 -05:00
parent c5bd12dd14
commit 05e832d14f

View File

@ -256,7 +256,7 @@ class Net_SFTP_Stream {
//}
$result = $this->sftp->get($this->path, false, $this->pos, $count);
if ($result === false) {
if (empty($result)) {
$this->eof = true;
return false;
}