--TEST-- Bug #51353 ZIP64 problem, archive with 100000 items --SKIPIF-- 12M big, or create it dynamically. */ $zip = new ZipArchive; $r = $zip->open("$base_path/51353.zip", ZIPARCHIVE::CREATE | ZIPARCHIVE::OVERWRITE); if ($r) { for ($i = 0; $i < 100000; $i++) { $zip->addFromString("$i.txt", '1'); } $zip->close(); } else { die("failed"); } $zip = new ZipArchive; $r = $zip->open("$base_path/51353.zip"); if ($r) { $zip->extractTo("$base_path/51353_unpack"); $zip->close(); $a = glob("$base_path/51353_unpack/*.txt"); echo count($a) . "\n"; } else { die("failed"); } echo "OK"; --CLEAN-- --EXPECT-- 100000 OK