News for hackers. Stuff that matters.
Re:PHP: md5('240610708') == md5('QNKCDZO') by Someone1234 on Monday May 04, 2015 @10:03AM (#9486170)
Is there any way to defend against this one? I know === to turn off type conversion with the equality operator, but what about here?
Re:PHP: md5('240610708') == md5('QNKCDZO') by digitalzombie on Monday May 04, 2015 @11:04AM (#9486566)
If condition check type and not try to increment a string...

if (!is_string($notstr)) ++$notstr;

edit:

I think checking for integer is better, if it's just incrementing integer.

I was going to say type hinting but I just realized php's primitive cannot be type hinted.