I have two sites using Codeigniter . Today I updated the sites to Codeigniter 3.1.7 (from 3.1.6 ). After that, on one of these sites, email verification was violated, the valid_email verification valid_email no longer works. On the second site, everything is fine. I checked the error logs and found an error:
ERROR - 2018-02-06 10:13:21 --> Severity: Warning --> idn_to_ascii() expects parameter 3 to be long, string given /public_html/system/libraries/Form_validation.php 1235
Codeigniter changlog says:
Updated Form Validation Library rule valid_email to use INTL_IDNA_VARIANT_UTS46 for non-ASCII domain names.
It seems to me that the constant INTL_IDNA_VARIANT_UTS46 not defined. Using PHP Version 5.6.30
How can I fix this problem?
source share