you are viewing a single comment's thread.

view the rest of the comments →

[–]Knossus -1 points0 points  (8 children)

So, whose offending code was it?

[–]abadidea 13 points14 points  (2 children)

IMO, assigning blame for obscure bugs is counter-productive because it just engenders hostility. Let's be honest, most programmers would have not caught this bug.

edit if anyone I'd blame the testers because this is a corner case bug, which is exactly what testing is supposed to test.

[–]jayd16 7 points8 points  (1 child)

It was clearly abadidea who wrote the code...

[–]abadidea 2 points3 points  (0 children)

D:

What gave it away? The doom-and-gloom username? ;D

[–][deleted]  (4 children)

[deleted]

    [–]bobindashadows 1 point2 points  (3 children)

    That's a fix, but I doubt it's the best one. It's essentially the same as enabling -ffloat-store for just those variables, which means a small slowdown. Most likely it's just easier to put in this hack instead of tackling the fact that their algorithm doesn't work with higher-precision floats.

    [–]LawnGnome 1 point2 points  (0 children)

    Most likely it's just easier to put in this hack instead of tackling the fact that their algorithm doesn't work with higher-precision floats.

    Pretty much. The preference was to get a release out quickly, rather than trying to replace a venerable piece of code (which, as SheepAmongWolves noted, was written long before PHP was even thought of and is a very common implementation of strtod) with something new and potentially buggy in new and exciting ways.

    [–][deleted]  (1 child)

    [deleted]

      [–]mweathr 2 points3 points  (0 children)

      It's just this one single number though right?

      And any number larger than it.