Enable libicu (IDNA2008/IDNA2003) 56/head
authorJan-E <github@ehrhardt.nl>
Fri, 7 Oct 2016 01:48:45 +0000 (03:48 +0200)
committerGitHub <noreply@github.com>
Fri, 7 Oct 2016 01:48:45 +0000 (03:48 +0200)
https://github.com/m6w6/ext-http/issues/55 Add PHP_HTTP_HAVE_LIBICU support

config.w32

index de89b5f0fc14014af049cf7573a04940633fc38f..74b852f5cb0a301d5ff440b68a0fbc3695256b54 100644 (file)
@@ -90,6 +90,17 @@ if (PHP_HTTP != "no") {
                ADD_EXTENSION_DEP("http", "iconv", true);
        }
 
+       if (PHP_INTL != "no") {
+               ADD_EXTENSION_DEP("http", "intl", true);
+               AC_DEFINE("HAVE_IDNA2008", 1, "");
+               AC_DEFINE("HAVE_UIDNA_IDNTOASCII", 1, "");
+               AC_DEFINE("HAVE_UIDNA_NAMETOASCII_UTF8", 1, "");
+               AC_DEFINE("PHP_HTTP_HAVE_LIBICU", 1, "");
+               AC_DEFINE("PHP_HTTP_HAVE_IDNA2003", 1, "");
+               AC_DEFINE("PHP_HTTP_HAVE_IDNA2008", 1, "");
+               ADD_FLAG("LIBS_HTTP", "icuuc.lib icudt.lib icuin.lib icuio.lib icule.lib iculx.lib");
+       }
+
        if (PHP_CURL != "no") {
                ADD_EXTENSION_DEP("http", "curl", true);
        }