Bug #55619 [Opn]: checkdate() returns incorrect results
| From: | invisiblexman2010 at gmail dot com | Date: | Tue, 06 Sep 2011 11:46:55 +0000 |
| Subject: | Bug #55619 [Opn]: checkdate() returns incorrect results | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-163326@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
User updated by: invisiblexman2010 at gmail dot com
Reported by: invisiblexman2010 at gmail dot com
-Summary: incorrect results
+Summary: checkdate() returns incorrect results
Status: Open
Type: Bug
Package: Date/time related
Operating System: linux 2.6.32-33-generic on i686
-PHP Version: Irrelevant
+PHP Version: 5.3.2
Block user comment: N
Private report: N
New Comment:
Update Summary section
Previous Comments:
------------------------------------------------------------------------
[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