PHP 4.0 Bug #8703: incorrect example code for mktime

From: Date: Mon, 15 Jan 2001 01:59:01 +0000
Subject: PHP 4.0 Bug #8703: incorrect example code for mktime
Groups: php.dev 
Request: Send a blank email to php-dev+get-44088@lists.php.net to get a copy of this message
From: jbarrett@australink.net Operating system: Debian Linux PHP version: 4.0.3pl1 PHP Bug Type: Documentation problem Bug description: incorrect example code for mktime Example 2 should read instead :- $lastday = date("d", mktime (0,0,0,3,0,2000)); echo strftime ("Last day in Feb 2000 is: %d", $lastday); $lastday = date("d", mktime (0,0,0,4,-31,2000)); echo strftime ("Last day in Feb 2000 is: %d", $lastday); (Note if this has been changed in 4.0.4 to not require date ignore me :P i'm running on 4.0.3) -- Edit Bug report at: http://bugs.php.net/?id=8703&edit=1

« previous php.dev (#44088) next »