Please whitelist cPanel in your adblocker so that you’re able to see our version release promotions, thanks!

The Community Forums

Interact with an entire community of cPanel & WHM users!

SOLVED How to enable IDN support in EA4 PHP5.6 (cURL)?

Discussion in 'EasyApache' started by toyama, Oct 16, 2017.

  1. toyama

    toyama Member

    Joined:
    Jun 17, 2011
    Messages:
    21
    Likes Received:
    1
    Trophy Points:
    53
    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!
     
  2. cPWilliamL

    cPWilliamL cP Technical Analyst II
    Staff Member

    Joined:
    May 15, 2017
    Messages:
    257
    Likes Received:
    29
    Trophy Points:
    103
    Location:
    America
    cPanel Access Level:
    Root Administrator
    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,
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  3. toyama

    toyama Member

    Joined:
    Jun 17, 2011
    Messages:
    21
    Likes Received:
    1
    Trophy Points:
    53
    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
     
  4. cPWilliamL

    cPWilliamL cP Technical Analyst II
    Staff Member

    Joined:
    May 15, 2017
    Messages:
    257
    Likes Received:
    29
    Trophy Points:
    103
    Location:
    America
    cPanel Access Level:
    Root Administrator
    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.
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  5. cPWilliamL

    cPWilliamL cP Technical Analyst II
    Staff Member

    Joined:
    May 15, 2017
    Messages:
    257
    Likes Received:
    29
    Trophy Points:
    103
    Location:
    America
    cPanel Access Level:
    Root Administrator
    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.
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  6. toyama

    toyama Member

    Joined:
    Jun 17, 2011
    Messages:
    21
    Likes Received:
    1
    Trophy Points:
    53
    Hi,

    That makes sense.
    I'm thinking about trying PHP IDN string conversion function.

    Thanks
     
  7. cPWilliamL

    cPWilliamL cP Technical Analyst II
    Staff Member

    Joined:
    May 15, 2017
    Messages:
    257
    Likes Received:
    29
    Trophy Points:
    103
    Location:
    America
    cPanel Access Level:
    Root Administrator
    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.
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
Loading...

Share This Page

  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.
    Dismiss Notice