Bug #14138: date arithmetic scrambled
| From: | mail-php dot net at kimihia dot org dot nz | Date: | Tue, 20 Nov 2001 09:43:47 +0000 |
| Subject: | Bug #14138: date arithmetic scrambled | ||
| Groups: | php.dev | ||
| Request: | Send a blank email to php-dev+get-71037@lists.php.net to get a copy of this message | ||
From: mail-php.net@kimihia.org.nz
Operating system: Debian GNU/Linux stable
PHP version: 4.0.6
PHP Bug Type: Date/time related
Bug description: date arithmetic scrambled
There seems to be some voodoo in this script ...
for ( $i = -7 ; $i < 28 ; $i ++ ) {
$day = date('d');
print "\ndate is $day ";
$day = $day + $i;
print " after adding $i is $day ";
}
And output ends up looking like so:
date is 20 after adding -7 is 135122101
--
Edit bug report at: http://bugs.php.net/?id=14138&edit=1