Uploaded image for project: 'Moodle'
  1. Moodle
  2. MDL-39007

Unify all the places performing a PHP version check

    XMLWordPrintable

Details

    • Bug
    • Status: Closed
    • Minor
    • Resolution: Duplicate
    • 2.5
    • None
    • Installation
    • MOODLE_25_STABLE

    Description

      Detected while fixing MDL-39006 and MDL-42931.

      Right now, apart from the environmental checks of the PHP version, there are a lot of code duplicated performing the same PHP version check here and there (installers, some cli utilities, setup.php...).

      Some of them are 100% redundant and others could be put under a unique function somewhere instead of having to modify manually all them. Ideally the version should be read from some common place too.

      That is, a little improvement for 2.6.

      Ciao

      Attachments

        Issue Links

          Activity

            People

              poltawski Dan Poltawski
              stronk7 Eloy Lafuente (stronk7)
              Matteo Scaramuccia, David Woloszyn, Huong Nguyen, Jake Dallimore, Meirza, Michael Hawkins, Raquel Ortega, Safat Shahin, Stevani Andolo
              Votes:
              5 Vote for this issue
              Watchers:
              6 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: