--TEST-- Bug GH-8781 (ZipArchive deletes zip file with no contents) --EXTENSIONS-- zip --FILE-- open($file, ZipArchive::CREATE | ZipArchive::OVERWRITE); $zip->close(); var_dump(is_file($file)); ?> --EXPECT-- bool(true) bool(false)