Edit report at https://bugs.php.net/bug.php?id=63257&edit=1
ID: 63257
User updated by: php at skay dot se
Reported by: php at skay dot se
-Summary: Wrong if year is two digits and year is 2000
+Summary: checkdate(): Wrong if year is two digits and year is
2000
Status: Open
Type: Bug
Package: *Calendar problems
Operating System: Unix
-PHP Version: Irrelevant
+PHP Version: 5.3.10
Block user comment: N
Private report: N
New Comment:
Description:
------------
---
>From manual page: http://www.php.net/function.checkdate
---
If year is 2000 the function will return TRUE (provided the rest is valid) -
Thats good!
But if year is 00 the function will always return FALSE
Test script:
---------------
echo checkdate("01", "01", "2000");
echo checkdate("01", "01", "00");
Expected result:
----------------
TRUE
TRUE
Actual result:
--------------
TRUE
FALSE
Previous Comments:
------------------------------------------------------------------------
[2012-10-10 22:17:13] php at skay dot se
Description:
------------
---
>From manual page: http://www.php.net/function.checkdate
---
PHP version 5.3.10
If year is 2000 the function will return TRUE (provided the rest is valid) -
Thats good!
But if year is 00 the function will always return FALSE
Test script:
---------------
echo checkdate("01", "01", "2000");
echo checkdate("01", "01", "00");
Expected result:
----------------
TRUE
TRUE
Actual result:
--------------
TRUE
FALSE
------------------------------------------------------------------------
--
Edit this bug report at https://bugs.php.net/bug.php?id=63257&edit=1