|
Posted by Janwillem Borleffs on 06/30/06 20:20
Janwillem Borleffs wrote:
> On a FreeBSD box, however, I get the shortened list. The problem
> appears to be in this line:
>
> $ts = strtotime('next monday', $ts);
>
> On Windows and Linux, you will actually get the next monday, while on
> FreeBSD (and perhaps also on other OS's) it will just skip it.
>
Not related to the OS, but to the PHP version applied; per example, with PHP
5.1.2, when today's Friday and you pass strtotime "next friday", it will not
return the current Friday, but the first following Friday instead. With PHP
4.4.0, you will get today.
Reading through bugs.php.net, it appears that the formal behaviour is the
one implemented from now on, to follow both the documentation and the
originating library more closely.
So, the suggested fix (i.e. removing the "next" keyword) remains.
JW
Navigation:
[Reply to this message]
|