Don't scream on double close.
This commit is contained in:
parent
939dcd10fe
commit
ccf75ede4a
2 changed files with 5 additions and 3 deletions
2
VERSION
2
VERSION
|
@ -1 +1 @@
|
|||
0.2307.112242
|
||||
0.2307.171901
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
<?php
|
||||
// GenericStream.php
|
||||
// Created: 2021-04-30
|
||||
// Updated: 2022-02-27
|
||||
// Updated: 2023-07-17
|
||||
|
||||
namespace Index\IO;
|
||||
|
||||
|
@ -118,7 +118,9 @@ class GenericStream extends Stream {
|
|||
}
|
||||
|
||||
public function close(): void {
|
||||
try {
|
||||
fclose($this->stream);
|
||||
} catch(\Error $ex) {}
|
||||
}
|
||||
|
||||
public function copyTo(Stream $other): void {
|
||||
|
|
Loading…
Reference in a new issue