Slashdot Mirror


PHP Floating Point Bug Crashes Servers

angry tapir writes "A newly unearthed bug in certain versions of the PHP scripting language could crash servers when the software is given the task of converting a large floating point number, raising the possibility that the glitch could be exploited by hackers. The bug will cause the PHP processing software to enter an infinite loop when it tries to convert the series of digits "2.2250738585072011e-308" from the string format into the floating point format. The bug only seems to affect version 5.2 and 5.3 of the language." Adds reader alphadogg: "Computer scientist Rick Regan first reported the bug on Monday, and the PHP development team issued patches the following day."

2 of 213 comments (clear)

  1. Re:1 day turn-around by Anonymous Coward · · Score: 5, Informative

    Two primary reasons:
    1. This was a relatively trivial, extremely specific, easily reproducible bug, so fixing it was quick and low risk.
    2. A major vendor like Microsoft has to do extensive testing of patches as well as give ample warning to dozens of software partners who may or may not be using some bizarre workaround for the bug or be depending on it's broken behavior. An OSS project can just put it out and let their users choose whether or not to upgrade and deal with the potential ramifications.

    Note that I'm not necessarily saying one or the other is better here, it's a matter of preference and for most people it's probably situational.

  2. Re:1 day turn-around by I8TheWorm · · Score: 5, Informative

    It's because they're not spending their time improving thread-safe modules, ternary operators, flip flopping again on defaulting magic_quotes, or understanding pragmatism :)

    --
    Saying Android is a family of phones is akin to saying Linux is a family of PCs.