Re: Size of integer

From: Date: Wed, 28 Apr 2004 08:40:11 +0000
Subject: Re: Size of integer
References: 1  Groups: php.internals 
Request: Send a blank email to internals+get-9598@lists.php.net to get a copy of this message
Lester Caine wrote:
An interesting little question has pooped up. How big is an integer? Firebird uses BIGINT or INT_64 for generator values, and the new ibase_gen_id in PHP5 returns that value as an integer. Has any thought been given to managing 64bit field values in PHP5?
Actually, this 'time bomb' has already been handled. If the generated value doesn't fit in a long, it will return a string. So on a 64-bit machine, this will never occur. On a 32-bit machine, the returned type of ibase_gen_id() will suddenly start returning strings. Please note that this is consistent with the behaviour of other ibase_*() functions that handle BIGINTs. -- Ard

« previous php.internals (#9598) next »