mirror of
https://codeberg.org/icewind/streams.git
synced 2026-06-03 08:34:09 +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,7 +92,9 @@ abstract class Wrapper extends WrapperHandler implements File, Directory {
|
|||
}
|
||||
|
||||
public function stream_close() {
|
||||
return fclose($this->source);
|
||||
if (is_resource($this->source)) {
|
||||
return fclose($this->source);
|
||||
}
|
||||
}
|
||||
|
||||
public function dir_readdir() {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue