1
0
mirror of https://github.com/danog/phpseclib.git synced 2025-01-22 04:51:19 +01:00

SSH2: CS adjustments

This commit is contained in:
terrafrost 2019-03-23 19:20:06 -05:00
parent 7d41903846
commit 539fc1a9b0

View File

@ -3361,7 +3361,7 @@ class SSH2
return false;
}
foreach ($this->auth as $auth) {
$result = call_user_func_array(array(&$this, 'login'), $auth);
$result = $this->login(...$auth);
}
return $result;
}
@ -3805,7 +3805,7 @@ class SSH2
$response = $this->binary_packet_buffer;
$this->binary_packet_buffer = false;
} else {
$read = array($this->fsock);
$read = [$this->fsock];
$write = $except = null;
if (!$this->curTimeout) {
@ -3892,7 +3892,7 @@ class SSH2
return $data;
}
if (!isset($this->channel_buffers[$channel])) {
$this->channel_buffers[$channel] = array();
$this->channel_buffers[$channel] = [];
}
$this->channel_buffers[$channel][] = $data;