From: cybermandanger at gmail dot com Operating system: Linux Red Hat Enterprise 5 PHP version: 5.2.12 PHP Bug Type: Date/time related Bug description: BUG mktime function
Description: ------------ Bug in mktime function parameters. mktime function expects 7 numeric parameters. I´ve passed instead of 8 (whick is numeric) the value 08 (which is also numeric) but the shown result is completly unexpected. Example: <?php $intData = mktime(00,00,00,01,08,2010); echo date("d/m/Y H:i:s", $intData); ?> should print 08/01/2010 00:00:00 but is printing 31/12/2009 00:00:00. Note: the problem occurs only with day parameter. if I send 08 in the month parametes the result is right. Reproduce code: --------------- $intData = mktime(00,00,00,01,08,2010); echo date("d/m/Y H:i:s", $intData); Expected result: ---------------- 08/01/2010 00:00:00 Actual result: -------------- 31/12/2009 00:00:00 -- Edit bug report at http://bugs.php.net/?id=50697&edit=1 -- Try a snapshot (PHP 5.2): http://bugs.php.net/fix.php?id=50697&r=trysnapshot52 Try a snapshot (PHP 5.3): http://bugs.php.net/fix.php?id=50697&r=trysnapshot53 Try a snapshot (PHP 6.0): http://bugs.php.net/fix.php?id=50697&r=trysnapshot60 Fixed in SVN: http://bugs.php.net/fix.php?id=50697&r=fixed Fixed in SVN and need be documented: http://bugs.php.net/fix.php?id=50697&r=needdocs Fixed in release: http://bugs.php.net/fix.php?id=50697&r=alreadyfixed Need backtrace: http://bugs.php.net/fix.php?id=50697&r=needtrace Need Reproduce Script: http://bugs.php.net/fix.php?id=50697&r=needscript Try newer version: http://bugs.php.net/fix.php?id=50697&r=oldversion Not developer issue: http://bugs.php.net/fix.php?id=50697&r=support Expected behavior: http://bugs.php.net/fix.php?id=50697&r=notwrong Not enough info: http://bugs.php.net/fix.php?id=50697&r=notenoughinfo Submitted twice: http://bugs.php.net/fix.php?id=50697&r=submittedtwice register_globals: http://bugs.php.net/fix.php?id=50697&r=globals PHP 4 support discontinued: http://bugs.php.net/fix.php?id=50697&r=php4 Daylight Savings: http://bugs.php.net/fix.php?id=50697&r=dst IIS Stability: http://bugs.php.net/fix.php?id=50697&r=isapi Install GNU Sed: http://bugs.php.net/fix.php?id=50697&r=gnused Floating point limitations: http://bugs.php.net/fix.php?id=50697&r=float No Zend Extensions: http://bugs.php.net/fix.php?id=50697&r=nozend MySQL Configuration Error: http://bugs.php.net/fix.php?id=50697&r=mysqlcfg