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