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?