mirror of
https://github.com/phpseclib/phpseclib.git
synced 2024-12-28 12:10:59 +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->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') {
|
||||||
|
Loading…
Reference in New Issue
Block a user