But that's why I do the "fifth Sunday" test first. So, for November, I get back :
11, 30.
And PHP 4.3 is reporting the "fifth" Sunday in October as :
11, 01
which is a Saturday, and not 11, 02, as it should be. My guess is this bug has something to do with the transition from DST to standard time, not sure.
As an alternate scheme, I've thought of doing something like :
$FinalSunday = mktime (0,0,0,10,1,2003), date("d")+25, date("m"));
which should bring be out to Oct. 26. Question is, how to know to add 25 days to Oct. 1? I suppose some algorithym could be worked out for that, add 24 for Thursday, 23 for Friday, 22 for Saturday, etc.
But using this scheme for November, 2003, would result in the last Sunday in November as being Nov. 23, so back to the drawing board. 🙁