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
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 — but make sure to vote on the bug!
Your email address:
MUST BE VALID
Solve the problem:
39 + 8 = ?
Subscribe to this entry?

 
 [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: Sat Jun 15 04:01:30 2024 UTC