mirror of
https://codeberg.org/icewind/SMB.git
synced 2026-06-03 17:24:07 +02:00
Add method to get a readable stream of a file
This commit is contained in:
parent
b1e265cd57
commit
eca03d1b88
4 changed files with 53 additions and 1 deletions
|
|
@ -85,6 +85,14 @@ class RawConnection {
|
|||
return $output;
|
||||
}
|
||||
|
||||
public function getOutputStream() {
|
||||
return $this->pipes[1];
|
||||
}
|
||||
|
||||
public function getInputStream() {
|
||||
return $this->pipes[0];
|
||||
}
|
||||
|
||||
public function __destruct() {
|
||||
proc_terminate($this->process);
|
||||
proc_close($this->process);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue