From: dolby at xpteam dot eu Operating system: gentoo PHP version: 5.2.11RC1 PHP Bug Type: Date/time related Bug description: mktime working strange
Description: ------------ I am just wondering is this a bug or expected behaviour: echo date("r", mktime(0,0,0,9,31,2009)); It returns: Thu, 01 Oct 2009 00:00:00 +0200 but I "expect" i to be: Wed, 30 Sep 2009 00:00:00 +0200 Maybe I am missing the point, but I always supposed the mktime considers real dates. Reproduce code: --------------- echo date("r", mktime(0,0,0,9,31,2009)); Expected result: ---------------- Wed, 30 Sep 2009 00:00:00 +0200 Actual result: -------------- Thu, 01 Oct 2009 00:00:00 +0200 -- Edit bug report at http://bugs.php.net/?id=49422&edit=1 -- Try a snapshot (PHP 5.2): http://bugs.php.net/fix.php?id=49422&r=trysnapshot52 Try a snapshot (PHP 5.3): http://bugs.php.net/fix.php?id=49422&r=trysnapshot53 Try a snapshot (PHP 6.0): http://bugs.php.net/fix.php?id=49422&r=trysnapshot60 Fixed in SVN: http://bugs.php.net/fix.php?id=49422&r=fixed Fixed in SVN and need be documented: http://bugs.php.net/fix.php?id=49422&r=needdocs Fixed in release: http://bugs.php.net/fix.php?id=49422&r=alreadyfixed Need backtrace: http://bugs.php.net/fix.php?id=49422&r=needtrace Need Reproduce Script: http://bugs.php.net/fix.php?id=49422&r=needscript Try newer version: http://bugs.php.net/fix.php?id=49422&r=oldversion Not developer issue: http://bugs.php.net/fix.php?id=49422&r=support Expected behavior: http://bugs.php.net/fix.php?id=49422&r=notwrong Not enough info: http://bugs.php.net/fix.php?id=49422&r=notenoughinfo Submitted twice: http://bugs.php.net/fix.php?id=49422&r=submittedtwice register_globals: http://bugs.php.net/fix.php?id=49422&r=globals PHP 4 support discontinued: http://bugs.php.net/fix.php?id=49422&r=php4 Daylight Savings: http://bugs.php.net/fix.php?id=49422&r=dst IIS Stability: http://bugs.php.net/fix.php?id=49422&r=isapi Install GNU Sed: http://bugs.php.net/fix.php?id=49422&r=gnused Floating point limitations: http://bugs.php.net/fix.php?id=49422&r=float No Zend Extensions: http://bugs.php.net/fix.php?id=49422&r=nozend MySQL Configuration Error: http://bugs.php.net/fix.php?id=49422&r=mysqlcfg