Re: [PHP-DEV] DVAL_TO_LVAL() change, different behavior

2008-07-23 Thread Antony Dovgal
Johannes, this seems fairly critical to me. On 12.04.2008 14:45, Matt Wilmas wrote: 5.2 result: 0 255 0 1 2 1 0 255 254 5.3 result: 2147483647 255 255 255 255 1 0 0 0 No overflow now, except between LONG_MAX and ULONG_MAX. -- Wbr, Antony Dovgal -- PHP Internals - PHP Runtime Development

[PHP-DEV] DVAL_TO_LVAL() change, different behavior

2008-04-12 Thread Matt Wilmas
Hi all, I have some code where I need to grab the last 1-3 bytes from numbers (bitwise AND), and a few weeks ago I was looking to see how I'd handle the possible, though unlikely, scenario of numbers LONG_MAX (still only care about those last bytes). But I realized it worked just fine with the