PHP5 Language Features

PHP5 Language Features

av Donal McMullan -
Antal svar: 10
The experimental "Enable global search" feature is PHP5-only.

I like PHP5 a lot, and I miss some of the features when I'm developing in PHP4. Is there a time on the horizon when Moodle will commit to a release that does not run on PHP4?

Moodle core is widely used and tested on PHP5, so there shouldn't be any restriction in the codebase to prevent this. What other concerns might prevent developers from using PHP5 features in Moodle?
Genomsnitt av betyg: -
Som svar till Donal McMullan

Re: PHP5 Language Features

av Penny Leach -
Som svar till Donal McMullan

Re: PHP5 Language Features

av Martin Dougiamas -
Bild på Core developers Bild på Documentation writers Bild på Moodle HQ Bild på Particularly helpful Moodlers Bild på Plugin developers Bild på Testers
The reason is that over 80% of web hosts are still on PHP4.

http://www.nexen.net/chiffres_cles/phpversion/16639-php_stats_evolution_for_february_2007.php

I think Moodle 2.0 will be a good time to switch to PHP5.
Som svar till Martin Dougiamas

Re: PHP5 Language Features

av Martín Langhoff -
> the reason is that over 80% of web hosts are still on PHP4.

WOW. I never thought it was happening _that_ slow. When it hits 45~50% with a good growth rate it might be the right time...

> I think Moodle 2.0 will be a good time to switch to PHP5.

Hah! If we roll 1.8->1.9->2.0 (instead of 1.10!) then I don't think PHP5 will be widespread enough to matter ledsen

Thinking of this... 2.0 is less and less useful as "magic receding horizon" these days. Should we start talking v3.0? blinkning

Or maybe we need some version-inflation and _skip_ 2.0 and go straight to... v6.0

Som svar till Martín Langhoff

Re: PHP5 Language Features

av Donal McMullan -
I'm not sure that there even is a vanishing point for PHP4 vs PHP5, because there are so many alternatives to PHP now.

Maybe we should quit with version numbers altogether.... how about "Moodle Vista"???

evil
Som svar till Donal McMullan

Re: PHP5 Language Features

av Martín Langhoff -
I was thinking the same - but those stats are for servers *with* PHP installed. So that's 80% of "the PHP hosting universe" for 4.x, vs 16% for PHP5.x. To refine things further we'd need to chop off <4.3 as Moodle doesn't support it, but that's tiny. Most of that 80% is 4.3 and 4.4.

So IMHO there is a threshold point for 5.x at some point. When/where I don't know.

> how about "Moodle Vista"???

I kind of like the Solaris astronomy-themed release names. Hey -- there it is: something I like about Solaris!
Som svar till Martín Langhoff

Re: PHP5 Language Features

av Donal McMullan -
Moodle™ Vista™ Home™ Premium™?

Don't be hating on Solaris or your holiday photos could magically disappear. It's ornery like that.
Som svar till Martín Langhoff

Re: PHP5 Language Features

av Samuli Karevaara -
Well, there is plenty of room in the "third digit" that Moodle has not utilized yet. See Linux Kernel 2.1 for example leende (Moodle 1.9.132 big grin)

Of the clients "stuck" on PHP 4 installations, I wonder how many have an option to switch relatively easily to PHP 5 as many hosts provide both 4 and 5?