ID: 36292 Updated by: [EMAIL PROTECTED] 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