From 725a2e0b39a502c9fbcc7235aa7ad7038d11da1d Mon Sep 17 00:00:00 2001 From: terrafrost Date: Sun, 24 Mar 2013 20:28:55 -0500 Subject: [PATCH] SFTP: add a few comments --- phpseclib/Net/SFTP.php | 2 ++ 1 file changed, 2 insertions(+) diff --git a/phpseclib/Net/SFTP.php b/phpseclib/Net/SFTP.php index 1b08f57f..27787b74 100644 --- a/phpseclib/Net/SFTP.php +++ b/phpseclib/Net/SFTP.php @@ -1648,6 +1648,7 @@ class Net_SFTP extends Net_SSH2 { } break; case NET_SFTP_STATUS: + // could, in theory, return false if !strlen($content) but we'll hold off for the time being $this->_logError($response); break 2; default: @@ -1691,6 +1692,7 @@ class Net_SFTP extends Net_SSH2 { return false; } + // if $content isn't set that means a file was written to if (isset($content)) { return $content; }