1
0
mirror of https://github.com/php/php-src.git synced 2026-04-19 22:11:12 +02:00
Files
archived-php-src/ext/zip/tests/bug50678.phpt
Nikita Popov 7485978339 Migrate SKIPIF -> EXTENSIONS (#7138)
This is an automated migration of most SKIPIF extension_loaded checks.
2021-06-11 11:57:42 +02:00

30 lines
518 B
PHP

--TEST--
Bug #50678 (files extracted by ZipArchive class lost their original modified time)
--EXTENSIONS--
zip
--INI--
date.timezone=UTC
--FILE--
<?php
$filename = __DIR__ . '/test.zip';
$dirname = __DIR__ . '/bug50678';
@mkdir($dirname);
$zip = new ZipArchive();
$zip->open($filename);
$zip->extractTo($dirname);
$zip->close();
var_dump(date('Ym', filemtime($dirname . '/entry1.txt')));
?>
Done
--EXPECT--
string(6) "200607"
Done
--CLEAN--
<?php
include __DIR__ . '/utils.inc';
rmdir_rf(__DIR__ . '/bug50678');
?>