Edit report at https://bugs.php.net/bug.php?id=40568&edit=1
ID: 40568 Comment by: ckatira at hotmail dot com Reported by: JPlissonneauDuquene at bellhelicopter dot textr Summary: filemtime shifted by one hour on win32 Status: Closed Type: Bug Package: Filesystem function related Operating System: win32 only - WinXP PHP Version: 5.2.1 Assigned To: pajoye Block user comment: N Private report: N New Comment: The fix in 5.3 fixes the problem with the file times reported for NTFS volumes but introduces the problem with file times returned for files in FAT volumes. Now the file times for FAT volumes are not constant across day light saving changes. To keep these constant for FAT volumes Windows stat function should be used. Previous Comments: ------------------------------------------------------------------------ [2009-03-04 10:28:36] paj...@php.net We use the new API now in 5.3+. ------------------------------------------------------------------------ [2008-12-11 01:00:00] php-bugs at lists dot php dot net No feedback was provided for this bug for over a week, so it is being suspended automatically. If you are able to provide the information that was originally requested, please do so and change the status of the bug back to "Open". ------------------------------------------------------------------------ [2008-12-03 13:36:42] paj...@php.net Please try using this CVS snapshot: http://snaps.php.net/php5.3-latest.tar.gz For Windows: http://windows.php.net/snapshots/ I changed the underlying code to use the windows native APIs. Please try it. ------------------------------------------------------------------------ [2008-07-02 10:18:50] marcello at vezz dot it Very easy reproduce code (should try it during daylight saving time): <?php $fullfilename='test.dll'; $ft=filemtime($fullfilename); touch($fullfilename.'.md5',$ft); $nt=filemtime($fullfilename.'.md5'); echo $ft.' : '.$nt; ?> Please get test.dll from http://www.vezz.it/php/test.zip Original file modification date: 19 feb 2008, 19.08.47 The script output: 1203440927 : 1203437327 The touched file date is one hour back. 19 feb 2008, 18.08.47 instead of 19 feb 2008, 19.08.47 In my opinion, this should really be fixed. ------------------------------------------------------------------------ [2008-05-01 00:38:37] louis at steelbytes dot com I've build a PHP extension to workaround this ... http://www.steelbytes.com/?mid=46 ------------------------------------------------------------------------ The remainder of the comments for this report are too long. To view the rest of the comments, please view the bug report online at https://bugs.php.net/bug.php?id=40568 -- Edit this bug report at https://bugs.php.net/bug.php?id=40568&edit=1