Codeigniter 4 and PHP 8 - 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: Codeigniter 4 and PHP 8 (/showthread.php?tid=77289) Pages:
1
2
|
Codeigniter 4 and PHP 8 - ViLar - 08-12-2020 Hello, As PHP 8 first Beta was released I had the curiosity to check the framework's compatibility with it. To make it short it's pretty cool and good but I stepped on some new errors like `is_callable` function needing an Object instead of a string to work properly or errors being thrown if you declare parameters with default value before parameters without in functions. Of course the entire code was not covered by those small tests. Then I wondered if there were any reflexion on the PHP 8 compatibility with Codeigniter 4 and if yes, where could we check and / or contribute to it? If no, do you think we should start building compatibility right now or wait for the stable release by the end of the year? Here's a reminder of PHP 8 Timetable : https://wiki.php.net/todo/php80 Thanks RE: Codeigniter 4 and PHP 8 - jreklund - 08-12-2020 Personally I don't think it's worth fixing anything until there are a release candidate out. As it's subjected to change (or be fixed), how that function behave anyway. Haven't seen any talk about PHP 8.0, personally I have never used for e.g. 7.0, I started using it officially in 7.1 when all bugs and quarks have sorted itself out. Or at least a bugfix release have been made. Will personally only be doing small test with PHP 8.0 RC3 and on wards, if I have the time. Professionally, I won't test it before e.g 8.0.5 have been released, as it's time to jump ship and skip 7.4 and go from 7.3 into 8.0. RE: Codeigniter 4 and PHP 8 - John_Betong - 08-12-2020 @ViLar, Quote:Then I wondered if there were any reflexion on the PHP 8 compatibility with Codeigniter 4 and if yes, where could we check and / or contribute to it? If no, do you think we should start building compatibility right now or wait for the stable release by the end of the year? I had a quick search at downloading and installing onto a Ubuntu 18.04 system and could not find "sudo apt install php80-beta..." and it is so long ago that I built from scratch that I was not able to compile the download I'm looking forward to testing especially since I use a 100% strict_types system folder. RE: Codeigniter 4 and PHP 8 - gosocial2 - 01-04-2021 Has anybody tested CI4 with PHP 8? I am sorta short of disk space and too busy for a spring cleanup to open up free space so as to be able to set up an isolated PHP8-based AMP environment, meanwhile wondering if anyone keen to share any experiences CI4 & PHP8. RE: Codeigniter 4 and PHP 8 - seunex - 01-04-2021 (01-04-2021, 01:08 PM)gosocial2 Wrote: Has anybody tested CI4 with PHP 8? I am sorta short of disk space and too busy for a spring cleanup to open up free space so as to be able to set up an isolated PHP8-based AMP environment, meanwhile wondering if anyone keen to share any experiences CI4 & PHP8.CI4.0.4 not working well on PHP8 wait till version 4.2 is realeased! RE: Codeigniter 4 and PHP 8 - John_Betong - 01-04-2021 I have just git cloned the latest CI4 Version and it works OK with PHP phpversion: 8.0.0. The the only KLUDGE I had to make was to disable mbstring in the following: File: /system/CodeIgniter.php Code: protected function resolvePlatformExtensions() I'm quite busy at the moment and would be grateful if some one could resolve the problem. I have enabled PHP 8.0.0 mbstring but it still does not work. Maybe teaching old coders to suck eggs but anyway once more than one PHP version is installed I toggle the two different versions using the following: Code: #!/bin/bash The last command does not work from the batch file and I have to enter the text into the COMMAND LINE. RE: Codeigniter 4 and PHP 8 - ViLar - 01-05-2021 (01-04-2021, 11:33 PM)John_Betong Wrote: I have just git cloned the latest CI4 Version and it works OK with PHP phpversion: 8.0.0. Main problem I face when upgrading my CI4 apps to PHP8.0 is this : Aren't you facing it? RE: Codeigniter 4 and PHP 8 - John_Betong - 01-05-2021 @ViLar, > Aren't you facing it? I cannot say at the moment because tapping on a tablet. I had a lot of errors and they all cleared when I applied the KLUDGE. Did you try disabling mbstring? RE: Codeigniter 4 and PHP 8 - paulbalandan - 01-05-2021 Latest changes to develop are mostly to correct required after optional arguments. In develop, there is a fix already but in the 4.1 branch there is also another fix. RE: Codeigniter 4 and PHP 8 - seunex - 01-06-2021 (01-05-2021, 11:55 PM)paulbalandan Wrote: Latest changes to develop are mostly to correct required after optional arguments. In develop, there is a fix already but in the 4.1 branch there is also another fix.Any hint of 4.1 release date because me especially checking the workflow on github I don't think the release date is close. |