Re: [PHP-DEV] Size of integer

2004-04-17 Thread Lester Caine
Andi Gutmans wrote: At 09:03 PM 4/17/2004 +0100, Lester Caine wrote: 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

Re: [PHP-DEV] Size of integer

2004-04-17 Thread Andi Gutmans
At 09:03 PM 4/17/2004 +0100, Lester Caine wrote: 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 par

Re: [PHP-DEV] Size of integer

2004-04-17 Thread 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 P

Re: [PHP-DEV] Size of integer

2004-04-17 Thread Andrey Hristov
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? Hi, AFAIK ext/mysq