Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

idn_to_ascii(): INTL_IDNA_VARIANT_2003 is deprecated #163

Closed
aaronpk opened this issue Feb 6, 2018 · 3 comments

Comments

Projects
None yet
3 participants
@aaronpk
Copy link

commented Feb 6, 2018

I'm getting this bizarre error in some cases under PHP 7.2. Apparently the idn_to_ascii function deprecated the INTL_IDNA_VARIANT_2003 variant in PHP 7.2, and you're supposed to use INTL_IDNA_VARIANT_UTS46 instead now. However, PHP seems to be still using INTL_IDNA_VARIANT_2003 as the default if none is specified. This ends up causing an exception.

I think this is wrong behavior of PHP, but it would be easier to fix in this library calling the idn_to_ascii function. I've patched my running instance to call idn_to_ascii($string,0,INTL_IDNA_VARIANT_UTS46) already.

Has anyone else encountered this issue?

@aaronpk

This comment has been minimized.

Copy link
Author

commented Feb 6, 2018

Did a little digging and it looks like this was already fixed in master! #148 Looking forward to the next release! 🎉

@aaronpk aaronpk closed this Feb 6, 2018

@anupammo

This comment has been minimized.

Copy link

commented Nov 11, 2018

think there's a better way to sort out that issue. As we all know that email library not supported in php 7.2 and that's why error occured.

Quick Solution :

  1. Go to cPanel
  2. Select PHP version
  3. change it to 7.1 instead of 7.2
@shafique-uddin

This comment has been minimized.

Copy link

commented Dec 17, 2018

think there's a better way to sort out that issue. As we all know that email library not supported in php 7.2 and that's why error occured.

Quick Solution :

  1. Go to cPanel
  2. Select PHP version
  3. change it to 7.1 instead of 7.2

It's an easy way to solve this problem in a second.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.