Moodle 2.7 requirements: PHP version

Moodle 2.7 requirements: PHP version

Eloy Lafuente (stronk7) -
Колькасьць адказаў: 10
Выява Core developers Выява Documentation writers Выява Moodle HQ Выява Peer reviewers Выява Plugin developers Выява Testers

Hi developers,

this is a heads up about the PHP version to be used as minimum requirement for Moodle 2.7 and upwards (to be released along May 2014). It’s being decided and discussed in the Tracker @ MDL-42931.

Basically, there are 2 options:

A) Moodle 2.7 to continue working with PHP 5.3.x
B) Moodle 2.7 to require PHP 5.4.x to work

Here there are some (4 for each, to be neutral and have them paired) positive facts about each option. You can find more details in the issue above:

A) PHP 5.3.x

  • Right now, it seems to be the most used PHP version. (source)
  • Some current (linux) distributions still come with it and some (not many, apparently) shared hosting companies still offer it.
  • This does not affect to people already using PHP 5.4 and upwards.
  • Upgrade to 2.7 and upwards will be easier if it does not involve upgrading PHP.

B) PHP 5.4.x

  • It performs better and is securer than PHP 5.3 (new features aside).
  • It’s maintained.
  • Next (linux) distributions will include it (or newer PHP 5.5).
  • Will allow to build a LTS (long term supported) version easier (no way to build it on top of an already EOLed PHP version).

And that’s all. For the records, we did a quick voting between HQ developers and results were 6 to 3 to upgrade to 5.4.x

Any thought will be welcome. Please, let’s discuss here about the PHP version only, keeping any other detail (databases, zlib…) into a separate thread.

TIA and ciao усьмешка

Сярэдняе рэйтынгаў: -
У адказ на Eloy Lafuente (stronk7)

Re: Moodle 2.7 requirements: PHP version

Danny Wahl -

I vote 5.4 and I'd like to bring attention to the fact that Ubuntu 12.04 LTS is still on 5.3

Ubuntu 14.04 LTS will (probably) have 5.5 which would be a good co-release with an LTS version of Moodle.

This scenario would require someone to upgrade their server version before upgrading their Moodle version, which isn't necessarily a bad thing but environment testing for a server upgrade is much more time consuming than a Moodle version.  Whereas we might upgrade from 2.6 to 2.7 a month after 2.7 is released (internal testing + a few weeks of 2.7+ bug fixing) it might be 5 or 6 months before we get a server upgraded from 12.04 to 14.04.

tl;dr: good for new setups (moodle LTS synced with server LTS), maybe hard for upgrades

У адказ на Eloy Lafuente (stronk7)

Re: Moodle 2.7 requirements: PHP version

Andrea Bicciolo -

Hello Eloy,

thanks for starting this discussion. As PHP 5.3 is EOLed, I think the move the  requirement to PHP 5.4.x is OK. Actually we are migrating our production environments to PHP 5.5, however I understand not all distros offer PHP 5.5, so I think 5.4 is the better choice as minimum requirement.