#25317 [Opn->Bgs]: Would like a 64-bit integer native type
| From: | nlopess@php.net | Date: | Sun, 14 Aug 2005 17:12:47 +0000 |
| Subject: | #25317 [Opn->Bgs]: Would like a 64-bit integer native type | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-83568@lists.php.net to get a copy of this message | ||
ID: 25317
Updated by: nlopess@php.net
Reported By: phpbug at paypc dot com
-Status: Open
+Status: Bogus
Bug Type: Feature/Change Request
Operating System: All
PHP Version: 4.3.3
New Comment:
duplicate of #11060.
Previous Comments:
------------------------------------------------------------------------
[2003-08-29 16:49:18] phpbug at paypc dot com
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 this bug report at http://bugs.php.net/?id=25317&edit=1