4 ms·
Actually this is not specific to PHP at all. Ruby just uses a different hashing algorithm so you need to set different keys to get these results. This is a pro
by nikic 15y ago
Actually this is not specific to PHP at all. Ruby just uses a different hashing algorithm so you need to set different keys to get these results.
This is a problem that hashtables have in general (unless they are randomized).
- mdwrigh2 15y agoRuby 1.9's hash function has been randomized for awhile now, and I believe that 1.8.7 got a patch fixing this yesterday.