mirror of
https://github.com/phpseclib/phpseclib.git
synced 2024-12-26 03:27:31 +00:00
SSH2: fix PHP 8.4 deprecatin w.r.t. declare(strict_types=1)
This commit is contained in:
parent
faced4d097
commit
46c3756165
@ -3191,7 +3191,7 @@ class SSH2
|
|||||||
*/
|
*/
|
||||||
private function get_stream_timeout()
|
private function get_stream_timeout()
|
||||||
{
|
{
|
||||||
$sec = ini_get('default_socket_timeout');
|
$sec = (int) ini_get('default_socket_timeout');
|
||||||
$usec = 0;
|
$usec = 0;
|
||||||
if ($this->curTimeout > 0) {
|
if ($this->curTimeout > 0) {
|
||||||
$sec = (int) floor($this->curTimeout);
|
$sec = (int) floor($this->curTimeout);
|
||||||
|
Loading…
Reference in New Issue
Block a user