|  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #13784 checkdate(10,31,0) returns false
Submitted: 2001-10-22 03:27 UTC Modified: 2001-10-23 14:09 UTC
From: mike at kristopeit dot com Assigned:
Status: Not a bug Package: Date/time related
PHP Version: 4.0.6 OS: windows 2000 pro
Private report: No CVE-ID: None
View Add Comment Developer Edit
Anyone can comment on a bug. Have a simpler test case? Does it work for you on a different platform? Let us know!
Just going to say 'Me too!'? Don't clutter the database with that please !
Your email address:
Solve the problem:
18 + 44 = ?
Subscribe to this entry?

 [2001-10-22 03:27 UTC] mike at kristopeit dot com
the manual says year can be 0-32767, but giving 0 makes checkdate return false.


Add a Patch

Pull Requests

Add a Pull Request


AllCommentsChangesGit/SVN commitsRelated reports
 [2001-10-23 06:15 UTC]
I wonder what manual you're referring to as this page
clearly says that that is not possible:


 [2001-10-23 14:09 UTC] mike at kristopeit dot com
the one at

i would like it to work this way, because many calendar applications have yearly reoccuring events, and it would be nice to have checkdate(month, day, 0) return true if the date could ever be valid (ie checkdate(2,29,0) returns true)

PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Wed May 22 08:01:33 2024 UTC