1
0
mirror of https://github.com/php/php-src.git synced 2026-04-14 03:22:58 +02:00
Files
archived-php-src/ext/zip/tests/bug72258.phpt
Peter Kokot 0eabd5231b Remove unused Git ident attributes from zip extension
$Id attributes were used with SVN. With Git most of the Git ident
attributes in source code files are not used anymore.
2018-07-27 15:49:34 +02:00

26 lines
490 B
PHP
Raw Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
--TEST--
Bug #72258 ZipArchive converts filenames to unrecoverable form
--SKIPIF--
<?php
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) "€<>ƒ„/"