Bug #55619 [Opn->Bgs]: checkdate() returns incorrect results
| From: | derick@php.net | Date: | Tue, 06 Sep 2011 12:03:11 +0000 |
| Subject: | Bug #55619 [Opn->Bgs]: checkdate() returns incorrect results | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-163327@lists.php.net to get a copy of this message | ||
Edit report at https://bugs.php.net/bug.php?id=55619&edit=1
ID: 55619
Updated by: derick@php.net
Reported by: invisiblexman2010 at gmail dot com
Summary: checkdate() returns incorrect results
-Status: Open
+Status: Bogus
Type: Bug
Package: Date/time related
Operating System: linux 2.6.32-33-generic on i686
PHP Version: 5.3.2
Block user comment: N
Private report: N
New Comment:
Thank you for taking the time to write to us, but this is not
a bug. Please double-check the documentation available at
http://www.php.net/manual/ and the instructions on how to
report
a bug at http://bugs.php.net/how-to-report.php
This is correct behaviour: http://en.wikipedia.org/wiki/Leap_year#Algorithm
Previous Comments:
------------------------------------------------------------------------
[2011-09-06 11:46:55] invisiblexman2010 at gmail dot com
Update Summary section
------------------------------------------------------------------------
[2011-09-06 11:33:33] invisiblexman2010 at gmail dot com
Description:
------------
Function checkdate() returns incorrect results in some cases, when passed February 29 leap year.
Test script:
---------------
var_dump(checkdate('02', '29', '2100'));
var_dump(checkdate('02', '29', '1900'));
Expected result:
----------------
bool(true) bool(true)
Actual result:
--------------
bool(false) bool(false)
------------------------------------------------------------------------
--
Edit this bug report at https://bugs.php.net/bug.php?id=55619&edit=1