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

Prepare Moodle for PHP 8.0

    XMLWordPrintable

    Details

    • Type: Epic
    • Status: Open
    • Priority: Minor
    • Resolution: Unresolved
    • Affects Version/s: 3.11, 4.0
    • Fix Version/s: None
    • Component/s: General
    • Labels:
      None
    • Testing Instructions:
      Hide

      A) Verify the docs have been updated with the information about PHP 8.0 support., at very least:

      B) Verify that 311_STABLE and master can be installed using PHP 8.0

      C) Verify that a 36_STABLE site can be upgraded to 311_STABLE and master using PHP 8.0

      D) Check that all CI jobs are passing ok with PHP 8.0.

      Show
      A) Verify the docs have been updated with the information about PHP 8.0 support., at very least: PHP 8.x support: https://docs.moodle.org/dev/Moodle_and_PHP Release notes in all the branches affected, see: for existing release series: https://docs.moodle.org/dev/Moodle_3.11_release_notes#Server_requirements future to be created: https://docs.moodle.org/dev/Moodle_4.0_release_notes#Server_requirements as example B) Verify that 311_STABLE and master can be installed using PHP 8.0 C) Verify that a 36_STABLE site can be upgraded to 311_STABLE and master using PHP 8.0 D) Check that all CI jobs are passing ok with PHP 8.0.
    • Affected Branches:
      MOODLE_311_STABLE, MOODLE_400_STABLE
    • Epic Name:
      Prepare Moodle for PHP 8.0

      Description

      (master)
      (311_STABLE)

      Accumulative branches (with all the pending stuff still not upstream) are:

      An, hopefully, small epic to turn Moodle ready for PHP 8.0.

      When: Being cristal clear (aka transparent), the ideal target release for this is Moodle 3.11.0 (aka, supported since the very beginning of the branch), but be warned that full support may arrive later in any Moodle 3.11.x minor release in the branch, depending of a number of factors (extensions availability and bugs, 3rd part libraries, last minute surprises...).

      Some initial links:

      Some basic requirements for this:

      • get unit and acceptance tests passing against all databases (may imply the need of upgrading phpunit/behat...).
      • check all the changes details have been reviewed and fixed (attached file).
      • ensure older versions of Moodle don't work with PHP 8.0 (MDL-68735)
      • get travis and gha working with the new php version (MDL-70900)
      • verify that there apache logs are clean of PHP 8.0 notices/warnings/errors (MDL-70986)
      • get moodle-php-apache docker images working with the new php version
      • Update docs (and others, see testing instructions) once this is ready.
      • ...

      And some tasks to do once this is upstream:

      TODO 1: Review the travis and/or github actions configuration for various repositories. The new PHP version needs to be covered. Known to need review / fix repos include:

      TODO 2: Verify that this PR has been fixed/hopefully released @ MinkExtension (new PHP 8 warning) and update our dependencies to it.

      All the issues belonging to this epic should be pulled into both MOODLE_311_STABLE and master (unless they are bug fixes requiring patching older, still supported, branches)

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              Unassigned Unassigned
              Reporter:
              stronk7 Eloy Lafuente (stronk7)
              Participants:
              Component watchers:
              Adrian Greeve, Jake Dallimore, Mathew May, Mihail Geshoski, Peter Dias, Sujith Haridasan
              Votes:
              4 Vote for this issue
              Watchers:
              14 Start watching this issue

                Dates

                Created:
                Updated: