From b94785e86b5995eda9df3f5b766f61de781431af Mon Sep 17 00:00:00 2001 From: Andrei Zmievski Date: Tue, 19 Dec 2006 22:54:24 +0000 Subject: [PATCH] Unicode support in ezmlm_hash(). # 50% done, ladies and gents! http://www.php.net/~scoates/unicode --- ext/standard/mail.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/ext/standard/mail.c b/ext/standard/mail.c index 62546b09d3..ae25b04849 100644 --- a/ext/standard/mail.c +++ b/ext/standard/mail.c @@ -54,7 +54,7 @@ continue; \ } \ -/* {{{ proto int ezmlm_hash(string addr) +/* {{{ proto int ezmlm_hash(string addr) U Calculate EZMLM list hash value. */ PHP_FUNCTION(ezmlm_hash) { @@ -62,8 +62,7 @@ PHP_FUNCTION(ezmlm_hash) unsigned long h = 5381L; int j, str_len; - if (zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, "s", - &str, &str_len) == FAILURE) { + if (zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, "s&", &str, &str_len, UG(ascii_conv)) == FAILURE) { return; } -- 2.50.1