Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:77315 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 2357 invoked from network); 18 Sep 2014 20:26:31 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 18 Sep 2014 20:26:31 -0000 Authentication-Results: pb1.pair.com header.from=dunglas@gmail.com; sender-id=pass Authentication-Results: pb1.pair.com smtp.mail=dunglas@gmail.com; spf=pass; sender-id=pass Received-SPF: pass (pb1.pair.com: domain gmail.com designates 209.85.217.171 as permitted sender) X-PHP-List-Original-Sender: dunglas@gmail.com X-Host-Fingerprint: 209.85.217.171 mail-lb0-f171.google.com Received: from [209.85.217.171] ([209.85.217.171:35004] helo=mail-lb0-f171.google.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id EB/82-18130-4FF3B145 for ; Thu, 18 Sep 2014 16:26:29 -0400 Received: by mail-lb0-f171.google.com with SMTP id l4so1933401lbv.16 for ; Thu, 18 Sep 2014 13:26:26 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:from:date:message-id:subject:to:content-type; bh=qbInVwa74pjHCgatRwBw2JgyH0Xqi9pV9st1YSIc6Pw=; b=lp057qReKcp0XpGUJPD6TYhnKogkvCQLw4eeurBhMiME/lZvXK1/ruJYkBaa1qVEMp XPGbd15WpIve3YSG81o15jYiX+qaCtYX/rpwLEFA8izASR+H2F5xj7URtbUq22PcBtRS ua+mEKmwvnJLH7n8+ui4trpNlotJC6VTYO7L3lw2RE80FU82ZqPODLK1dNvN5qCBea5L LqG3AAmtX/ka6BJYettfd9HvjyCl8p1jTMa91HGeYHLlS00OvGdRozPSSLbOANLPlvW0 hNAlL/ZYeML4lNHFZZaqYKrAyVFUBokvhAGJ6kv8DXmv6Wy9snVWJVXnjKYz+ve2V50S O3qw== X-Received: by 10.152.9.37 with SMTP id w5mr2282932laa.28.1411071986193; Thu, 18 Sep 2014 13:26:26 -0700 (PDT) MIME-Version: 1.0 Received: by 10.114.161.164 with HTTP; Thu, 18 Sep 2014 13:26:06 -0700 (PDT) Date: Thu, 18 Sep 2014 22:26:06 +0200 Message-ID: To: internals@lists.php.net Content-Type: multipart/alternative; boundary=089e014946f47d5ba405035ccc58 Subject: Internationalized Domain Name support in FILTER_VALIDATE_URL From: dunglas@gmail.com (=?UTF-8?Q?K=C3=A9vin_Dunglas?=) --089e014946f47d5ba405035ccc58 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable Hello, I'm working on enhancing the FILTER_VALIDATE_URL filter ( https://github.com/php/php-src/pull/826). The current implementation does not support validation of internationalized domain names (i.e: http://www.acad=C3=A9mie-fran=C3=A7aise.fr/ ). Support of IDN validation can be easily added using ICU's uidna_toASCII() function. Is it acceptable to add a dependency to ICU for ext/filter? Another option is to add a HAVE_ICU constant in main/php_config.h and to validate IDN only if ICU is present. What strategy is preferred? -- K=C3=A9vin Dunglas http://dunglas.fr --089e014946f47d5ba405035ccc58--