]> 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:06 +0000 (14:25 +0000)
committerIlia Alshanetsky <iliaa@php.net>
Wed, 15 Apr 2009 14:25:06 +0000 (14:25 +0000)
NEWS
ext/standard/mail.c

diff --git a/NEWS b/NEWS
index ddaa7f8e693c0a1ac7c4ccdbcd0f054af8f41c9e..e3dbd223eafed96b979050a065c688c17de90b68 100644 (file)
--- a/NEWS
+++ b/NEWS
@@ -10,6 +10,8 @@ PHP                                                                        NEWS
 - Fixed memory leak in ob_get_clean/ob_get_flush. (Christian)
 - Fixed segfault on invalid session.save_path. (Hannes)
 
+- Fixed bug #47969 (ezmlm_hash() returns different values depend on OS).
+  (Ilia)
 - Fixed bug #47946 (ImageConvolution overwrites background). (Ilia)
 - Fixed bug #47903 ("@" operator does not work with string offsets). (Felipe)
 - Fixed bug #47893 (CLI aborts on non blocking stdout). (Arnaud)
index 41d7656c3b75cb828d6ee8bcf28cd50558a0f88c..de9588d5a857494606f1182a3ad439ad2704e023 100644 (file)
@@ -73,7 +73,7 @@
 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",