- Feature Articles
- CodeSOD
- Error'd
- Forums
-
Other Articles
- Random Article
- Other Series
- Alex's Soapbox
- Announcements
- Best of…
- Best of Email
- Best of the Sidebar
- Bring Your Own Code
- Coded Smorgasbord
- Mandatory Fun Day
- Off Topic
- Representative Line
- News Roundup
- Editor's Soapbox
- Software on the Rocks
- Souvenir Potpourri
- Sponsor Post
- Tales from the Interview
- The Daily WTF: Live
- Virtudyne
Admin
Zreoth!
Admin
I really need a t-shirt that just says TRWTF===PHP
Edit Admin
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.
Admin
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.
Edit Admin
Maybe the original devs were from East Asia, where certain countries there start age counting at age 1 from the day of birth.
Edit Admin
if ( ! frist(comment) || frist(comment)) then frist
??
Edit Admin
Presumably the correct fix is something like this:
Edit Admin
Steve, you're no fun Or is that 0 fun?
or NULL fun?