From:             jesse at eonstreet dot com
Operating system: Windows Xp / FC 3
PHP version:      5.1.4
PHP Bug Type:     *Math Functions
Bug description:  Bit operators not responding equally

Description:
------------
** Sorry if I havfe put this in hte wrong category.

I have encountered a difference in the output of a bit operator
combination between windows and FC3.  

The example below is part of the code that produces the Google Checksum
when submitting to get a page rank. 

 In Mozilla Javascript and windows Javascript and well as PHP 5.1.4 on
whindows XP the bit operation returns correclty but under linux there is a
difference

I don't no why.

Reproduce code:
---------------
<?

$a = -4738698913;
echo $a ^= 43814;  

?>

Expected result:
----------------
In Windows the result is -443704711
In Linux FC3 the result is -2147439834


-- 
Edit bug report at http://bugs.php.net/?id=37590&edit=1
-- 
Try a CVS snapshot (PHP 4.4): 
http://bugs.php.net/fix.php?id=37590&r=trysnapshot44
Try a CVS snapshot (PHP 5.2): 
http://bugs.php.net/fix.php?id=37590&r=trysnapshot52
Try a CVS snapshot (PHP 6.0): 
http://bugs.php.net/fix.php?id=37590&r=trysnapshot60
Fixed in CVS:                 http://bugs.php.net/fix.php?id=37590&r=fixedcvs
Fixed in release:             
http://bugs.php.net/fix.php?id=37590&r=alreadyfixed
Need backtrace:               http://bugs.php.net/fix.php?id=37590&r=needtrace
Need Reproduce Script:        http://bugs.php.net/fix.php?id=37590&r=needscript
Try newer version:            http://bugs.php.net/fix.php?id=37590&r=oldversion
Not developer issue:          http://bugs.php.net/fix.php?id=37590&r=support
Expected behavior:            http://bugs.php.net/fix.php?id=37590&r=notwrong
Not enough info:              
http://bugs.php.net/fix.php?id=37590&r=notenoughinfo
Submitted twice:              
http://bugs.php.net/fix.php?id=37590&r=submittedtwice
register_globals:             http://bugs.php.net/fix.php?id=37590&r=globals
PHP 3 support discontinued:   http://bugs.php.net/fix.php?id=37590&r=php3
Daylight Savings:             http://bugs.php.net/fix.php?id=37590&r=dst
IIS Stability:                http://bugs.php.net/fix.php?id=37590&r=isapi
Install GNU Sed:              http://bugs.php.net/fix.php?id=37590&r=gnused
Floating point limitations:   http://bugs.php.net/fix.php?id=37590&r=float
No Zend Extensions:           http://bugs.php.net/fix.php?id=37590&r=nozend
MySQL Configuration Error:    http://bugs.php.net/fix.php?id=37590&r=mysqlcfg

Reply via email to