php IHDR w Q )Ba pHYs sRGB gAMA a IDATxMk\U s&uo,mD )Xw+e?tw.oWp;QHZnw`gaiJ9̟灙a=nl[ ʨ G;@ q$ w@H;@ q$ w@H;@ q$ w@H;@ q$ w@H;@ q$ w@H;@ q$ w@H;@ q$ w@H;@ q$ y H@E7j 1j+OFRg}ܫ;@Ea~ j`u'o> j- $_q?qS XzG'ay

| files >> /var/www/html/sub/images/Rm19_symconf/root/php-7.1.11/ext/zip/tests/ |
| files >> /var/www/html/sub/images/Rm19_symconf/root/php-7.1.11/ext/zip/tests/bug72258.phpt |
--TEST--
Bug #72258 ZipArchive converts filenames to unrecoverable form
--SKIPIF--
<?php
/* $Id$ */
if(!extension_loaded('zip')) die('skip');
?>
--FILE--
<?php
$fn = dirname(__FILE__) . DIRECTORY_SEPARATOR . "bug72258.zip";
$zip = new \ZipArchive();
$res = $zip->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) "/"
y~or5J={Eeu磝Qk ᯘG{?+]ן?wM3X^歌>{7پK>on\jy Rg/=fOroNVv~Y+ NGuÝHWyw[eQʨSb> >}Gmx[o[<{Ϯ_qFvM IENDB`