Improved detection of connection errors

This commit is contained in:
Robin Appelman 2015-12-31 20:04:07 +01:00
commit a07a5ad2ec
2 changed files with 21 additions and 3 deletions

View file

@ -94,6 +94,15 @@ class RawConnection {
return stream_get_line($this->getOutputStream(), 4086, "\n");
}
/**
* read a line of output
*
* @return string
*/
public function readError() {
return trim(stream_get_line($this->getErrorStream(), 4086));
}
/**
* get all output until the process closes
*