bcit-ci / CodeIgniter

Open Source PHP Framework (originally from EllisLab)
https://codeigniter.com/
MIT License
18.27k stars 7.6k forks source link

Is Codeigniter version 3.1.10 is support for php 8.0 or php 8.1 ? #6230

Closed vkdevhero closed 9 months ago

vkdevhero commented 1 year ago

Hello all I hope you are doing well.

I have one question regarding whether CodeIgniter version 3.1.10 is compatible with PHP 8.0 or 8.1? If yes, Can you tell me what changes is needed to upgrade to PHP version 8.0 or 8.1?

Thanks

jp26198926 commented 1 year ago

Hi @vkdevhero, not sure for 3.1.10 but 3.1.13 is okay with php8.0 and php8.1 and then fail on php8.2 in my machine.

vkdevhero commented 1 year ago

@jp26198926 Ok thanks.

mariolucasdev commented 1 year ago

yes, im use currently with php 8.1 and its ok;

ganl commented 1 year ago

There seems to be a lot of MR about PHP 8.x compatibility https://github.com/bcit-ci/CodeIgniter/pulls?q=is%3Apr+is%3Aopen+PHP+8+

@gxgpet

LakshmiPrem commented 1 year ago

redirect not working

mohsetiawanmodeong commented 9 months ago

in php 8.2.4 can't running and error

mariolucasdev commented 9 months ago

@vkdevhero and @mohsetiawanmodeong

I currently have 3 projects running with php 8.1 and codeigniter 3.1.13 and it is working perfectly.

It doesn't work with 8.2, just as codeigniter with versions prior to 3.1.13 doesn't work with php 8.1.

Updating Codeigniter is very simple, you can see this documentation page.

https://codeigniter.com/userguide3/installation/upgrading.html

mohsetiawanmodeong commented 9 months ago

Thanks for the advice, So how to upgrade from ci 3.1.10 to 3.1.13 directly? I'm using php 8.2.4, and ci 3.1.10 still error.

Thanks, Wawan

On Mon, Feb 19, 2024, 17:33 Mário Lucas @.***> wrote:

@vkdevhero https://github.com/vkdevhero and @mohsetiawanmodeong https://github.com/mohsetiawanmodeong

I currently have 3 projects running with php 8.1 and codeigniter 3.1.13 and it is working perfectly.

It doesn't work with 8.2, just as codeigniter with versions prior to 3.1.13 doesn't work with php 8.1.

Updating Codeigniter is very simple, you can see this documentation page.

https://codeigniter.com/userguide3/installation/upgrading.html

— Reply to this email directly, view it on GitHub https://github.com/bcit-ci/CodeIgniter/issues/6230#issuecomment-1951940386, or unsubscribe https://github.com/notifications/unsubscribe-auth/AM573WQGDA4TWNMCP36AK73YUME3ZAVCNFSM6AAAAAA2SLHFBWVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMYTSNJRHE2DAMZYGY . You are receiving this because you were mentioned.Message ID: @.***>

mariolucasdev commented 9 months ago

@mohsetiawanmodeong

you have to follow the step by step of each version, 3.1.10 > 3.1.11 until you reach the most recent one.

Another thing is that with php 8.2 codeigniter 3.1.13 does not work.

Version 3.1.13 works well with php 8.1.

mohsetiawanmodeong commented 9 months ago

Ahh i c, So, CI 3 not support again with php 8.2.4? Thanks dude.

On Mon, Feb 19, 2024, 17:51 Mário Lucas @.***> wrote:

@mohsetiawanmodeong https://github.com/mohsetiawanmodeong

you have to follow the step by step of each version, 3.1.10 > 3.1.11 until you reach the most recent one.

Another thing is that with php 8.2 codeigniter 3.1.13 does not work.

Version 3.1.13 works well with php 8.1.

— Reply to this email directly, view it on GitHub https://github.com/bcit-ci/CodeIgniter/issues/6230#issuecomment-1951969244, or unsubscribe https://github.com/notifications/unsubscribe-auth/AM573WXRJW66L3S2XHFVHXDYUMHAFAVCNFSM6AAAAAA2SLHFBWVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMYTSNJRHE3DSMRUGQ . You are receiving this because you were mentioned.Message ID: @.***>

kenjis commented 9 months ago

No, CI 3.1.13 does not work with PHP 8.2 at all. You need to upgrade it by yourself.

mohsetiawanmodeong commented 9 months ago

oke thanks dude. can you give me a tutorial for upgrade to PHP 8.2.4?

Pada Sel, 20 Feb 2024 pukul 09.00 kenjis @.***> menulis:

No, CI 3.1.13 does not work with PHP 8.2 at all. You need to upgrade it by yourself.

— Reply to this email directly, view it on GitHub https://github.com/bcit-ci/CodeIgniter/issues/6230#issuecomment-1953291947, or unsubscribe https://github.com/notifications/unsubscribe-auth/AM573WULMFTL6TQXZDRIBIDYUPRQRAVCNFSM6AAAAAA2SLHFBWVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMYTSNJTGI4TCOJUG4 . You are receiving this because you were mentioned.Message ID: @.***>

kenjis commented 9 months ago

There are no tutorials available to upgrade CodeIgniter 3.1.13 for PHP 8.2. However, PR #6173 is helpful.

Also, at least there is one fork project for PHP 8.2: https://github.com/pocketarc/codeigniter But it has some minor breaking changes. See https://github.com/pocketarc/codeigniter/issues/3