aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDerver <matt-2408@hotmail.fr>2013-09-28 15:23:45 +0200
committerIvan Enderlin <ivan.enderlin@hoa-project.net>2013-09-28 18:26:07 +0200
commitdb89bfa9fd46f8fa14c8258e1484f12dc3d4a398 (patch)
tree35e5cdab8f33974a921f1e46ec23748abd218dd7
parent955a28cb1ad406d59d41292c425553fd6b670f42 (diff)
downloadIterator-db89bfa9fd46f8fa14c8258e1484f12dc3d4a398.zip
Iterator-db89bfa9fd46f8fa14c8258e1484f12dc3d4a398.tar.gz
Iterator-db89bfa9fd46f8fa14c8258e1484f12dc3d4a398.tar.bz2
Change ctime for mtime when computing the hash.
Original commit message below. Add modify time on Windows on Windows: getCTime() return the file's creation time getMTime() return the last modified time Used by \Hoa\File\Watcher Bug from Win OS or NTFS file format ?
-rw-r--r--SplFileInfo.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/SplFileInfo.php b/SplFileInfo.php
index fe588fb..a00e426 100644
--- a/SplFileInfo.php
+++ b/SplFileInfo.php
@@ -78,7 +78,7 @@ class SplFileInfo extends \SplFileInfo {
$this->_hash = md5(
$this->getPathname() .
- $this->getCTime()
+ (OS_WIN) ? $this->getMTime() : $this->getCTime()
);
$this->_relativePath = $relativePath;