Codeigniter 3.1.7 valid_email issue

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?

+5
source share
1 answer

I found a discussion of this issue here .

The problem is an outdated ICU library (ICU version 4.2.1 was installed)

+2
source

Source: https://habr.com/ru/post/1275190/


All Articles