cvs: php-src(PHP_5_3) /ext/standard mail.c
| From: | Ilia Alshanetsky | Date: | Wed, 15 Apr 2009 14:24:38 +0000 |
| Subject: | cvs: php-src(PHP_5_3) /ext/standard mail.c | ||
| Groups: | php.cvs | ||
| Request: | Send a blank email to php-cvs+get-57020@lists.php.net to get a copy of this message | ||
iliaa Wed Apr 15 14:24:38 2009 UTC
Modified files: (Branch: PHP_5_3)
/php-src/ext/standard mail.c
Log:
Fixed bug #47969 (ezmlm_hash() returns different values depend on OS)
http://cvs.php.net/viewvc.cgi/php-src/ext/standard/mail.c?r1=1.87.2.1.2.7.2.9&r2=1.87.2.1.2.7.2.10&diff_format=u
Index: php-src/ext/standard/mail.c
diff -u php-src/ext/standard/mail.c:1.87.2.1.2.7.2.9 php-src/ext/standard/mail.c:1.87.2.1.2.7.2.10
--- php-src/ext/standard/mail.c:1.87.2.1.2.7.2.9 Tue Jan 13 21:29:12 2009
+++ php-src/ext/standard/mail.c Wed Apr 15 14:24:38 2009
@@ -16,7 +16,7 @@
+----------------------------------------------------------------------+
*/
-/* $Id: mail.c,v 1.87.2.1.2.7.2.9 2009/01/13 21:29:12 iliaa Exp $ */
+/* $Id: mail.c,v 1.87.2.1.2.7.2.10 2009/04/15 14:24:38 iliaa Exp $ */
#include <stdlib.h>
#include <ctype.h>
@@ -76,7 +76,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", &str, &str_len) ==
FAILURE) {