From: kev at aero dot fr Operating system: Win2003 PHP version: 5.0.2 PHP Bug Type: Math related Bug description: AND operator
Description: ------------ php5 problem with and operator and big numbers Reproduce code: --------------- <? $c = 4023233417 & 2562383102; echo $c; // prints 2147483647 // the right answer is 2290649224 (good with php4) ?> Expected result: ---------------- the answer isn't good the script prints 2147483647 and the right answer is 2290649224 -- Edit bug report at http://bugs.php.net/?id=30706&edit=1 -- Try a CVS snapshot (php4): http://bugs.php.net/fix.php?id=30706&r=trysnapshot4 Try a CVS snapshot (php5.0): http://bugs.php.net/fix.php?id=30706&r=trysnapshot50 Try a CVS snapshot (php5.1): http://bugs.php.net/fix.php?id=30706&r=trysnapshot51 Fixed in CVS: http://bugs.php.net/fix.php?id=30706&r=fixedcvs Fixed in release: http://bugs.php.net/fix.php?id=30706&r=alreadyfixed Need backtrace: http://bugs.php.net/fix.php?id=30706&r=needtrace Need Reproduce Script: http://bugs.php.net/fix.php?id=30706&r=needscript Try newer version: http://bugs.php.net/fix.php?id=30706&r=oldversion Not developer issue: http://bugs.php.net/fix.php?id=30706&r=support Expected behavior: http://bugs.php.net/fix.php?id=30706&r=notwrong Not enough info: http://bugs.php.net/fix.php?id=30706&r=notenoughinfo Submitted twice: http://bugs.php.net/fix.php?id=30706&r=submittedtwice register_globals: http://bugs.php.net/fix.php?id=30706&r=globals PHP 3 support discontinued: http://bugs.php.net/fix.php?id=30706&r=php3 Daylight Savings: http://bugs.php.net/fix.php?id=30706&r=dst IIS Stability: http://bugs.php.net/fix.php?id=30706&r=isapi Install GNU Sed: http://bugs.php.net/fix.php?id=30706&r=gnused Floating point limitations: http://bugs.php.net/fix.php?id=30706&r=float MySQL Configuration Error: http://bugs.php.net/fix.php?id=30706&r=mysqlcfg
