1
0
mirror of https://github.com/danog/tgseclib.git synced 2024-11-30 04:39:02 +01:00

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

View File

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