by ejcx · 11y ago · 0 comments
The md5 and sha1 interfaces have a second param which prevents this bug.
Instead of returning a string it will return binary data which won't get coerced to a float.
For example:
<?php
if (md5('240610708', true) == md5('QNKCDZO', true)){
printf("Will never go here\n");
}
PHP has a lot of.....PHPisms.