mirror of
https://github.com/phpseclib/phpseclib.git
synced 2024-11-16 18:25:13 +00:00
Merge pull request #414 from bantu/SSH2-isConnected-bool
Make Net_SSH2::isConnected() return a boolean instead of int. * bantu/SSH2-isConnected-bool: Make Net_SSH2::isConnected() return a boolean instead of int.
This commit is contained in:
commit
e0e67a602b
@ -2654,11 +2654,12 @@ class Net_SSH2
|
|||||||
/**
|
/**
|
||||||
* Is the connection still active?
|
* Is the connection still active?
|
||||||
*
|
*
|
||||||
|
* @return boolean
|
||||||
* @access public
|
* @access public
|
||||||
*/
|
*/
|
||||||
function isConnected()
|
function isConnected()
|
||||||
{
|
{
|
||||||
return $this->bitmap & NET_SSH2_MASK_CONNECTED;
|
return (bool) ($this->bitmap & NET_SSH2_MASK_CONNECTED);
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
Loading…
Reference in New Issue
Block a user