Add method to get a readable stream of a file

This commit is contained in:
Robin Appelman 2014-07-12 15:51:16 +02:00
commit eca03d1b88
4 changed files with 53 additions and 1 deletions

View file

@ -76,7 +76,9 @@ class Connection extends RawConnection {
}
public function close() {
$this->write('close' . PHP_EOL);
if (is_resource($this->getInputStream())) {
$this->write('close' . PHP_EOL);
}
}
public function __destruct() {