ID: 28083 Updated by: [EMAIL PROTECTED] Reported By: obrut at abv dot bg -Status: Open +Status: Assigned Bug Type: Date/time related Operating System: Microsoft Windows XP SP1 PHP Version: 4.3.6 -Assigned To: +Assigned To: wez New Comment:
I had this same problem (bogus mtime) under XP too, but put it down to windows misbehaving. I'll investigate. Previous Comments: ------------------------------------------------------------------------ [2004-04-20 22:30:15] obrut at abv dot bg Description: ------------ When using filemtime(), filectime and stat() erroneous date is returned for some files. For ex. 31 Feb 2004 which of course is not the right date. The OS reports correct date. On some files the difference between the returned and the actual file date is exactly one month. Mostly the deviation from the real date remains unidentified. PHP is installed as an Apache module in Apache 2.0.49 I suppose this is an OS-related issue. No one reported such problem under Linux for example. Reproduce code: --------------- echo date( "d.h.Y H:i:s", filemtime( "./IP.txt" ) ); Expected result: ---------------- 20.04.2004 15:08:14 Actual result: -------------- 20.03.2004 15:08:14 ------------------------------------------------------------------------ -- Edit this bug report at http://bugs.php.net/?id=28083&edit=1