CodeIgniter Forums
Bug while using php 7.2 - Printable Version

+- CodeIgniter Forums (https://forum.codeigniter.com)
+-- Forum: Development (https://forum.codeigniter.com/forumdisplay.php?fid=6)
+--- Forum: CodeIgniter 3.x (https://forum.codeigniter.com/forumdisplay.php?fid=17)
+--- Thread: Bug while using php 7.2 (/showthread.php?tid=78254)



Bug while using php 7.2 - chetankchandak - 12-23-2020

I am using Codeignitor 3.1.11
My hosting service is depreciating use of lesser than php 7.3
When I use php 7.1 everything works fine, when i change to php 7.3, i get the following errors:
Code:
A PHP Error was encountered
Severity: 8192

Message: idn_to_ascii(): INTL_IDNA_VARIANT_2003 is deprecated

Filename: libraries/Form_validation.php

Line Number: 1243

Backtrace:

File: /home/freekert/public_html/esdsoftware/application/controllers/Admin.php
Line: 30
Function: run

File: /home/freekert/public_html/esdsoftware/index.php
Line: 315
Function: require_once

A PHP Error was encountered
Severity: Warning

Message: Cannot modify header information - headers already sent by (output started at /home/freekert/public_html/esdsoftware/system/core/Exceptions.php:271)

Filename: helpers/url_helper.php

Line Number: 564

Backtrace:

File: /home/freekert/public_html/esdsoftware/application/controllers/Admin.php
Line: 43
Function: redirect

File: /home/freekert/public_html/esdsoftware/index.php
Line: 315
Function: require_once



RE: Bug while using php 7.2 - includebeer - 12-23-2020

Are you sure you have 3.1.11?
Because the constant INTL_IDNA_VARIANT_2003 is not used in the Form_validation library of CI 3.1.11. See the GitHut repo:
https://github.com/bcit-ci/CodeIgniter/blob/3.1.11/system/libraries/Form_validation.php#L1243

Can you look at line 1243 of the file system/libraries/Form_validation.php and see if it match the official version?