public static function getRealFSReference($path, $persistent = false) { $contextOpened = false; if (self::$crtZip != null) { $contextOpened = true; $crtZip = self::$crtZip; self::$crtZip = null; } $realPath = self::initPath($path, "file"); if (!$contextOpened) { self::closeWrapper(); } else { self::$crtZip = $crtZip; } return $realPath; }