Bug #81616 [NEW]: Windows binaries comes by default with libidn instead of libidn2

From: Date: Fri, 12 Nov 2021 11:43:57 +0000
Subject: Bug #81616 [NEW]: Windows binaries comes by default with libidn instead of libidn2
Groups: php.bugs 
Request: Send a blank email to php-bugs+get-237718@lists.php.net to get a copy of this message
From:             gblanchet at cofomo dot com
Operating system: Windows
PHP version:      8.0.12
Package:          *Unicode Issues
Bug Type:         Bug
Bug description:Windows binaries comes by default with libidn instead of libidn2

Description:
------------
WHAT I DID:

I installed PHP8 on my Windows machine using binaries from
https://windows.php.net/download

WHAT I WANTED TO HAPPEN:

I wanted to use the cURL extension to query an IDN hostname.

WHAT ACTUALLY HAPPENED:

I realized cURL was using the old IDNA2003 protocol instead of the new
one: IDN2008 because the German letter "ß" was translated to "ss" in
the a-label queried. I check the curl_version() and I found the cause:
on Windows, PHP8 seems to be bundled with libidn instead of libidn2.
Please ensure the cURL extension is compiled with libidn2 instead of
libidn to generate the Windows binaries.

Test script:
---------------
php > var_dump(curl_version());
php shell code:1:
array(16) {
  [...]
  'version' =>
  string(6) "7.76.1"
  [...]
  'libidn' =>
  string(0) ""
  [...]
}


-- 
Edit bug report at https://bugs.php.net/bug.php?id=81616&edit=1
-- 
Fix committed:                    https://bugs.php.net/fix.php?id=81616&r=fixed
Fixed in release:                 https://bugs.php.net/fix.php?id=81616&r=alreadyfixed
Need backtrace:                   https://bugs.php.net/fix.php?id=81616&r=needtrace
Need Reproduce Script:            https://bugs.php.net/fix.php?id=81616&r=needscript
Try newer version:                https://bugs.php.net/fix.php?id=81616&r=oldversion
Not developer issue:              https://bugs.php.net/fix.php?id=81616&r=support
Expected behavior:                https://bugs.php.net/fix.php?id=81616&r=notwrong
Not enough info:                  https://bugs.php.net/fix.php?id=81616&r=notenoughinfo
Submitted twice:                  https://bugs.php.net/fix.php?id=81616&r=submittedtwice
register_globals:                 https://bugs.php.net/fix.php?id=81616&r=globals
PHP version support discontinued: https://bugs.php.net/fix.php?id=81616&r=phptooold
Daylight Savings:                 https://bugs.php.net/fix.php?id=81616&r=dst
IIS Stability:                    https://bugs.php.net/fix.php?id=81616&r=isapi
Install GNU Sed:                  https://bugs.php.net/fix.php?id=81616&r=gnused
Floating point limitations:       https://bugs.php.net/fix.php?id=81616&r=float
No Zend Extensions:               https://bugs.php.net/fix.php?id=81616&r=nozend
MySQL Configuration Error:        https://bugs.php.net/fix.php?id=81616&r=mysqlcfg


Thread (20 messages)

« previous php.bugs (#237718) next »