Re:PHP: md5('240610708') == md5('QNKCDZO')
by protomyth on Monday May 04, 2015 @09:09AM
(#9485882)
So, you should use the old shell trick of adding an "X" to the front of the strings before comparing?
[ Parent
| on HN ]
Re:PHP: md5('240610708') == md5('QNKCDZO')
by maxlybbert on Monday May 04, 2015 @10:09AM
(#9486197)
Or use === instead of ==.
The PHP developers have been pretty honest about the mistakes they made early on because they didn't know better. Unfortunately, many of those mistakes persist. The difference between == and === is one of the more well-known mistakes.