ID:               31569
 User updated by:  php at milonic dot com
 Reported By:      php at milonic dot com
 Status:           Open
 Bug Type:         Math related
 Operating System: Fedora/Linux 9
 PHP Version:      4.3.10
 New Comment:

New test case at:
http://www.milonic.com/bugreports/php_fc3.php

Can also confirm that JavaScript will return the same values that older
Redhat returns. This is getting weirder by the minute.

Cheers
Andy


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

[2005-01-16 15:38:38] php at milonic dot com

UPDATE:

Just to confirm that it's also the same with RPM-4.3.9 - so no matter
if it's compiled from source or package.

Also (was a long shot) changing precision in php.ini makes no
difference either

Cheers
Andy

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

[2005-01-16 15:19:48] php at milonic dot com

Yes from source:
gcc version 3.4.2 20041017 (Red Hat 3.4.2-6.fc3)

one that I know works fine is:
gcc version 3.2.2 20030222 (Red Hat Linux 3.2.2-5)

Basically, all machines other than 'Fedora Core 3' are working fine.
It's something in FC3 that is wrong, I just can't pinpoint it. 

It's a standard server install by the way, nothing special. Hardware
also seems to be unrelated to the problem, tried it on 2 different FC3
servers and get the same result.

Cheers
Andy

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

[2005-01-16 14:55:06] [EMAIL PROTECTED]

Did you compile from source? If so, what are the different GCC versions
on all machines?

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

[2005-01-16 14:45:20] php at milonic dot com

Narrowed the problem down to this:

$b=251066875;
$a=-3111919630;
echo $b ^= ($a<<10);

     Fedora 3 echos: 251066875 (wrong)
All other OS's echo: 25768443 (correct)

Maybe it helps?

Cheers
Andy

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

[2005-01-16 14:34:27] php at milonic dot com

Sorry but it's still the same even with 4.3.11-DEV

My guess is that this could be a Fedora problem but would like to know
either way.

It also seems unrelated to PHP version, happens on all of them both 4
and 5 - It all points to Fedora but just cannot think how.

I'll dig a little deeper and let you know if I find anything

Cheers
Andy

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

The remainder of the comments for this report are too long. To view
the rest of the comments, please view the bug report online at
    http://bugs.php.net/31569

-- 
Edit this bug report at http://bugs.php.net/?id=31569&edit=1

Reply via email to