Re: All Monday's & Thursdays



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


.



Relevant Pages

  • RE: [PHP] two small issues with php mail
    ... This comment is extracted directly from PHPMailer source (before the ... so I wouldn't expect the mail function on Windows to work ... Other options include testing it on a linux box (if you have one, ... That said, don't blame PHP, don't blame us, and don't even blame your code, ...
    (php.general)
  • Re: Ubuntu + PHP-Entwicklung
    ... programmiere auch PHP unter Linux und benutze vim mit einigen Macros, ... Eclipse wollte ich auch unter Windows schon ausprobieren, ...
    (de.comp.os.unix.linux.misc)
  • graphics problem
    ... i prototype on my windows pc. ... both use apache and php 5. ... graphics on the linux side. ... class securityImage ...
    (alt.php)
  • Re: 500 Internal Server Error w/ PHP 5 and Vista
    ... about getting the page up and working in Vista. ... I've set up PHP as a handler in IIS. ... transferring between Linux and Windows, the error was caused by a messed ...
    (comp.lang.php)
  • Re: help!!!!!!!! MySQL, PHP, and Apache configuration.
    ... Use/Learn PHP. ... If you are to afraid to break away from Windows, ... and I have used Linux (I also ... Jeffrey D. Silverman | jeffrey AT jhu DOT edu ...
    (comp.lang.php)