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
Have you experienced this issue?
Rate the importance of this bug to you:

 [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

Add a Patch

Pull Requests

Add a Pull Request

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-2024 The PHP Group
All rights reserved.
Last updated: Fri May 17 09:01:32 2024 UTC