mirror of
https://github.com/danog/phpseclib.git
synced 2024-12-04 02:28:06 +01:00
Merge branch '1.0' into 2.0
This commit is contained in:
commit
f25f8c0db8
@ -1622,10 +1622,13 @@ class SFTP extends SSH2
|
|||||||
if ($this->version < 4) {
|
if ($this->version < 4) {
|
||||||
$attr = pack('N3', NET_SFTP_ATTR_ACCESSTIME, $atime, $time);
|
$attr = pack('N3', NET_SFTP_ATTR_ACCESSTIME, $atime, $time);
|
||||||
} else {
|
} else {
|
||||||
$attr = pack('N5',
|
$attr = pack(
|
||||||
|
'N5',
|
||||||
NET_SFTP_ATTR_ACCESSTIME | NET_SFTP_ATTR_MODIFYTIME,
|
NET_SFTP_ATTR_ACCESSTIME | NET_SFTP_ATTR_MODIFYTIME,
|
||||||
$atime / 4294967296, $atime,
|
$atime / 4294967296,
|
||||||
$time / 4294967296, $time
|
$atime,
|
||||||
|
$time / 4294967296,
|
||||||
|
$time
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -2368,10 +2371,13 @@ class SFTP extends SSH2
|
|||||||
if ($this->version < 4) {
|
if ($this->version < 4) {
|
||||||
$attr = pack('N3', NET_SFTP_ATTR_ACCESSTIME, $stat['atime'], $stat['mtime']);
|
$attr = pack('N3', NET_SFTP_ATTR_ACCESSTIME, $stat['atime'], $stat['mtime']);
|
||||||
} else {
|
} else {
|
||||||
$attr = pack('N5',
|
$attr = pack(
|
||||||
|
'N5',
|
||||||
NET_SFTP_ATTR_ACCESSTIME | NET_SFTP_ATTR_MODIFYTIME,
|
NET_SFTP_ATTR_ACCESSTIME | NET_SFTP_ATTR_MODIFYTIME,
|
||||||
$stat['atime'] / 4294967296, $stat['atime'],
|
$stat['atime'] / 4294967296,
|
||||||
$stat['mtime'] / 4294967296, $stat['mtime']
|
$stat['atime'],
|
||||||
|
$stat['mtime'] / 4294967296,
|
||||||
|
$stat['mtime']
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user