mirror of
https://github.com/phpseclib/phpseclib.git
synced 2024-11-16 10:15:14 +00:00
Merge branch '2.0' into 3.0
This commit is contained in:
commit
8a459caada
@ -447,7 +447,9 @@ class Stream extends SFTP
|
|||||||
// and https://github.com/php/php-src/blob/master/main/php_streams.h#L592
|
// and https://github.com/php/php-src/blob/master/main/php_streams.h#L592
|
||||||
switch ($option) {
|
switch ($option) {
|
||||||
case 1: // PHP_STREAM_META_TOUCH
|
case 1: // PHP_STREAM_META_TOUCH
|
||||||
return $this->sftp->touch($path, $var[0], $var[1]);
|
$time = isset($var[0]) ? $var[0] : null;
|
||||||
|
$atime = isset($var[1]) ? $var[1] : null;
|
||||||
|
return $this->sftp->touch($path, $time, $atime);
|
||||||
case 2: // PHP_STREAM_OWNER_NAME
|
case 2: // PHP_STREAM_OWNER_NAME
|
||||||
case 3: // PHP_STREAM_GROUP_NAME
|
case 3: // PHP_STREAM_GROUP_NAME
|
||||||
return false;
|
return false;
|
||||||
|
Loading…
Reference in New Issue
Block a user