foreach ($dirEntries as $dirEntriy) {
            if ($dirEntriy == "." || $dirEntriy == "..") {
                continue;
            }
            $subject = $dir_path . DIRECTORY_SEPARATOR . $dirEntriy;
            //if this is directory then index its contents
            if (is_dir($subject)) {
                $this->__indexDirRec($subject);
            } else {
                //save path as relative path inside zip
                $this->fileIndex[] = str_replace($this->tempDirPath . DIRECTORY_SEPARATOR, "", $subject);
            }
        }
    }
}
ZipArchive::setup();
//try to find locations of zip/unzip binaries
/**
 * Open a ZIP file archive
 * @link http://php.net/manual/en/function.zip-open.php
 * @param filename string <p>
 * The file name of the ZIP archive to open.
 * </p>
 * @return mixed a resource handle for later use with
 * zip_read and zip_close
 * or returns the number of error if filename does not
 * exist or in case of other error.
 */
function zip_open($filename)
{
}