mirror of
https://github.com/phpseclib/phpseclib.git
synced 2024-05-28 14:10:52 +00:00
SFTP: update conditions under which cache for lstat / . is used
This commit is contained in:
parent
26818ebb40
commit
d1d415618a
|
@ -1214,7 +1214,7 @@ class Net_SFTP extends Net_SSH2
|
|||
|
||||
if ($this->use_stat_cache) {
|
||||
$result = $this->_query_stat_cache($filename);
|
||||
if (is_array($result) && isset($result['.'])) {
|
||||
if (is_array($result) && isset($result['.']) && isset($result['.']->lstat)) {
|
||||
return $result['.']->lstat;
|
||||
}
|
||||
if (is_object($result) && isset($result->lstat)) {
|
||||
|
|
Loading…
Reference in New Issue
Block a user