mirror of
https://github.com/phpseclib/phpseclib.git
synced 2025-02-12 00:28:42 +00:00
SFTP: "fix" rare resource not closed error
This commit is contained in:
parent
ded9b3043f
commit
f4e017f383
@ -2151,8 +2151,10 @@ class Net_SFTP extends Net_SSH2
|
|||||||
$this->touch($remote_file, $stat['mtime'], $stat['atime']);
|
$this->touch($remote_file, $stat['mtime'], $stat['atime']);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (isset($fp) && is_resource($fp)) {
|
||||||
fclose($fp);
|
fclose($fp);
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
return $this->_close_handle($handle);
|
return $this->_close_handle($handle);
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user