Since a Unix Timestamp is measured in seconds, not milliseconds, I would have to assume that mtime is 'modified time' rather than 'millisecond time'... however it does not appear to work on a Linux system(PHP 5 >= 5.2.0, PHP 7, PHP 8, PECL zip >= 1.5.0)
ZipArchive::statName â RĂ©cupĂšre les dĂ©tails de l'entrĂ©e dĂ©finie par son nom
Cette fonction obtient des informations sur l'entrée définie par son nom.
nameflags
Le flag spécifie comment la recherche sur le nom doit s'effectuer.
ZipArchive::FL_UNCHANGED doit ĂȘtre utilisĂ©
pour récupérer les informations sur le fichier original de l'archive,
ignorant toutes les modifications effectuées.
Retourne un tableau contenant les détails de l'entrée, ou false si une erreur survient.
Exemple #1 RécupÚre les informations d'une entrée
<?php
$zip = new ZipArchive;
$res = $zip->open('test.zip');
if ($res === TRUE) {
print_r($zip->statName('foobar/baz'));
$zip->close();
} else {
echo 'échec, code:' . $res;
}
?>Résultat de l'exemple ci-dessus est similaire à :
Array
(
[name] => foobar/baz
[index] => 3
[crc] => 499465816
[size] => 27
[mtime] => 1123164748
[comp_size] => 24
[comp_method] => 8
)
Since a Unix Timestamp is measured in seconds, not milliseconds, I would have to assume that mtime is 'modified time' rather than 'millisecond time'... however it does not appear to work on a Linux system