Initing eof to false

The call _stream_eof() must return a boolean, not null.
Returning null makes PHP believe that the method wasn't implemented.

Fixes #170
This commit is contained in:
Vincent Petry 2013-11-19 23:13:10 +01:00
parent 6f56dfc80b
commit 2517dd4a61

View File

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