andrei Tue Dec 19 22:54:24 2006 UTC
Modified files:
/php-src/ext/standard mail.c
Log:
Unicode support in ezmlm_hash().
# 50% done, ladies and gents! http://www.php.net/~scoates/unicode
http://cvs.php.net/viewvc.cgi/php-src/ext/standard/mail.c?r1=1.89&r2=1.90&diff_format=u
Index: php-src/ext/standard/mail.c
diff -u php-src/ext/standard/mail.c:1.89 php-src/ext/standard/mail.c:1.90
--- php-src/ext/standard/mail.c:1.89 Sun Feb 19 18:19:33 2006
+++ php-src/ext/standard/mail.c Tue Dec 19 22:54:24 2006
@@ -16,7 +16,7 @@
+----------------------------------------------------------------------+
*/
-/* $Id: mail.c,v 1.89 2006/02/19 18:19:33 iliaa Exp $ */
+/* $Id: mail.c,v 1.90 2006/12/19 22:54:24 andrei Exp $ */
#include <stdlib.h>
#include <ctype.h>
@@ -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 @@
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;
}
--
PHP CVS Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php