From: obrut at abv dot bg Operating system: Microsoft Windows XP SP1 PHP version: 4.3.6 PHP Bug Type: Date/time related Bug description: Erroneous date returned by filemtime()
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 bug report at http://bugs.php.net/?id=28083&edit=1 -- Try a CVS snapshot (php4): http://bugs.php.net/fix.php?id=28083&r=trysnapshot4 Try a CVS snapshot (php5): http://bugs.php.net/fix.php?id=28083&r=trysnapshot5 Fixed in CVS: http://bugs.php.net/fix.php?id=28083&r=fixedcvs Fixed in release: http://bugs.php.net/fix.php?id=28083&r=alreadyfixed Need backtrace: http://bugs.php.net/fix.php?id=28083&r=needtrace Need Reproduce Script: http://bugs.php.net/fix.php?id=28083&r=needscript Try newer version: http://bugs.php.net/fix.php?id=28083&r=oldversion Not developer issue: http://bugs.php.net/fix.php?id=28083&r=support Expected behavior: http://bugs.php.net/fix.php?id=28083&r=notwrong Not enough info: http://bugs.php.net/fix.php?id=28083&r=notenoughinfo Submitted twice: http://bugs.php.net/fix.php?id=28083&r=submittedtwice register_globals: http://bugs.php.net/fix.php?id=28083&r=globals PHP 3 support discontinued: http://bugs.php.net/fix.php?id=28083&r=php3 Daylight Savings: http://bugs.php.net/fix.php?id=28083&r=dst IIS Stability: http://bugs.php.net/fix.php?id=28083&r=isapi Install GNU Sed: http://bugs.php.net/fix.php?id=28083&r=gnused Floating point limitations: http://bugs.php.net/fix.php?id=28083&r=float