Bug #81616 [NEW]: Windows binaries comes by default with libidn instead of libidn2
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)
- gblanchet at cofomo dot com
- cmb@php.netBug #81616 [Opn->Nab]: Windows binaries comes by default with libidn instead of libidn2
- cmb@php.netBug #81616 [Nab]: Windows binaries comes by default with libidn instead of libidn2
- gblanchet at cofomo dot comBug #81616 [Com]: Windows binaries comes by default with libidn instead of libidn2
- cmb@php.netBug->Req #81616 [Nab->Opn]: curl should be build against libidn2
- gblanchet at cofomo dot comReq #81616 [Com]: curl should be build against libidn2
- gblanchet at cofomo dot comReq #81616 [Com]: curl should be build against libidn2
- gblanchet at cofomo dot comReq #81616 [Com]: curl should be build against libidn2
- czx431232 at protonmail dot comReq #81616 [Com]: curl should be build against libidn2
- dAo4dd32 at protonmail dot comReq #81616 [Com]: curl should be build against libidn2
- bmnfg763h2 at protonmail dot comReq #81616 [Com]: curl should be build against libidn2
- Leonard5632anya at gmail dot comReq #81616 [Com]: curl should be build against libidn2
- barrykaao at gmail dot comReq #81616 [Com]: curl should be build against libidn2
- Jason1976Kees at gmail dot comReq #81616 [Com]: curl should be build against libidn2
- marlynrasavong at gmail dot comReq #81616 [Com]: curl should be build against libidn2
- delhifilmy at gmail dot comReq #81616 [Com]: curl should be build against libidn2
- brandencaufield at gmail dot comReq #81616 [Com]: curl should be build against libidn2
- yobecom359 at marikuza dot comReq #81616 [Com]: curl should be build against libidn2
- parenokiro at proton dot meReq #81616 [Com]: curl should be build against libidn2
- richardfoxmx63577 at gmail dot comReq #81616 [Com]: curl should be build against libidn2