Codeigniter 3 and PHP 8.0 Compatibility

PHP 8.0 was released recently at the time of this post is written.

Surprisingly, Codeigniter 3 does not generate any error message this far in PHP 8.0.

Meanwhile, Codeigniter 4 generates some user warning in PHP 8.0 (update on August 2021 : there is no warning anymore in my scripts).

Fortunately my projects are still in Codeigniter 3, so i can use them with PHP 8.0.

Update :

  • There is bug in session flashdata : the data won’t be deleted after retrieved.


  1. @Krishan : You are correct, session flashdata won’t be deleted after retrieved.
    Regarding cart library, i do not use it so i have not tested it.

  2. A pull request has been made (and accepted) in the GitHub repo which fixes the flashdata issue. Until a new version of CI3 is released you can look up the fix manually

Leave a comment

Your email address will not be published. Required fields are marked *