From: shailesh_bavadekar at yahoo dot com Operating system: PHP version: 5.1.4 PHP Bug Type: *Programming Data Structures Bug description: PHP should support 64 bit long integers
Description: ------------ PHP should support 64 bit long data type. Currently there are two choices for integer arithmetic - * 32 bit signed integer and * 64 bit float. In some cases the translation between these types is handled automatically but the behavior is not consistent. e.g. integers operands are automatically converted to float, but integers represented as strings are not. The main problem is - even if integers are seamlessly converted to float, that only extends the range to 2^53. So there is really no way to handle integer values between 2^53 and 2^64. gmp extension is an option of course, but it is cumbersome to use. The lack of 64 bit long support causes incorrect behavior elsewhere in the language - e.g. PHP SOAP extension cannot accurately translate xsd:long data type to PHP. -- Edit bug report at http://bugs.php.net/?id=38041&edit=1 -- Try a CVS snapshot (PHP 4.4): http://bugs.php.net/fix.php?id=38041&r=trysnapshot44 Try a CVS snapshot (PHP 5.2): http://bugs.php.net/fix.php?id=38041&r=trysnapshot52 Try a CVS snapshot (PHP 6.0): http://bugs.php.net/fix.php?id=38041&r=trysnapshot60 Fixed in CVS: http://bugs.php.net/fix.php?id=38041&r=fixedcvs Fixed in release: http://bugs.php.net/fix.php?id=38041&r=alreadyfixed Need backtrace: http://bugs.php.net/fix.php?id=38041&r=needtrace Need Reproduce Script: http://bugs.php.net/fix.php?id=38041&r=needscript Try newer version: http://bugs.php.net/fix.php?id=38041&r=oldversion Not developer issue: http://bugs.php.net/fix.php?id=38041&r=support Expected behavior: http://bugs.php.net/fix.php?id=38041&r=notwrong Not enough info: http://bugs.php.net/fix.php?id=38041&r=notenoughinfo Submitted twice: http://bugs.php.net/fix.php?id=38041&r=submittedtwice register_globals: http://bugs.php.net/fix.php?id=38041&r=globals PHP 3 support discontinued: http://bugs.php.net/fix.php?id=38041&r=php3 Daylight Savings: http://bugs.php.net/fix.php?id=38041&r=dst IIS Stability: http://bugs.php.net/fix.php?id=38041&r=isapi Install GNU Sed: http://bugs.php.net/fix.php?id=38041&r=gnused Floating point limitations: http://bugs.php.net/fix.php?id=38041&r=float No Zend Extensions: http://bugs.php.net/fix.php?id=38041&r=nozend MySQL Configuration Error: http://bugs.php.net/fix.php?id=38041&r=mysqlcfg
