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:
parent
4b1102de7e
commit
deb485c0e1
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user