Welcome Guest, Not a member yet? Register   Sign In
Does CI *fully* support PHP5?
#1

[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
#2

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

[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.
#4

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

[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!




Theme © iAndrew 2016 - Forum software by © MyBB