Archive for August 22nd, 2008

Madness

Friday, August 22nd, 2008

Boring one today, and I should expect nothing more (probably nothing less either).  I was trawling through some code the other day and found this little chestnut, which has been in production code for months now (probably since the start of the year:

if (isSubscribed($unit_list, $url) == ture)
{

There’s obviously a new keyword in there I’d never heard of before, ture, which looks just like a dyslexic true.  Amazingly enough (it’s PHP), this has been in and working as expected (correctly), and gone unoticed for the better part of a year.

Madness.