I need help about php version. - Printable Version +- CodeIgniter Forums (https://forum.codeigniter.com) +-- Forum: CodeIgniter 4 (https://forum.codeigniter.com/forumdisplay.php?fid=28) +--- Forum: CodeIgniter 4 Discussion (https://forum.codeigniter.com/forumdisplay.php?fid=31) +--- Thread: I need help about php version. (/showthread.php?tid=72119) |
I need help about php version. - eterv - 11-08-2018 First, thank you for CI4 development team. I have a question. - Why CI4 must require php 7.1 or above version, not 7.0 ? So, I saw index.php file. there are the folling part. $minPHPVersion = '7.1'; If I just change this to '7.0' then, can I use CI4 in php 7.0 version environment. No problem? please help me. RE: I need help about php version. - Pertti - 11-08-2018 I can't find the issue reference from GitHub right now, but there was a framework loading issue that needed PHP 7.1, so no, PHP 7.0 will not work properly. RE: I need help about php version. - puschie - 11-09-2018 7.1 introduce nullable types, void return type and catching of multiple exception types -> so you could remove all parameter and function types and use it with 7.0 but the types gives strong guarantee which makes finding of errors much easier and the code overall more stable RE: I need help about php version. - eterv - 11-09-2018 (11-09-2018, 02:43 AM)puschie Wrote: 7.1 introduce nullable types, void return type and catching of multiple exception types Thank you for your advice. Perhaps there is not another problem. I also checked it through PhpStorm inspection feature (php version 7.0). So I think that maybe I could CI4 in php 7.0. RE: I need help about php version. - kilishan - 11-09-2018 PHP 7 only has 23 days of security only fixes until it's considered EOL. A better option would be to see if you can get your PHP version upgraded, either locally or on your server. |