Skip to content

Commit 9c3e2e4

Browse files
committed
Forced $key to be string
1 parent 336815f commit 9c3e2e4

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

murmurhash3.php

+1
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,7 @@
1616
*/
1717

1818
function murmurhash3_int($key,$seed=0){
19+
$key = (string) $key;
1920
$klen = strlen($key);
2021
$h1 = $seed;
2122
for ($i=0,$bytes=$klen-($remainder=$klen&3) ; $i<$bytes ; ) {

0 commit comments

Comments
 (0)