SFTP: fix put() with remote file stream resource (#1177)

This commit is contained in:
terrafrost 2017-09-05 21:59:51 -05:00
parent 4b1102de7e
commit deb485c0e1
1 changed files with 1 additions and 1 deletions

View File

@ -2036,7 +2036,7 @@ class Net_SFTP extends Net_SSH2
if (isset($fp)) {
$stat = fstat($fp);
$size = $stat['size'];
$size = !empty($stat) ? $stat['size'] : 0;
if ($local_start >= 0) {
fseek($fp, $local_start);