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

PHP's `==` tries very hard (even harder than javascript's) to "please" the user. That means if if can it will fallback to converting both sides to numbers and compare that.

Here all hashes are of the form "0e{digits}" which is a valid scientific notation, so when `==` internally converts them to numbers they're all parsed to `float(0)` and therefore equal, success!




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

Search: