]> granicus.if.org Git - php/commitdiff
Fixed bug #47969 (ezmlm_hash() returns different values depend on OS)
authorIlia Alshanetsky <iliaa@php.net>
Wed, 15 Apr 2009 14:24:38 +0000 (14:24 +0000)
committerIlia Alshanetsky <iliaa@php.net>
Wed, 15 Apr 2009 14:24:38 +0000 (14:24 +0000)
ext/standard/mail.c

index d6854a49827f6d804b00a8abcf727ae0d3b5aeb2..46aa305e9aa72e15f0e39d8f6e2d09ca2ddd38cc 100644 (file)
@@ -76,7 +76,7 @@ extern long php_getuid(void);
 PHP_FUNCTION(ezmlm_hash)
 {
        char *str = NULL;
-       unsigned long h = 5381L;
+       unsigned int h = 5381;
        int j, str_len;
 
        if (zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, "s", &str, &str_len) == FAILURE) {