php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Request #20960 Checkdate very illogical
Submitted: 2002-12-12 09:43 UTC Modified: 2002-12-12 13:09 UTC
Votes:2
Avg. Score:4.5 ± 0.5
Reproduced:2 of 2 (100.0%)
Same Version:0 (0.0%)
Same OS:0 (0.0%)
From: john at boxrec dot com Assigned:
Status: Wont fix Package: Feature/Change Request
PHP Version: 4.2.3 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: john at boxrec dot com
New email:
PHP Version: OS:

 

 [2002-12-12 09:43 UTC] john at boxrec dot com
I' ve just spent several wasted hours looking for a blindingly obvious problem. Checkdate takes it's params in a very illogical way ie
checkdate ( int month, int day, int year)
Surely it should be 
checkdate ( int day, int month, int year)
or even
checkdate ( int year, int month, int day)
why on earth month day year ?



Patches

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2002-12-12 13:09 UTC] msopacua@php.net
Nobody said Americans are logical people :).

But there's no way this can be changed and not break a lot of scripts in the real world. Just get used to it.
 
PHP Copyright © 2001-2025 The PHP Group
All rights reserved.
Last updated: Sun Jul 13 15:01:33 2025 UTC