Suppress warnings from SSH library and only throw an exception

feature/node-rewrite
Sven Slootweg 12 years ago
parent 6db01511ff
commit 84b03d4c3c

@ -74,11 +74,11 @@ class SshConnector extends CPHPBaseClass
if(empty($this->passphrase))
{
$result = ssh2_auth_pubkey_file($this->connection, $this->user, $this->pubkey, $this->key);
$result = @ssh2_auth_pubkey_file($this->connection, $this->user, $this->pubkey, $this->key);
}
else
{
$result = ssh2_auth_pubkey_file($this->connection, $this->user, $this->pubkey, $this->key, $this->passphrase);
$result = @ssh2_auth_pubkey_file($this->connection, $this->user, $this->pubkey, $this->key, $this->passphrase);
}
if($result === true)

Loading…
Cancel
Save