ID: 14138
User updated by: [EMAIL PROTECTED]
Reported By: [EMAIL PROTECTED]
Status: Open
Bug Type: Date/time related
Operating System: Debian GNU/Linux stable
PHP Version: 4.0.6
New Comment:

Recompiled 4.1.0RC3 using Apache 1.3.22.

Yes, mathematics now works correctly. Haven't tested fully yet, but the first glance 
looks like it works.

Previous Comments:
------------------------------------------------------------------------

[2001-11-20 23:03:13] [EMAIL PROTECTED]

Linux 2.4.12 SMP
Debian potato libraries

Package: libc5
Version: 5.4.46-3

Package: libc6
Version: 2.2.3-9

Package: libc6-dev
Version: 2.2.3-9

bc 1.05
Copyright 1991, 1992, 1993, 1994, 1997, 1998 Free Software Foundation, Inc.
This is free software with ABSOLUTELY NO WARRANTY.
For details type `warranty'. 
20 + -7
13



------------------------------------------------------------------------

[2001-11-20 22:39:50] [EMAIL PROTECTED]

More info from _RainMkr_: "Running on woody, Linux 2.4.5, PHP 4.0.6"

What version is the Debian showing this problem?

------------------------------------------------------------------------

[2001-11-20 22:35:38] [EMAIL PROTECTED]

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] [EMAIL PROTECTED]


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] [EMAIL PROTECTED]

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


-- 
PHP Development Mailing List <http://www.php.net/>
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]

Reply via email to