Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Does codeigniter 3 support PHP 7?

In the docs of CodeIgniter it states,

PHP version 5.4 or newer is recommended.

I looked on forums etc. and wasn't able to find a definitive yes/no on this, even though the above sentence implies a 'yes', I wasn't sure if that extended to the (now new) PHP7.

I have tried a simple CI3 example with PHP7, and all I can report is so good, so far.

like image 822
Jonathan Clark Avatar asked Mar 04 '16 15:03

Jonathan Clark


1 Answers

Yes. The latest v3.0.4 changelog explicitly has changes to use PHP7 functionality where it can e.g.

Updated Security Library method get_random_bytes() to use PHP 7’s random_bytes() function when possible.

Update August 2018 There's also items in the change log for 3.1.8 which relate to fixes for PHP 7.2, as well as 3.1.7 which specifically mention fixes for PHP 7

like image 116
gabe3886 Avatar answered Nov 07 '22 00:11

gabe3886