mirror of
https://github.com/phpseclib/phpseclib.git
synced 2024-11-16 02:07:09 +00:00
Merge branch 'master' into php5
* master: Make Net_SSH2::isConnected() return a boolean instead of int.
This commit is contained in:
commit
025a637053
@ -2651,11 +2651,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