php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #6254 checkdate accepts year 0
Submitted: 2000-08-19 12:05 UTC Modified: 2000-09-03 00:08 UTC
From: chris at chrullrich dot de Assigned:
Status: Closed Package: Misbehaving function
PHP Version: 4.0.1pl2 OS: Linux
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:
MUST BE VALID
Solve the problem:
42 + 9 = ?
Subscribe to this entry?

 
 [2000-08-19 12:05 UTC] chris at chrullrich dot de
The function checkdate() accepts the year 0 as valid.
I don't know about Julian or Jewish or Islamic calendars,
but the Gregorian calendar does not contain a year 0.
1 BC -> 1 AC.

Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2000-09-03 00:08 UTC] sniper@php.net
Fixed in CVS. Thanks.

--Jani
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Fri May 17 05:01:31 2024 UTC