This commit is contained in:
Robin Appelman 2015-08-14 16:51:14 +02:00
commit b822af84c5

View file

@ -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);