classes/phing/tasks/ext/UnzipTask.php
protected function listArchiveContent(PhingFile $zipfile)
    {
        $zip = new ZipArchive();
        $zip->open($zipfile->getAbsolutePath());

        $content = [];
        for ($i = 0; $i < $zip->numFiles; $i++) {
            $content[] = [
                'filename' => $zip->getNameIndex($i)
            ];
        }

        return $content;
    }
protected function listArchiveContent(PhingFile $zipfile)
    {
        $zip = new ZipArchive();
        $zip->open($zipfile->getAbsolutePath());

        $content = [];
        for ($i = 0; $i < $zip->numFiles; $i++) {
            $content[] = [
                'filename' => $zip->getNameIndex($i)
            ];
        }

        return $content;
    }
protected function listArchiveContent ( PhingFile $ zipfile ) { $ zip = new ZipArchive ( ) ; $ zip -> open ( $ zipfile -> getAbsolutePath ( ) ) ; $ content = [ ] ; for ( $ i = 0 ; $ i < $ zip -> numFiles ; $ i ++ ) { $ content [ ] = [ 'filename' => $ zip -> getNameIndex ( $ i ) ] ; } return $ content ; }
List archive content

@param  PhingFile Zip file to list content
@return array List of files inside $zipfile
List archive content