ID: 23361 Comment by: anselme at netcourrier dot com Reported By: mktime_bug at cuntbubble dot com Status: Bogus Bug Type: Date/time related Operating System: FreeBSD 4.6 & 4.7 PHP Version: 4.3.1 New Comment:
Got the same problem on a FreeBSD4.9 with php4.3.5 Wonder if it isnot a problem with the change of hour ? (which was the 31 of march in 2002 and the 28th of march in 2004) echo '<?echo mktime (0,0,0,3,28,2004);?>' | php -7262 echo '<?echo mktime (1,0,0,3,28,2004);?>' | php -3662 echo '<?echo mktime (2,0,0,3,28,2004);?>' | php -62 echo '<?echo mktime (3,0,0,3,28,2004);?>' | php 1080435600 //good echo '<?echo mktime (0,0,0,3,29,2004);?>' | php 1080511200 //good ?? Previous Comments: ------------------------------------------------------------------------ [2003-04-28 09:24:49] [EMAIL PROTECTED] Additional note: Works fine with the LEGAL years, 2002 and 2001, those others in your examples are not legal. ------------------------------------------------------------------------ [2003-04-28 09:23:54] [EMAIL PROTECTED] Must be OS specific as this works fine in Linux. ------------------------------------------------------------------------ [2003-04-26 09:39:12] mktime_bug at cuntbubble dot com (summary field was wrong) ------------------------------------------------------------------------ [2003-04-26 09:38:00] mktime_bug at cuntbubble dot com enterting some values to mktime produces the wrong answer echo '<?echo mktime (0,0,0,3,31,2002);?>' | php -3662 echo '<?echo mktime (0,0,0,3,31,2001);?>' | php 985993200 echo '<?echo mktime (0,0,0,3,31,1002);?>' | php -3662 echo '<?echo mktime (0,0,0,3,31,2);?>' | php -3662 echo '<?echo mktime (0,0,0,3,32,2);?>' | php 1017615600 I tried it on two machines both installed today from the FreeBSD Port I don't have any other versions available to test it ------------------------------------------------------------------------ -- Edit this bug report at http://bugs.php.net/?id=23361&edit=1