mirror of
https://github.com/php/php-src.git
synced 2024-09-21 18:07:23 +00:00
3e33eda39a
Closes GH-12547.
24 lines
518 B
PHP
24 lines
518 B
PHP
--TEST--
|
|
GH-12532 (PharData created from zip has incorrect timestamp)
|
|
--EXTENSIONS--
|
|
phar
|
|
zlib
|
|
--FILE--
|
|
<?php
|
|
|
|
date_default_timezone_set('UTC');
|
|
$phar = new PharData(__DIR__ . '/gh12532.zip');
|
|
echo $phar->getMTime(), "\n";
|
|
echo $phar->getFileInfo()->getMTime(), "\n";
|
|
echo date('Y-m-d H:i:s', $phar->getMTime()), "\n";
|
|
echo date('Y-m-d H:i:s', $phar->getCTime()), "\n";
|
|
echo date('Y-m-d H:i:s', $phar->getATime()), "\n";
|
|
|
|
?>
|
|
--EXPECT--
|
|
1680284661
|
|
1680284661
|
|
2023-03-31 17:44:21
|
|
2023-03-31 17:44:21
|
|
2023-03-31 17:44:21
|