CodeIgniter Forums
Surprised to see codeigniter 3.x running successfull with PHP 8.0 as well. - 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: Surprised to see codeigniter 3.x running successfull with PHP 8.0 as well. (/showthread.php?tid=78091)

Pages: 1 2


RE: Surprised to see codeigniter 3.x running successfull with PHP 8.0 as well. - kleber - 01-19-2021

Nice.


RE: Surprised to see codeigniter 3.x running successfull with PHP 8.0 as well. - Sepp - 12-02-2021

[quote pid="383498" dateline="1610666899"]
Code:
Thanks, new Hacky hack did the job. 

[/quote]


RE: Surprised to see codeigniter 3.x running successfull with PHP 8.0 as well. - anjanesh - 02-15-2023

I have CI3 codebase running on PHP 7.2 - do you recommend upgrading to PHP 8.2 ?


RE: Surprised to see codeigniter 3.x running successfull with PHP 8.0 as well. - joya - 06-06-2023

hello, I have problem  with php 8.2 and ci3
so I don' t know where is the problem, but the success page doesn't show
these are my code:
Code:
        $this->form_validation->set_error_delimiters('<div class="alert alert-error">', '</div>');
        if (!$this->form_validation->run() ===TRUE)
        {
            $this->load->view('visiter_form');
        }
        else
        {
            $this->load->model('Visiteurs');
            $visiteurs = new Visiteurs();
            $visiteurs->visitors_nom = $this->input->post('visitors_nom');
            $visiteurs->visitors_cin = $this->input->post('visitors_cin');
            $visiteurs->visitors_porte = $this->input->post('visitors_porte');
            $visiteurs->visitors_badge = $this->input->post('visitors_badge');
            $visiteurs->date_visit = $this->input->post('date_visit');
            $visiteurs->save();
            $this->load->view('visiter_form_success', array(
                'visiteurs'=> $visiteurs,
            ));
        }
        $this->load->view('bootstrap/footer');
    }
   
    public function date_validation($input)
    {
        $test_date = explode('-', $input??'');
        if (!@checkdate($test_date[1], $test_date[2], (int) $test_date[0]))
        {
            $this->form_validation->set_message('date_validation', 'The field must be in jj/mm/aaaa format.');
            return FALSE;
        }
        return TRUE;
    }



RE: Surprised to see codeigniter 3.x running successfull with PHP 8.0 as well. - kenjis - 06-10-2023

CI3 does not support PHP 8.2 yet.
See https://github.com/bcit-ci/CodeIgniter/pull/6173


RE: Surprised to see codeigniter 3.x running successfull with PHP 8.0 as well. - Muzikant - 06-13-2023

(06-10-2023, 04:10 PM)kenjis Wrote: CI3 does not support PHP 8.2 yet.

Is there an estimation when CodeIgniter 3 will support PHP 8.2 and above?


RE: Surprised to see codeigniter 3.x running successfull with PHP 8.0 as well. - marwin - 03-22-2024

You can run CI 3.2.1 from pocketarc on PHP 8.3.4: https://github.com/pocketarc/codeigniter

Upgraded mine from CI3.1.13. Just make sure you do not use any dynamic property in your project (or declare them ...) and look out for ambiguos sql queries. Those were the only two things I ran into.