mirror of
https://codeberg.org/icewind/SMB.git
synced 2026-06-03 17:24:07 +02:00
add proper paths to exceptions during stream close and write
This commit is contained in:
parent
b2a62743cf
commit
db50bb51bd
4 changed files with 15 additions and 12 deletions
|
|
@ -62,7 +62,7 @@ class NativeStream implements File {
|
|||
|
||||
public function stream_close() {
|
||||
try {
|
||||
return $this->state->close($this->handle);
|
||||
return $this->state->close($this->handle, $this->url);
|
||||
} catch (\Exception $e) {
|
||||
return false;
|
||||
}
|
||||
|
|
@ -114,7 +114,7 @@ class NativeStream implements File {
|
|||
}
|
||||
|
||||
public function stream_write($data) {
|
||||
return $this->state->write($this->handle, $data);
|
||||
return $this->state->write($this->handle, $data, $this->url);
|
||||
}
|
||||
|
||||
public function stream_truncate($size) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue