From: Anatol Belski Date: Mon, 30 May 2016 10:47:04 +0000 (+0200) Subject: Add test for bug #72258 X-Git-Tag: php-7.0.8RC1~28 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=97c530fece03bb42b43137b8542d33a4a09f31c7;p=php Add test for bug #72258 --- diff --git a/ext/zip/tests/bug72258.phpt b/ext/zip/tests/bug72258.phpt new file mode 100644 index 0000000000..0e0c8c1a71 --- /dev/null +++ b/ext/zip/tests/bug72258.phpt @@ -0,0 +1,26 @@ +--TEST-- +Bug #72258 ZipArchive converts fns to unrecoverable form +--SKIPIF-- + +--FILE-- +open($fn); +if ($res !== true) { + echo 'Error opening: ' . $res; + die(); +} + +for ($i = 0; $i < $zip->numFiles; $i++) { + $fnInArc = $zip->getNameIndex($i, ZipArchive::FL_ENC_RAW); + var_dump($fnInArc); +} +?> +--EXPECT-- +string(6) "€‚ƒ„/" diff --git a/ext/zip/tests/bug72258.zip b/ext/zip/tests/bug72258.zip new file mode 100644 index 0000000000..07ea2e4948 Binary files /dev/null and b/ext/zip/tests/bug72258.zip differ