--TEST-- ziparchive::count() --EXTENSIONS-- zip --FILE-- open($file)) { exit('failed'); } var_dump($zip->numFiles, count($zip), $zip->numFiles == count($zip)); ?> Done --EXPECT-- int(4) int(4) bool(true) Done