#38586 [NEW]: mktime has some problem for some day.

From: Date: Fri, 25 Aug 2006 00:01:35 +0000
Subject: #38586 [NEW]: mktime has some problem for some day.
Groups: php.bugs 
Request: Send a blank email to php-bugs+get-101308@lists.php.net to get a copy of this message
From: ziyunxiao at gmail dot com Operating system: WiNXP PHP version: 5.1.5 PHP Bug Type: Date/time related Bug description: mktime has some problem for some day. Description: ------------ day Oct 30 has 90000 seconds a day. I only test year 2005,2006,2007 in Version is php 5.1.4 and 5.1.6. I didn't install 5.1.5. the result is right on php 4.4.3 Reproduce code: --------------- <? $st=mktime(0, 0, 0, 10, 30,2007); $st1=mktime(0, 0, 0, 10, 31,2007); echo "seconds:".($st1 - $st)."<br>"; ?> Expected result: ---------------- seconds:86400 Actual result: -------------- seconds:90000 -- Edit bug report at http://bugs.php.net/?id=38586&edit=1 -- Try a CVS snapshot (PHP 4.4): http://bugs.php.net/fix.php?id=38586&r=trysnapshot44 Try a CVS snapshot (PHP 5.2): http://bugs.php.net/fix.php?id=38586&r=trysnapshot52 Try a CVS snapshot (PHP 6.0): http://bugs.php.net/fix.php?id=38586&r=trysnapshot60 Fixed in CVS: http://bugs.php.net/fix.php?id=38586&r=fixedcvs Fixed in release: http://bugs.php.net/fix.php?id=38586&r=alreadyfixed Need backtrace: http://bugs.php.net/fix.php?id=38586&r=needtrace Need Reproduce Script: http://bugs.php.net/fix.php?id=38586&r=needscript Try newer version: http://bugs.php.net/fix.php?id=38586&r=oldversion Not developer issue: http://bugs.php.net/fix.php?id=38586&r=support Expected behavior: http://bugs.php.net/fix.php?id=38586&r=notwrong Not enough info: http://bugs.php.net/fix.php?id=38586&r=notenoughinfo Submitted twice: http://bugs.php.net/fix.php?id=38586&r=submittedtwice register_globals: http://bugs.php.net/fix.php?id=38586&r=globals PHP 3 support discontinued: http://bugs.php.net/fix.php?id=38586&r=php3 Daylight Savings: http://bugs.php.net/fix.php?id=38586&r=dst IIS Stability: http://bugs.php.net/fix.php?id=38586&r=isapi Install GNU Sed: http://bugs.php.net/fix.php?id=38586&r=gnused Floating point limitations: http://bugs.php.net/fix.php?id=38586&r=float No Zend Extensions: http://bugs.php.net/fix.php?id=38586&r=nozend MySQL Configuration Error: http://bugs.php.net/fix.php?id=38586&r=mysqlcfg

« previous php.bugs (#101308) next »