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

index af000a6aa544c6fac096ee0a335b538e500318a2..dd26522eff5d22659d50d7db57c09209999e66d0 100644 (file)
@@ -75,7 +75,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, UG(ascii_conv)) == FAILURE) {