Don't scream on double close.

This commit is contained in:
flash 2023-07-17 19:02:07 +00:00
parent 939dcd10fe
commit ccf75ede4a
2 changed files with 5 additions and 3 deletions

View file

@ -1 +1 @@
0.2307.112242
0.2307.171901

View file

@ -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 {
fclose($this->stream);
try {
fclose($this->stream);
} catch(\Error $ex) {}
}
public function copyTo(Stream $other): void {