mirror of
https://codeberg.org/icewind/SMB.git
synced 2026-06-03 17:24:07 +02:00
fix type
This commit is contained in:
parent
6e1f693ad5
commit
b822af84c5
1 changed files with 6 additions and 2 deletions
|
|
@ -28,12 +28,16 @@ class Connection extends RawConnection {
|
||||||
/**
|
/**
|
||||||
* get all unprocessed output from smbclient until the next prompt
|
* get all unprocessed output from smbclient until the next prompt
|
||||||
*
|
*
|
||||||
* @throws ConnectionException
|
|
||||||
* @return string
|
* @return string
|
||||||
|
* @throws AuthenticationException
|
||||||
|
* @throws ConnectException
|
||||||
|
* @throws ConnectionException
|
||||||
|
* @throws InvalidHostException
|
||||||
|
* @throws NoLoginServerException
|
||||||
*/
|
*/
|
||||||
public function read() {
|
public function read() {
|
||||||
if (!$this->isValid()) {
|
if (!$this->isValid()) {
|
||||||
throw new ConnectionException('Connection not valied');
|
throw new ConnectionException('Connection not valid');
|
||||||
}
|
}
|
||||||
$line = $this->readLine(); //first line is prompt
|
$line = $this->readLine(); //first line is prompt
|
||||||
$this->checkConnectionError($line);
|
$this->checkConnectionError($line);
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue