Re: PHP floating point bug possibly misinterpreted

2011-01-14 Thread Michael Cronenworth
Andrew Haley wrote: > Absolutely, yes. This is all discussed at fantastic length in the > references mentioned. > > In summary: All workarounds for this bug are problematic. Jim Wilson > nicely summarizes here:http://gcc.gnu.org/ml/gcc/2003-08/msg01195.html > > One group or posters considers any

Re: PHP floating point bug possibly misinterpreted

2011-01-14 Thread Andrew Haley
On 01/14/2011 02:29 PM, Michael Cronenworth wrote: > Andrew Haley wrote: >> It's perhaps important to note that gcc is not standards-conforming >> by default, and if you want it to be you have to use the appropriate >> options to say which standard you want it to conform to. The >> defaults are a

Re: PHP floating point bug possibly misinterpreted

2011-01-14 Thread Michael Cronenworth
Andrew Haley wrote: > It's perhaps important to note that gcc is not standards-conforming > by default, and if you want it to be you have to use the appropriate > options to say which standard you want it to conform to. The > defaults are a best guess at what people might want. That's all fine an

Re: PHP floating point bug possibly misinterpreted

2011-01-14 Thread Andrew Haley
On 01/13/2011 07:24 PM, Michael Cronenworth wrote: > PHP recently underwent a bit of a security crisis when many media > outlets disclosed the presence of a floating point bug. (RH bug here[1]) > > I feel I should bring attention to a PHP developer response[2] to this > bug. Warning: There is a bit

Re: PHP floating point bug possibly misinterpreted

2011-01-13 Thread Matthew Miller
On Thu, Jan 13, 2011 at 01:24:08PM -0600, Michael Cronenworth wrote: > I feel I should bring attention to a PHP developer response[2] to this > bug. Warning: There is a bit of emotion inside. They feel it is a gcc > bug in FP handling, which seems (in my limited knowledge) to be > accurate. The

Re: PHP floating point bug possibly misinterpreted

2011-01-13 Thread Roland McGrath
It's not a bug. It's a choice of behavior that has been well-understood for a very long time, even if some developers have only recently become aware of it and are upset about the choices made long ago. When you want a different choice for your program, use the compiler flag. -- devel mailing li

PHP floating point bug possibly misinterpreted

2011-01-13 Thread Michael Cronenworth
PHP recently underwent a bit of a security crisis when many media outlets disclosed the presence of a floating point bug. (RH bug here[1]) I feel I should bring attention to a PHP developer response[2] to this bug. Warning: There is a bit of emotion inside. They feel it is a gcc bug in FP handl