--TEST-- Bug #72374 (ZipArchive::addGlob remove_path option strips first char of filename) --SKIPIF-- --FILE-- open($dirname . '/test.zip', ZipArchive::CREATE | ZipArchive::OVERWRITE); $zip->addGlob($file1, 0, array('remove_path' => $dirname . '/some-')); $zip->addGlob($file1, 0, array('remove_path' => $dirname . '/')); $zip->addGlob($file2, 0, array('remove_path' => $dirname)); verify_entries($zip, ['foo.txt', 'some-foo.txt', 'some-bar.txt']); $zip->close(); ?> --CLEAN-- --EXPECT--