Bug #14138 Updated: date arithmetic scrambled
| From: | jmcastagnetto@php.net | Date: | Wed, 21 Nov 2001 03:39:51 +0000 |
| Subject: | Bug #14138 Updated: date arithmetic scrambled | ||
| References: | 1 | Groups: | php.dev |
| Request: | Send a blank email to php-dev+get-71168@lists.php.net to get a copy of this message | ||
ID: 14138
Updated by: jmcastagnetto
Reported By: mail-php.net@kimihia.org.nz
Status: Feedback
Bug Type: Date/time related
Operating System: Debian GNU/Linux stable
PHP Version: 4.0.6
New Comment:
More info from _RainMkr_: "Running on woody, Linux 2.4.5, PHP 4.0.6"
What version is the Debian showing this problem?
Previous Comments:
------------------------------------------------------------------------
[2001-11-20 22:35:38] jmcastagnetto@php.net
Perhaps a problem with the Debian libraries, cannot confirm problem on PHP 4.0.6 under Solaris 2.8.
Output of the code is correct in that machine and PHP version.
Code also tested by _RainMkr_ (from #php) using PHP 4.0.6 under Linux 2.4.5
Need feedback on whether other numeric programs have similar problems under that version of Debian.
------------------------------------------------------------------------
[2001-11-20 04:47:13] derick@php.net
Works fine for me, can you try the RC from www.php.net/~zeev/php-4.1.0RC3.tar.gz ?
Derick
------------------------------------------------------------------------
[2001-11-20 04:43:47] mail-php.net@kimihia.org.nz
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 this bug report at http://bugs.php.net/?id=14138&edit=1