mirror of
https://github.com/danog/tgseclib.git
synced 2024-11-27 12:44:38 +01:00
Merge pull request #172 from PVince81/sftp-stream-feof-fix
Initing eof to false
This commit is contained in:
commit
f3c71faee0
@ -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