Re: [PHP-DEV] Re: different behaviour converting float to integer

2004-10-04 Thread Andi Gutmans
Do you consider this a bug? How are you relying on these overflown numbers? Andi At 12:50 PM 10/4/2004 +0200, M. Sokolewicz wrote: You might want to ask this on the internals list (cc'd) Tomas Kuliavas wrote: When php 5.0.2 converts float to integer, it uses biggest possible integer value. Other ph

Re: [PHP-DEV] Re: different behaviour converting float to integer

2004-10-04 Thread Derick Rethans
On Mon, 4 Oct 2004, M. Sokolewicz wrote: > You might want to ask this on the internals list (cc'd) > > Tomas Kuliavas wrote: > > When php 5.0.2 converts float to integer, it uses biggest possible integer > > value. Other php versions overflow and use negalive integers. There is already a bug repo

[PHP-DEV] Re: different behaviour converting float to integer

2004-10-04 Thread M. Sokolewicz
You might want to ask this on the internals list (cc'd) Tomas Kuliavas wrote: When php 5.0.2 converts float to integer, it uses biggest possible integer value. Other php versions overflow and use negalive integers. How to reproduce it: echo (int)0xde120495; Expected result (php 5.0.1, 4.3.9 and 4.1