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
Welcome back! If you're the original bug submitter, here's where you can edit the bug or add additional notes.
If you forgot your password, you can retrieve your password here.
Password:
Status:
Package:
Bug Type:
Summary:
From: chris at chrullrich dot de
New email:
PHP Version: OS:

 

 [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

Pull Requests

History

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

--Jani
 
PHP Copyright © 2001-2026 The PHP Group
All rights reserved.
Last updated: Sun Oct 11 10:00:01 2026 UTC