Well, $SUBJ says it all - https://pecl.php.net/package/idn
Patch for idn-0.2.0 is attached. best regards Per Jessen
diff -ur idn-0.2.0/idn.c idn-0.2.1/idn.c --- idn-0.2.0/idn.c 2013-08-17 10:03:01.000000000 +0200 +++ idn-0.2.1/idn.c 2018-05-04 18:02:27.600161822 +0200 @@ -126,7 +126,7 @@ { /* The domain name the user enters */ char *utf8_domain = NULL; - int utf8_domain_len; + size_t utf8_domain_len; /* PHP reference for error code */ zval *errorcode = NULL; @@ -153,7 +153,7 @@ RETURN_FALSE; } - RETVAL_STRINGL(ascii_domain, strlen(ascii_domain), 1); + RETVAL_STRINGL(ascii_domain, strlen(ascii_domain)); free(ascii_domain); } /* }}} */ @@ -164,7 +164,7 @@ { /* The domain name the user enters */ char *ascii_domain = NULL; - int ascii_domain_len; + size_t ascii_domain_len; /* PHP reference for error code */ zval *errorcode = NULL; @@ -191,7 +191,7 @@ RETURN_FALSE; } - RETVAL_STRINGL(utf8_domain, strlen(utf8_domain), 1); + RETVAL_STRINGL(utf8_domain, strlen(utf8_domain)); free(utf8_domain); } /* }}} */ @@ -212,7 +212,7 @@ } errormsg = idna_strerror(errorcode); - RETURN_STRINGL((char*)errormsg, strlen(errormsg), 1); + RETURN_STRINGL((char*)errormsg, strlen(errormsg)); } /* }}} */
-- PECL development discussion Mailing List (http://pecl.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php