Re: [PHP-DEV] double val to long val conversion issue

2013-02-11 Thread Gustavo Lopes
On Mon, 11 Feb 2013 09:43:36 +0100, Remi Collet wrote: Le 10/02/2013 20:27, Gustavo Lopes a écrit : Any reservations? For which values ? Outside LONG_MIN .. ULONG_MAX ? It should be valid for the whole domain, but for performance reasons it would be better to limit it to values at lea

Re: [PHP-DEV] double val to long val conversion issue

2013-02-11 Thread Remi Collet
Le 10/02/2013 20:27, Gustavo Lopes a écrit : > Any reservations? Do we really want/need to change the current behavior. Cast from double, outside of integer range, result in a fix value. The only problem is that the value is not the same on all arch. x86_64 always return 0x8000... ppc64 retur