PHP 4.0 Bug #7568: 64-bit integers, 32-bit unsigned and 64-bit unsigned
| From: | simon at comsys dot ntu-kpi dot kiev dot ua | Date: | Wed, 01 Nov 2000 11:44:56 +0000 |
| Subject: | PHP 4.0 Bug #7568: 64-bit integers, 32-bit unsigned and 64-bit unsigned | ||
| Groups: | php.dev | ||
| Request: | Send a blank email to php-dev+get-36620@lists.php.net to get a copy of this message | ||
From: simon@comsys.ntu-kpi.kiev.ua
Operating system: FreeBSD 4.1-STABLE
PHP version: 4.0.3pl1
PHP Bug Type: Feature/Change Request
Bug description: 64-bit integers, 32-bit unsigned and 64-bit unsigned
Is it possible to add support of 64-bit integers (signed and unsigned) and 32-bit unsigned integers
to PHP?
I use MySQL with BIGINT UNSIGNED fields and it's impossible to read such values from database
(I can read them, but can't operate with them). I can't just convert returned string to
integers because size of integers in PHP is limmited to 32-bit, and last bit is used for sign. I can
write my own functions to work with 64-bit unsigned integers but it should do PHP itself.
Another problem is 32-bit integers. They always are signed integers and it is also hard to work with
INT UNSDIGNED fields in database.
--
Edit Bug report at: http://bugs.php.net/?id=7568&edit=1