ID: 21984 Updated by: [EMAIL PROTECTED] Reported By: krueger at bundes-verlag dot de -Status: Verified +Status: Closed Bug Type: Date/time related Operating System: SuSE Linux 8.1 PHP Version: 4.3.0 New Comment:
This bug has been fixed in CVS. In case this was a PHP problem, snapshots of the sources are packaged every three hours; this change will be in the next snapshot. You can grab the snapshot at http://snaps.php.net/. In case this was a documentation problem, the fix will show up soon at http://www.php.net/manual/. In case this was a PHP.net website problem, the change will show up on the PHP.net site and on the mirror sites in short time. Thank you for the report, and for helping us make PHP better. Appears to work correctly in latest CVS. Previous Comments: ------------------------------------------------------------------------ [2003-02-03 10:22:43] m dot ford at lmu dot ac dot uk Well, yeah, you'd think wouldn't you? -- but the sequence is explicitly "first, next, third, ...". Perhaps you want to turn this into a Feature Request? Mike ------------------------------------------------------------------------ [2003-02-03 08:17:06] [EMAIL PROTECTED] Then, how about "second monday"? ------------------------------------------------------------------------ [2003-02-03 08:00:15] m dot ford at lmu dot ac dot uk It *is* correct now, because that's how it always should have worked. I agree that it's less intuitive, but that doesn't make it any less correct. (Blame the people who defined the GNU date format!) "Monday", or "first Monday", or "1 Monday" will give you the first Monday which is zero or more days after the specified date (or today). "next Monday" or "2 Monday" will give you the Monday after that. "third Monday" or "3 Monday" will give you the one after that. And so on (except that the text versions run out at "twelfth", so from there onward you can only use "13 Monday", "14 Monday", etc.). Cheers! Mike ------------------------------------------------------------------------ [2003-02-03 05:44:09] krueger at bundes-verlag dot de Well, but it isn't correct now, but was before... or is there a new term with with a can determine the "coming Monday" with strtotime? ------------------------------------------------------------------------ [2003-02-03 05:36:56] m dot ford at lmu dot ac dot uk H'rumph! Actually, both of your servers are producing the answer they should! In PHP versions prior to 4.3.0, the handling of "next" in strtotime() was incorrect; it was fixed for 4.3.0, so your script will require a minor update. Please see bug http://bugs.php.net/bug.php?id=18655 for the relevent discussion. This bug should be set to Bogus -- I don't think I have karma yet, so would somebody do it, please? Cheers! Mike ------------------------------------------------------------------------ The remainder of the comments for this report are too long. To view the rest of the comments, please view the bug report online at http://bugs.php.net/21984 -- Edit this bug report at http://bugs.php.net/?id=21984&edit=1
