1--TEST-- 2Bug #72258 ZipArchive converts filenames to unrecoverable form 3--EXTENSIONS-- 4zip 5--FILE-- 6<?php 7 8$fn = __DIR__ . DIRECTORY_SEPARATOR . "bug72258.zip"; 9 10$zip = new \ZipArchive(); 11$res = $zip->open($fn); 12if ($res !== true) { 13 echo 'Error opening: ' . $res; 14 die(); 15} 16 17for ($i = 0; $i < $zip->numFiles; $i++) { 18 $fnInArc = $zip->getNameIndex($i, ZipArchive::FL_ENC_RAW); 19 var_dump($fnInArc); 20} 21?> 22--EXPECT-- 23string(6) "�����/" 24