Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:9332 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 34741 invoked by uid 1010); 17 Apr 2004 20:00:25 -0000 Delivered-To: ezmlm-scan-internals@lists.php.net Delivered-To: ezmlm-internals@lists.php.net Received: (qmail 34690 invoked by uid 1007); 17 Apr 2004 20:00:25 -0000 Message-ID: <20040417200025.34689.qmail@pb1.pair.com> To: internals@lists.php.net Date: Sat, 17 Apr 2004 21:03:58 +0100 User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:1.6) Gecko/20040113 X-Accept-Language: en, en-us MIME-Version: 1.0 References: <20040417194419.84912.qmail@pb1.pair.com> <408189CB.8040802@hristov.com> In-Reply-To: <408189CB.8040802@hristov.com> Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit X-Posted-By: 81.138.11.136 Subject: Re: [PHP-DEV] Size of integer From: lester@lsces.co.uk (Lester Caine) Andrey Hristov wrote: > Lester Caine wrote: > >> An interesting little question has popped 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? >> > AFAIK ext/mysqli returns string in case the int value is too big to fit > into 32 bits. > After that it's up to the user to decide what to do -> cast to float or > use bcmath . That will probably work for returning field values in a result set, the particular problem I am looking at is a function that is defined as returning an integer, but which could potentially contain a 64 bit value. Is any work being done on handling THAT potential time bomb? -- Lester Caine ----------------------------- L.S.Caine Electronic Services