mirror of
https://codeberg.org/icewind/streams.git
synced 2026-06-03 16:44:07 +02:00
dont throw errors on double close in stream wrapper
This commit is contained in:
parent
22ef9fc5b5
commit
9d2b302d8d
1 changed files with 3 additions and 1 deletions
|
|
@ -92,8 +92,10 @@ abstract class Wrapper extends WrapperHandler implements File, Directory {
|
||||||
}
|
}
|
||||||
|
|
||||||
public function stream_close() {
|
public function stream_close() {
|
||||||
|
if (is_resource($this->source)) {
|
||||||
return fclose($this->source);
|
return fclose($this->source);
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
public function dir_readdir() {
|
public function dir_readdir() {
|
||||||
return readdir($this->source);
|
return readdir($this->source);
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue