mirror of
https://github.com/phpseclib/phpseclib.git
synced 2024-12-27 03:42:40 +00: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