#20969 [NEW]: Bitwise NOT (~): wrong results on Linux

From: Date: Thu, 12 Dec 2002 18:39:39 +0000
Subject: #20969 [NEW]: Bitwise NOT (~): wrong results on Linux
Groups: php.bugs 
Request: Send a blank email to php-bugs+get-27519@lists.php.net to get a copy of this message
From: neuj60@yahoo.de Operating system: i386 Redhat Linux PHP version: 4.2.2 PHP Bug Type: *Math Functions Bug description: Bitwise NOT (~): wrong results on Linux The Bitwise NOT operator ~ doesn't fuinction correctly on the Linux system. Examples: ~-2222222222 = 2147483647 ~4180982798 = 2147483647 But on a Windows 2000 Server it functions well: ~-2222222222 = -2072745075 ~4180982798 = 113984497 On both systems PHP 4.2.2 is used. If that's a "feature" then PHP is not usable for any bitwise operation. -- Edit bug report at http://bugs.php.net/?id=20969&edit=1 -- Try a CVS snapshot: http://bugs.php.net/fix.php?id=20969&r=trysnapshot Fixed in CVS: http://bugs.php.net/fix.php?id=20969&r=fixedcvs Fixed in release: http://bugs.php.net/fix.php?id=20969&r=alreadyfixed Need backtrace: http://bugs.php.net/fix.php?id=20969&r=needtrace Try newer version: http://bugs.php.net/fix.php?id=20969&r=oldversion Not developer issue: http://bugs.php.net/fix.php?id=20969&r=support Expected behavior: http://bugs.php.net/fix.php?id=20969&r=notwrong Not enough info: http://bugs.php.net/fix.php?id=20969&r=notenoughinfo Submitted twice: http://bugs.php.net/fix.php?id=20969&r=submittedtwice register_globals: http://bugs.php.net/fix.php?id=20969&r=globals PHP 3 support discontinued: http://bugs.php.net/fix.php?id=20969&r=php3 Daylight Savings: http://bugs.php.net/fix.php?id=20969&r=dst IIS Stability: http://bugs.php.net/fix.php?id=20969&r=isapi

« previous php.bugs (#27519) next »