--TEST-- Bug #64342 ZipArchive::addFile() has to check file existence (variation 2) --SKIPIF-- --FILE-- open($file)) { exit('failed'); } if (!$zip->addFile($dirname . 'cant_find_me.txt', 'test.php')) { echo "failed\n"; } if ($zip->status == ZIPARCHIVE::ER_OK) { if (!verify_entries($zip, [ "bar", "foobar/", "foobar/baz", "entry1.txt" ])) { echo "failed\n"; } else { echo "OK"; } $zip->close(); } else { echo "failed\n"; } @unlink($file); ?> --EXPECT-- failed OK