static function parse_file($path) { if ($msg = self::parse(file_get_contents($path))) { $msg->uri = preg_match('!^[\\w\\d]+://!', $path) ? $path : 'file://' . realpath($path); return $msg; } }