]> granicus.if.org Git - php/commitdiff
Unicode support in ezmlm_hash().
authorAndrei Zmievski <andrei@php.net>
Tue, 19 Dec 2006 22:54:24 +0000 (22:54 +0000)
committerAndrei Zmievski <andrei@php.net>
Tue, 19 Dec 2006 22:54:24 +0000 (22:54 +0000)
# 50% done, ladies and gents! http://www.php.net/~scoates/unicode

ext/standard/mail.c

index 62546b09d30ec51a51e0ca51e37cade2b2d38caa..ae25b04849265553f93ae1e88c12f85ba95352db 100644 (file)
@@ -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;
        }