diff --git a/ext/phar/tests/zip/files/odt.odt b/ext/phar/tests/zip/files/odt.odt new file mode 100644 index 00000000000..527e09fefce Binary files /dev/null and b/ext/phar/tests/zip/files/odt.odt differ diff --git a/ext/phar/tests/zip/odt.phpt b/ext/phar/tests/zip/odt.phpt new file mode 100644 index 00000000000..9901c21cb79 --- /dev/null +++ b/ext/phar/tests/zip/odt.phpt @@ -0,0 +1,27 @@ +--TEST-- +Phar: test a zip archive created by openoffice +--SKIPIF-- + + +--FILE-- +isDir()) { + echo "dir " . $b->getPathName() . "\n"; + } else { + echo $b->getPathName() . "\n"; + } +} +?> +===DONE=== +--EXPECTF-- +phar://%sodt.odt%cConfigurations2%caccelerator%ccurrent.xml +phar://%sodt.odt%cMETA-INF%cmanifest.xml +phar://%sodt.odt%cThumbnails%cthumbnail.png +phar://%sodt.odt%ccontent.xml +phar://%sodt.odt%cmeta.xml +phar://%sodt.odt%cmimetype +phar://%sodt.odt%csettings.xml +phar://%sodt.odt%cstyles.xml +===DONE===