How to enable IDN support in EA4 PHP5.6 (cURL)?
Hello!
EA3 PHP5.6 was IDN enable in cURL.
Required if cURL contains IDN in the URL.
How to enable IDN in EA4 PHP5.6 (cURL)?
Thank you!
-
Hi toyama, While full IDN is not currently supported with ea-libcurl, punycode is still supported. In order to include IDN support, you would need to package your own RPM compiled against libidn. ea4.ninja It's also worth noting that PHP has IDN functions to convert strings: PHP: IDN Functions - Manual Are you seeing a specific issue with IDN/punycode? Thanks, 0 -
Hi, I'm not seeing any specific issues with IDN/punycode. After migrating to EA 4, we plan to package our own RPM compiled against libidn so that cURL of PHP has the same execution result. Why did you no longer support IDN from EA4 libcurl? Depending on circumstances I will stop supporting IDN. Thanks 0 -
I've opened an internal inquiry(EA-6896) with our developers to see if there were any technical reasons why we dropped IDN support in EA4(ea-libcurl). I'll report back once we have an answer. 0 -
Checking this further, compiling newer versions of curl with IDN support requires libidn2, where previously it required libidn. libidn2 isn't currently provided by CentOS, but it is provided by EPEL. This may require that we provide an ea-libidn2 package. With this internal case, I believe this has been brought to the attention of our EA developers, but it wouldn't be a bad idea to make an official feature request either. Whether we'll move forward to provide this package, I cannot say, but there are a few workarounds; either using punycode or PHP IDN string conversion functions. 0 -
Hi, That makes sense. I'm thinking about trying PHP IDN string conversion function. Thanks 0 -
Do follow up on this thread if you encounter any issues with the conversion functions. If there are known issues with the workaround, it would give us a solid reason to provide libidn2. 0
Please sign in to leave a comment.
Comments
6 comments