Hacker News new | past | comments | ask | show | jobs | submit login

My favorite is that two obviously different hexadecimal values in strings (e.g. checking password hashes) can be "equal" with the weaker == comparison.

This occurs if PHP thinks both strings could be numbers in scientific notation. "0e123" == "00e45"




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: