#36292 [Opn->Bgs]: A BIG PROBLEM IN mktime FUNCTION !!!!!
| From: | tony2001@php.net | Date: | Sun, 05 Feb 2006 14:41:24 +0000 |
| Subject: | #36292 [Opn->Bgs]: A BIG PROBLEM IN mktime FUNCTION !!!!! | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-92930@lists.php.net to get a copy of this message | ||
ID: 36292
Updated by: tony2001@php.net
Reported By: hello at cmail dot cz
-Status: Open
+Status: Bogus
Bug Type: Date/time related
Operating System: Windows XP SP2
PHP Version: 4.4.2
New Comment:
You just have discovered octal numbers.
09 != 9
Previous Comments:
------------------------------------------------------------------------
[2006-02-05 15:36:24] hello at cmail dot cz
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 this bug report at http://bugs.php.net/?id=36292&edit=1