#31490 [NEW]: integer problem
From: php at dicr dot org Date: Tue, 11 Jan 2005 10:52:57 +0000 Subject: #31490 [NEW]: integer problem Groups: php.bugs Request: Send a blank email to php-bugs+get-71842@lists.php.net to get a copy of this message
From: php at dicr dot org
Operating system: Fedora Linux
PHP version: 4.3.10
PHP Bug Type: Variables related
Bug description: integer problem
Description:
------------
printf("%X",0xFFFFFFFF)
result of this is hard stupid: 7FFFFFF
mus be: FFFFFFFF
echo (int)0xFFFFFFFF
result is hard stupid: 2147483647
must be: -1
Expected result:
----------------
printf("%X",0xFFFFFFFF)
result: FFFFFFFF
echo (int)0xFFFFFFFF
result: -1
--
Edit bug report at http://bugs.php.net/?id=31490&edit=1
--
Try a CVS snapshot (php4): http://bugs.php.net/fix.php?id=31490&r=trysnapshot4
Try a CVS snapshot (php5.0): http://bugs.php.net/fix.php?id=31490&r=trysnapshot50
Try a CVS snapshot (php5.1): http://bugs.php.net/fix.php?id=31490&r=trysnapshot51
Fixed in CVS: http://bugs.php.net/fix.php?id=31490&r=fixedcvs
Fixed in release: http://bugs.php.net/fix.php?id=31490&r=alreadyfixed
Need backtrace: http://bugs.php.net/fix.php?id=31490&r=needtrace
Need Reproduce Script: http://bugs.php.net/fix.php?id=31490&r=needscript
Try newer version: http://bugs.php.net/fix.php?id=31490&r=oldversion
Not developer issue: http://bugs.php.net/fix.php?id=31490&r=support
Expected behavior: http://bugs.php.net/fix.php?id=31490&r=notwrong
Not enough info: http://bugs.php.net/fix.php?id=31490&r=notenoughinfo
Submitted twice: http://bugs.php.net/fix.php?id=31490&r=submittedtwice
register_globals: http://bugs.php.net/fix.php?id=31490&r=globals
PHP 3 support discontinued: http://bugs.php.net/fix.php?id=31490&r=php3
Daylight Savings: http://bugs.php.net/fix.php?id=31490&r=dst
IIS Stability: http://bugs.php.net/fix.php?id=31490&r=isapi
Install GNU Sed: http://bugs.php.net/fix.php?id=31490&r=gnused
Floating point limitations: http://bugs.php.net/fix.php?id=31490&r=float
No Zend Extensions: http://bugs.php.net/fix.php?id=31490&r=nozend
MySQL Configuration Error: http://bugs.php.net/fix.php?id=31490&r=mysqlcfg
Thread (4 messages)
| « previous | php.bugs (#71842) | next » |
|---|