OT - Bizarre PHP problem/bug

Michael Torrie torriem at gmail.com
Mon Nov 22 17:28:28 MST 2010


On 11/22/2010 05:20 PM, Michael Torrie wrote:
> Basically I found the problem.  PHP is trying to cast my string
> as a number, and so any string is always equal to zero.  Brilliant.  PHP
> rocks!

Oddly enough, PHP developers are either calling this a bug or a feature,
and apparently I should have used the "===" operator to compare types as
well as value.  Shudder.



More information about the PLUG mailing list