mirror of
https://codeberg.org/icewind/SMB.git
synced 2026-06-04 01:34:07 +02:00
fix clearTillPrompt for smbclient <=4.6
This commit is contained in:
parent
d8c9b118ed
commit
6327f1644c
5 changed files with 229 additions and 219 deletions
|
|
@ -110,6 +110,13 @@ class RawConnection {
|
|||
return $result;
|
||||
}
|
||||
|
||||
public function flush() {
|
||||
$meta = stream_get_meta_data($this->getOutputStream());
|
||||
stream_set_blocking($this->getOutputStream(), false);
|
||||
stream_get_contents($this->getOutputStream());
|
||||
stream_set_blocking($this->getOutputStream(), $meta["blocked"]);
|
||||
}
|
||||
|
||||
/**
|
||||
* read output till the next prompt
|
||||
*
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue