PHP 4.0 Bug #3078: date problem: no 29 Februari 2000
| From: | auke at muze dot nl | Date: | Sat, 01 Jan 2000 13:45:22 +0000 |
| Subject: | PHP 4.0 Bug #3078: date problem: no 29 Februari 2000 | ||
| Groups: | php.dev | ||
| Request: | Send a blank email to php-dev+get-14185@lists.php.net to get a copy of this message | ||
From: auke@muze.nl
Operating system: Linux, probably all
PHP version: 4.0 Beta 3
PHP Bug Type: Misbehaving function
Bug description: date problem: no 29 Februari 2000
$lastday=mktime(0,0,0,3,-1,2000);
echo strftime("Last day in februari 2000 is : %d<br>",$lastday);
This short script displays '28' on my system. Februari 2000 has 29 days however. I'm
not sure where this bug comes from, 'cal' displays februari 2000 correctly with 29 days.
I've observed the same problem with PHP 3.0.5 on solaris 2.6