/** * Retrieve information about a file * * @param string $url * @param int $flags */ public function url_stat($url, $flags) { try { $this->openFile($url); if ($this->file->isLink() && !($flags & STREAM_URL_STAT_LINK)) { return $this->file->getLinkTarget()->getStat(); } return $this->file->getStat(); } catch (Exception $e) { if ($flags & STREAM_URL_STAT_QUIET) { throw $e; } return false; } }