• Dot (unregistered)

    Zreoth!

  • Jon (unregistered)

    I really need a t-shirt that just says TRWTF===PHP

  • (nodebb)

    The thinking capacity this developer demonstrated while fixing this bug is in line with the age zero, and emptiness is what's in his head.

  • Officer Johnny Holzkopf (unregistered)

    It's probably not the frist time we see this kind of "bug fixing": When a conditional, loop, abort trap or comparison leads to the expected result ALMOST every time, but not EVERY time, the obvious solution is to add an inversion of the conditional, increase or decrease a loop counter's end value by 1, add another exception (to be ignored), or change the direction of a comparison. It is also possible to combine those methods for more advanced "bug fixing", typically used by experensed programers and certified consultends like Paula.

  • (nodebb)

    Maybe the original devs were from East Asia, where certain countries there start age counting at age 1 from the day of birth.

  • (nodebb)

    if ( ! frist(comment) || frist(comment)) then frist

    ??

  • rx30fit (unregistered)
    Comment held for moderation.
  • Shakespeare (unregistered)
    Comment held for moderation.
  • (nodebb)

    Presumably the correct fix is something like this:

       if ( isset($_POST["age_at_time"]) && $_POST["age_at_time"] >= 0 )
       {
          // handle OK case
          ...
       }
       else
       {
          // handle not-OK case
          ...
       }
    
  • (nodebb) in reply to Steve_The_Cynic

    Steve, you're no fun Or is that 0 fun?
    or NULL fun?

Leave a comment on “Empty Reasoning”

Log In or post as a guest

Replying to comment #:

« Return to Article