mirror of
https://github.com/php/php-src.git
synced 2026-04-22 23:48:14 +02:00
7485978339
This is an automated migration of most SKIPIF extension_loaded checks.
24 lines
458 B
PHP
24 lines
458 B
PHP
--TEST--
|
|
Bug #72258 ZipArchive converts filenames to unrecoverable form
|
|
--EXTENSIONS--
|
|
zip
|
|
--FILE--
|
|
<?php
|
|
|
|
$fn = __DIR__ . 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) "€�‚ƒ„/"
|