add support for anonymous auth

This commit is contained in:
Robin Appelman 2018-03-27 17:58:11 +02:00
commit f4d8bca8fa
4 changed files with 55 additions and 2 deletions

View file

@ -128,7 +128,7 @@ class RawConnection {
* @return array
*/
public function readAll() {
$output = array();
$output = [];
while ($line = $this->readLine()) {
$output[] = $line;
}

View file

@ -56,7 +56,7 @@ class Server extends AbstractServer {
}
$output = $connection->readAll();
// sometimes we get an empty line first
if (count($output) === 0) {
if (count($output) < 2) {
$output = $connection->readAll();
}
$parser = new Parser($this->timezoneProvider);