From: dsacchet at kikamedical dot com Operating system: Linux 2.4.27 PHP version: 4.3.10 PHP Bug Type: Date/time related Bug description: mktime() - Out of range problem
Description: ------------ hello, I observed a misbehaviour with out of range value on the mktime function. When I put a number of seconds gretear than 59, mktime round up to 59 and don't increment minutes ... Best regards Denis Sacchet Reproduce code: --------------- echo date("M-d-Y H:i:s", mktime(8, 0, 60, 12, 31, 1997)); Expected result: ---------------- 08:01:00 Actual result: -------------- 08:00:59 -- Edit bug report at http://bugs.php.net/?id=32425&edit=1 -- Try a CVS snapshot (php4): http://bugs.php.net/fix.php?id=32425&r=trysnapshot4 Try a CVS snapshot (php5.0): http://bugs.php.net/fix.php?id=32425&r=trysnapshot50 Try a CVS snapshot (php5.1): http://bugs.php.net/fix.php?id=32425&r=trysnapshot51 Fixed in CVS: http://bugs.php.net/fix.php?id=32425&r=fixedcvs Fixed in release: http://bugs.php.net/fix.php?id=32425&r=alreadyfixed Need backtrace: http://bugs.php.net/fix.php?id=32425&r=needtrace Need Reproduce Script: http://bugs.php.net/fix.php?id=32425&r=needscript Try newer version: http://bugs.php.net/fix.php?id=32425&r=oldversion Not developer issue: http://bugs.php.net/fix.php?id=32425&r=support Expected behavior: http://bugs.php.net/fix.php?id=32425&r=notwrong Not enough info: http://bugs.php.net/fix.php?id=32425&r=notenoughinfo Submitted twice: http://bugs.php.net/fix.php?id=32425&r=submittedtwice register_globals: http://bugs.php.net/fix.php?id=32425&r=globals PHP 3 support discontinued: http://bugs.php.net/fix.php?id=32425&r=php3 Daylight Savings: http://bugs.php.net/fix.php?id=32425&r=dst IIS Stability: http://bugs.php.net/fix.php?id=32425&r=isapi Install GNU Sed: http://bugs.php.net/fix.php?id=32425&r=gnused Floating point limitations: http://bugs.php.net/fix.php?id=32425&r=float No Zend Extensions: http://bugs.php.net/fix.php?id=32425&r=nozend MySQL Configuration Error: http://bugs.php.net/fix.php?id=32425&r=mysqlcfg