diff --git a/phpseclib/Net/SSH2.php b/phpseclib/Net/SSH2.php index 87d210c5..4a8cdafd 100644 --- a/phpseclib/Net/SSH2.php +++ b/phpseclib/Net/SSH2.php @@ -974,10 +974,8 @@ class Net_SSH2 if (extension_loaded('gmp')) { $ext[] = 'gmp'; - } else { - if (extension_loaded('bcmath')) { - $ext[] = 'bcmath'; - } + } elseif (extension_loaded('bcmath')) { + $ext[] = 'bcmath'; } if (!empty($ext)) {