Array keys are casted to integers if they look like numbers (WTF?). If a hash
authorJan Schneider <jan@horde.org>
Thu, 16 Dec 2010 13:37:46 +0000 (14:37 +0100)
committerJan Schneider <jan@horde.org>
Thu, 16 Dec 2010 13:37:46 +0000 (14:37 +0100)
commitaddf8ec1d29771a1ae5ea03b614cc1096f843c05
tree1fd5bb9fe259710dfa339163a783d746389a7532
parent806299cdb00f161eca6c005adb9623b45753a315
Array keys are casted to integers if they look like numbers (WTF?). If a hash
happens to be a number, ksort() fails because integers are always sorted after
strings. Add a string to the hash key to make sure it's never casted to an
integer.
framework/Support/lib/Horde/Support/ConsistentHash.php