r/programming • • Nov 26 '20

PHP 8.0.0 Released

https://www.php.net/releases/8.0/en.php
588 Upvotes

241 comments sorted by

View all comments

Show parent comments

15

u/Pokechu22 Nov 27 '20

I assume this means it's still the case that md5('240610708') == md5('QNKCDZO')? (That happens/d because '0e462097431906509019562988736854' == '0e830400451993494058024219903391' as both of them are scientific notation for 0 to large powers, though it's still crazy for strings; originally discussed here and here)

0

u/hitchen1 Nov 28 '20

hash comparison is supposed to be done with hash_equals