#25317 [NEW]: Would like a 64-bit integer native type
| From: | phpbug at paypc dot com | Date: | Fri, 29 Aug 2003 21:49:18 +0000 |
| Subject: | #25317 [NEW]: Would like a 64-bit integer native type | ||
| Groups: | php.bugs | ||
| Request: | Send a blank email to php-bugs+get-46929@lists.php.net to get a copy of this message | ||
From: phpbug at paypc dot com
Operating system: All
PHP version: 4.3.3
PHP Bug Type: Feature/Change Request
Bug description: Would like a 64-bit integer native type
Description:
------------
This is fairly straightforward. Right now, native numeric types are
float/doubles and 32-bit integers.
Given that > 4GB of memory in a machine is affordable even for the home
consumer, it is important to be able to represent exact cardinal values
without any floating-point nonsense.
I don't know how much impact this would have the internals of Zend, or
performance for that matter. Non-64-bit-native CPUs could probably adopt
optimisations to avoid having to do 64-bit operations on values /
expressions where the values are not expected to exceed 32 bits of value,
or perhaps, via "type-hinting" by the programmer.
I realise that "bcmath" stuff can handle an effectively infinitely large
integer value... but that's really a string-math subsystem with all of the
usual limitations (and performance costs).
--
Edit bug report at http://bugs.php.net/?id=25317&edit=1
--
Try a CVS snapshot (php4): http://bugs.php.net/fix.php?id=25317&r=trysnapshot4
Try a CVS snapshot (php5): http://bugs.php.net/fix.php?id=25317&r=trysnapshot5
Fixed in CVS: http://bugs.php.net/fix.php?id=25317&r=fixedcvs
Fixed in release: http://bugs.php.net/fix.php?id=25317&r=alreadyfixed
Need backtrace: http://bugs.php.net/fix.php?id=25317&r=needtrace
Try newer version: http://bugs.php.net/fix.php?id=25317&r=oldversion
Not developer issue: http://bugs.php.net/fix.php?id=25317&r=support
Expected behavior: http://bugs.php.net/fix.php?id=25317&r=notwrong
Not enough info: http://bugs.php.net/fix.php?id=25317&r=notenoughinfo
Submitted twice: http://bugs.php.net/fix.php?id=25317&r=submittedtwice
register_globals: http://bugs.php.net/fix.php?id=25317&r=globals
PHP 3 support discontinued: http://bugs.php.net/fix.php?id=25317&r=php3
Daylight Savings: http://bugs.php.net/fix.php?id=25317&r=dst
IIS Stability: http://bugs.php.net/fix.php?id=25317&r=isapi
Install GNU Sed: http://bugs.php.net/fix.php?id=25317&r=gnused