From 90e717d5004580060deedae505512148e910c768 Mon Sep 17 00:00:00 2001 From: Jan-E Date: Fri, 7 Oct 2016 03:48:45 +0200 Subject: [PATCH] Enable libicu (IDNA2008/IDNA2003) https://github.com/m6w6/ext-http/issues/55 Add PHP_HTTP_HAVE_LIBICU support --- config.w32 | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/config.w32 b/config.w32 index de89b5f..74b852f 100644 --- a/config.w32 +++ b/config.w32 @@ -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); } -- 2.30.2