#23361 [Opn]: mktime gives the wrong answer when year ends in 2
| From: | mktime_bug at cuntbubble dot com | Date: | Sat, 26 Apr 2003 14:39:13 +0000 |
| Subject: | #23361 [Opn]: mktime gives the wrong answer when year ends in 2 | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-38450@lists.php.net to get a copy of this message | ||
ID: 23361
User updated by: mktime_bug at cuntbubble dot com
-Summary: mktime gives the wrong answer when year ends in 2 for
out of bounds
Reported By: mktime_bug at cuntbubble dot com
Status: Open
Bug Type: Date/time related
Operating System: FreeBSD 4.6 & 4.7
PHP Version: 4.3.1
New Comment:
(summary field was wrong)
Previous Comments:
------------------------------------------------------------------------
[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