From f1fbf9c5ae560e480799ba1945ef9c991e99279b Mon Sep 17 00:00:00 2001 From: Andreas Fischer Date: Thu, 22 May 2014 13:32:39 +0200 Subject: [PATCH] SFTP: Use the correct stat cache property: stat_cache --- phpseclib/Net/SFTP.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/phpseclib/Net/SFTP.php b/phpseclib/Net/SFTP.php index 3c746565..89e4700b 100644 --- a/phpseclib/Net/SFTP.php +++ b/phpseclib/Net/SFTP.php @@ -942,7 +942,7 @@ class Net_SFTP extends Net_SSH2 // preg_replace('#^/|/(?=/)|/$#', '', $dir) == str_replace('//', '/', trim($path, '/')) $dirs = explode('/', preg_replace('#^/|/(?=/)|/$#', '', $path)); - $temp = &$this->cache; + $temp = &$this->stat_cache; foreach ($dirs as $dir) { if (!isset($temp[$dir])) { $temp[$dir] = array(); @@ -965,7 +965,7 @@ class Net_SFTP extends Net_SSH2 { $dirs = explode('/', preg_replace('#^/|/(?=/)|/$#', '', $path)); - $temp = &$this->cache; + $temp = &$this->stat_cache; foreach ($dirs as $dir) { if ($dir == end($dirs)) { unset($temp[$dir]); @@ -991,7 +991,7 @@ class Net_SFTP extends Net_SSH2 { $dirs = explode('/', preg_replace('#^/|/(?=/)|/$#', '', $path)); - $temp = &$this->cache; + $temp = &$this->stat_cache; foreach ($dirs as $dir) { if (!isset($temp[$dir])) { return false;