News for hackers. Stuff that matters.
Re:PHP: md5('240610708') == md5('QNKCDZO') by marcofiset on Monday May 04, 2015 @09:58AM (#9486137)
Who tries to increment strings anyway? What is your point here?
Re:PHP: md5('240610708') == md5('QNKCDZO') by mikeash on Monday May 04, 2015 @10:37AM (#9486367)
Given how happy PHP is about converting strings to integers on demand, it would be pretty easy to take string input intended to be a number, forget to actually convert it, and go around using it happily until one day you accidentally set off a bomb.
Re:PHP: md5('240610708') == md5('QNKCDZO') by BasDirks on Monday May 04, 2015 @11:13AM (#9486627)
Yeah, who would do that? Nobody. So why the _ is it possible in the first place?
Re:PHP: md5('240610708') == md5('QNKCDZO') by pionar on Monday May 04, 2015 @10:03AM (#9486171)
because PHP is dynamically typed, it's easier to accidentally increment a string.