bug72258.phpt 458 B

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