#23361 [NEW]: mktime gives the wrong answer when year ends in 2 for out of bounds

From: Date: Sat, 26 Apr 2003 14:38:00 +0000
Subject: #23361 [NEW]: mktime gives the wrong answer when year ends in 2 for out of bounds
Groups: php.bugs 
Request: Send a blank email to php-bugs+get-38448@lists.php.net to get a copy of this message
From: mktime_bug at cuntbubble dot com Operating system: FreeBSD 4.6 & 4.7 PHP version: 4.3.1 PHP Bug Type: Date/time related Bug description: mktime gives the wrong answer when year ends in 2 for out of bounds 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 bug report at http://bugs.php.net/?id=23361&edit=1 -- Try a CVS snapshot: http://bugs.php.net/fix.php?id=23361&r=trysnapshot Fixed in CVS: http://bugs.php.net/fix.php?id=23361&r=fixedcvs Fixed in release: http://bugs.php.net/fix.php?id=23361&r=alreadyfixed Need backtrace: http://bugs.php.net/fix.php?id=23361&r=needtrace Try newer version: http://bugs.php.net/fix.php?id=23361&r=oldversion Not developer issue: http://bugs.php.net/fix.php?id=23361&r=support Expected behavior: http://bugs.php.net/fix.php?id=23361&r=notwrong Not enough info: http://bugs.php.net/fix.php?id=23361&r=notenoughinfo Submitted twice: http://bugs.php.net/fix.php?id=23361&r=submittedtwice register_globals: http://bugs.php.net/fix.php?id=23361&r=globals PHP 3 support discontinued: http://bugs.php.net/fix.php?id=23361&r=php3 Daylight Savings: http://bugs.php.net/fix.php?id=23361&r=dst IIS Stability: http://bugs.php.net/fix.php?id=23361&r=isapi Install GNU Sed: http://bugs.php.net/fix.php?id=23361&r=gnused

« previous php.bugs (#38448) next »