This commit is contained in:
Liam Demafelix 2021-06-04 14:48:52 +08:00 committed by GitHub
commit 4dfa30fabc
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 5 additions and 1 deletions

View File

@ -92,7 +92,11 @@ 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);
// Silently return true if source is not a resource
return true;
}
public function dir_readdir() {