Comments

Basically, the intention was that getOptions would preserve the original case, but lookups (getOption and hasOption) would work if you supply a lowercase key or a case sensitive key.

But, passing a key with a capital letter does not work.

Posted by Travis Pew (travisp) on 2009-09-18T05:58:00.000+0000

Unit tests and fix to allow passing keys with capital letters to getOption and hasOption. getOption didn't need a fix since it was already coded to be case-insensitive, but relied on hasOption which was case-sensitive.

Posted by Benjamin Eberlei (beberlei) on 2009-09-18T06:12:15.000+0000

I agree with Travis that hasOption is missing the strtolower functionality and therefore this bug occurs.