--TEST-- ziparchive::addEmptyDir --SKIPIF-- --FILE-- open($file)) { exit('failed'); } $zip->addEmptyDir('emptydir'); if ($zip->status == ZIPARCHIVE::ER_OK) { if (!verify_entries($zip, [ "bar", "foobar/", "foobar/baz", "entry1.txt", "emptydir/" ])) { echo "failed\n"; } else { echo "OK"; } $zip->close(); } else { echo "failed3\n"; } @unlink($file); ?> --EXPECT-- OK