1
0
mirror of https://github.com/danog/phpseclib.git synced 2024-12-03 10:08:04 +01:00

Merge branch '1.0' into 2.0

This commit is contained in:
terrafrost 2021-10-09 08:26:29 -05:00
commit f25f8c0db8

View File

@ -1622,10 +1622,13 @@ class SFTP extends SSH2
if ($this->version < 4) {
$attr = pack('N3', NET_SFTP_ATTR_ACCESSTIME, $atime, $time);
} else {
$attr = pack('N5',
$attr = pack(
'N5',
NET_SFTP_ATTR_ACCESSTIME | NET_SFTP_ATTR_MODIFYTIME,
$atime / 4294967296, $atime,
$time / 4294967296, $time
$atime / 4294967296,
$atime,
$time / 4294967296,
$time
);
}
@ -2368,10 +2371,13 @@ class SFTP extends SSH2
if ($this->version < 4) {
$attr = pack('N3', NET_SFTP_ATTR_ACCESSTIME, $stat['atime'], $stat['mtime']);
} else {
$attr = pack('N5',
$attr = pack(
'N5',
NET_SFTP_ATTR_ACCESSTIME | NET_SFTP_ATTR_MODIFYTIME,
$stat['atime'] / 4294967296, $stat['atime'],
$stat['mtime'] / 4294967296, $stat['mtime']
$stat['atime'] / 4294967296,
$stat['atime'],
$stat['mtime'] / 4294967296,
$stat['mtime']
);
}