public function close()
{
if ($this->closed) {
return false;
}
$this->closed = true;
if ($this->fdCacheKey !== null) {
FileSystem::$fdCache->invalidate($this->fdCacheKey);
}
if ($this->fd === null) {
return false;
}
if (!FileSystem::$supported) {
fclose($this->fd);
return false;
}
$r = eio_close($this->fd, EIO_PRI_MAX);
$this->fd = null;
return $r;
}