CodeIgniter Forums
Does CI *fully* support PHP5? - Printable Version

+- CodeIgniter Forums (https://forum.codeigniter.com)
+-- Forum: Archived Discussions (https://forum.codeigniter.com/forumdisplay.php?fid=20)
+--- Forum: Archived General Discussion (https://forum.codeigniter.com/forumdisplay.php?fid=21)
+--- Thread: Does CI *fully* support PHP5? (/showthread.php?tid=8210)



Does CI *fully* support PHP5? - El Forum - 05-09-2008

[eluser]Unknown[/eluser]
Folks,

Does CI fully support development in PHP5 or does it support only a subset of PHP5 (and fully supports PHP4 instead)? Could someone point me to any restrictions on using PHP5 with CI (if any exist)?

Thanks,
PS


Does CI *fully* support PHP5? - El Forum - 05-09-2008

[eluser]gtech[/eluser]
I am using php 5.2.1 with no problems whatsoever.


Does CI *fully* support PHP5? - El Forum - 05-09-2008

[eluser]Pascal Kriete[/eluser]
While the underlying framework is written with PHP 4 in mind, it won't affect the way any of your own code is interpreted. So the easy answer is: Yes, it fully supports it.

There is one case where you might say it doesn't. Extending libraries. You won't be able to call parent::__construct(), because that function doesn't exist. That's not really a big deal though.


Does CI *fully* support PHP5? - El Forum - 05-09-2008

[eluser]Tom Glover[/eluser]
On a Side Note, CI is fully compatible with PHP6, as far as my tests have shown.


Does CI *fully* support PHP5? - El Forum - 05-09-2008

[eluser]Mirage[/eluser]
There are no restrictions that I'm aware of. I've been running it 5.x for a long time - up to 5.2.5 now.

There is a separate PHP5 base in the system that's included on PHP5 installations, but all the system code in CI runs PHP4. In your application, you're free to take full advantage of PHP5 constructs however.

Cheers!