#36292 [NEW]: A BIG PROBLEM IN mktime FUNCTION !!!!!
| From: | hello at cmail dot cz | Date: | Sun, 05 Feb 2006 14:36:25 +0000 |
| Subject: | #36292 [NEW]: A BIG PROBLEM IN mktime FUNCTION !!!!! | ||
| Groups: | php.bugs | ||
| Request: | Send a blank email to php-bugs+get-92929@lists.php.net to get a copy of this message | ||
From: hello at cmail dot cz
Operating system: Windows XP SP2
PHP version: 4.4.2
PHP Bug Type: Date/time related
Bug description: A BIG PROBLEM IN mktime FUNCTION !!!!!
Description:
------------
Hi! I found a big problem in function mktime. A different days returns
same value. Especially FEBRUARY 8th and 9th 2006. It's a very important,
because it's a very soon. There is a fatal problem. See the code below.
Greetings from Czech republic. Beda
Reproduce code:
---------------
$A1 = mktime(00,00,00,01,31,2006);
$A2 = mktime(00,00,00,02,07,2006);
// $A1=1138662000 $A2=1139266800
$A1 = mktime(00,00,00,01,31,2006);
$A2 = mktime(00,00,00,02,08,2006);
// both ($A1 and $A2) returns 1138662000
$A1 = mktime(00,00,00,01,31,2006);
$A2 = mktime(00,00,00,02,09,2006);
// both ($A1 and $A2) returns 1138662000
Expected result:
----------------
please see the above
Actual result:
--------------
please see the above
--
Edit bug report at http://bugs.php.net/?id=36292&edit=1
--
Try a CVS snapshot (PHP 4.4): http://bugs.php.net/fix.php?id=36292&r=trysnapshot44
Try a CVS snapshot (PHP 5.1): http://bugs.php.net/fix.php?id=36292&r=trysnapshot51
Try a CVS snapshot (PHP 6.0): http://bugs.php.net/fix.php?id=36292&r=trysnapshot60
Fixed in CVS: http://bugs.php.net/fix.php?id=36292&r=fixedcvs
Fixed in release: http://bugs.php.net/fix.php?id=36292&r=alreadyfixed
Need backtrace: http://bugs.php.net/fix.php?id=36292&r=needtrace
Need Reproduce Script: http://bugs.php.net/fix.php?id=36292&r=needscript
Try newer version: http://bugs.php.net/fix.php?id=36292&r=oldversion
Not developer issue: http://bugs.php.net/fix.php?id=36292&r=support
Expected behavior: http://bugs.php.net/fix.php?id=36292&r=notwrong
Not enough info: http://bugs.php.net/fix.php?id=36292&r=notenoughinfo
Submitted twice: http://bugs.php.net/fix.php?id=36292&r=submittedtwice
register_globals: http://bugs.php.net/fix.php?id=36292&r=globals
PHP 3 support discontinued: http://bugs.php.net/fix.php?id=36292&r=php3
Daylight Savings: http://bugs.php.net/fix.php?id=36292&r=dst
IIS Stability: http://bugs.php.net/fix.php?id=36292&r=isapi
Install GNU Sed: http://bugs.php.net/fix.php?id=36292&r=gnused
Floating point limitations: http://bugs.php.net/fix.php?id=36292&r=float
No Zend Extensions: http://bugs.php.net/fix.php?id=36292&r=nozend
MySQL Configuration Error: http://bugs.php.net/fix.php?id=36292&r=mysqlcfg