add proper paths to exceptions during stream close and write

This commit is contained in:
Robin Appelman 2020-04-08 17:20:22 +02:00
commit db50bb51bd
4 changed files with 15 additions and 12 deletions

View file

@ -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) {