Edit report at https://bugs.php.net/bug.php?id=55619&edit=1

 ID:                 55619
 Updated by:         der...@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

Reply via email to