mirror of
https://github.com/phpseclib/phpseclib.git
synced 2024-12-27 03:42:40 +00:00
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:
parent
6f56dfc80b
commit
2517dd4a61
@ -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') {
|
||||
|
Loading…
Reference in New Issue
Block a user