Merge pull request #172 from PVince81/sftp-stream-feof-fix

Initing eof to false
This commit is contained in:
terrafrost 2013-11-20 07:09:38 -08:00
commit f3c71faee0

View File

@ -256,6 +256,7 @@ class Net_SFTP_Stream {
$this->size = $this->sftp->size($path); $this->size = $this->sftp->size($path);
$this->mode = preg_replace('#[bt]$#', '', $mode); $this->mode = preg_replace('#[bt]$#', '', $mode);
$this->eof = false;
if ($this->size === false) { if ($this->size === false) {
if ($this->mode[0] == 'r') { if ($this->mode[0] == 'r') {