From 40bd4192fca9ff5d2c5e4671dffded4c47944026 Mon Sep 17 00:00:00 2001 From: Tom Sommer Date: Fri, 17 Jan 2020 09:41:45 +0100 Subject: [PATCH] Update SSH2.php --- phpseclib/Net/SSH2.php | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/phpseclib/Net/SSH2.php b/phpseclib/Net/SSH2.php index ba7f6d57..cb8872fc 100644 --- a/phpseclib/Net/SSH2.php +++ b/phpseclib/Net/SSH2.php @@ -1243,9 +1243,7 @@ class SSH2 $start = microtime(true); $sec = floor($this->curTimeout); $usec = 1000000 * ($this->curTimeout - $sec); - // on windows this returns a "Warning: Invalid CRT parameters detected" error - // the !count() is done as a workaround for - if (stream_select($read, $write, $except, $sec, $usec) === false && !count($read)) { + if (stream_select($read, $write, $except, $sec, $usec) === false) { $this->is_timeout = true; return false; }