protected static function closeWrapper()
 {
     if (self::$crtZip != null) {
         self::$crtZip = null;
         self::$currentListing = null;
         self::$currentListingKeys = null;
         self::$currentListingIndex = null;
         self::$currentFileKey = null;
     }
 }
 public static function getRealFSReference($path)
 {
     $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;
 }