--TEST-- Bug #64342 ZipArchive::addFile() has to check file existance (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) { dump_entries_name($zip); $zip->close(); } else { echo "failed\n"; } @unlink($file); ?> --EXPECTF-- failed 0 bar 1 foobar/ 2 foobar/baz 3 entry1.txt