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

Add environment check for versions not supporting PHP 7.3

    XMLWordPrintable

Details

    • MOODLE_34_STABLE, MOODLE_35_STABLE
    • MOODLE_31_STABLE, MOODLE_33_STABLE, MOODLE_34_STABLE
    • Hide

      Note: Testing this issue requires, for some points, a running version of PHP 7.3 (at the time of writing, current version is PHP 7.3RC2).

      Note2: Alternatively, if finding a working version is hard... the lib/environmentlib.php file can be edited replacing the two existing calls to phpversion() by, simply: '7.3.0' (quotes included).

      Using PHP 7.0.x - All upgrade work

      1. Install a Moodle 3.1.x site (MOODLE_31_STABLE)
      2. Upgrade to 3.3.x (MOODLE_33_STABLE)
      3. Upgrade to 3.4.x (MOODLE_34_STABLE)
      4. Upgrade to 3.5.x (MOODLE_35_STABLE)
      5. Upgrade to 3.6dev (master).
      6. Verify that all the upgrades above work without problem.

      Using PHP 7.0.x - Upgrade to 34 & 35 with PHP 7.3 don't work

      1. Install a Moodle 3.1.x site (MOODLE_31_STABLE)
      2. Switch to PHP 7.3
      3. Try to upgrade to 3.3.x (MOODLE_33_STABLE)
      4. Verify that upgrade doesn't work and you get the "PHP version 7.3 is not supported" message.
      5. Try to upgrade to 3.4.x (MOODLE_34_STABLE)
      6. Verify that upgrade doesn't work and you get the "PHP version 7.3 is not supported" message.
      7. Try to upgrade to 3.5.x (MOODLE_35_STABLE)
      8. Verify that upgrade doesn't work and you get the "PHP version 7.3 is not supported" message.
      9. Try to upgrade to 3.6dev (master).
      10. Verify that the upgrade works without problem.
      Show
      Note: Testing this issue requires, for some points, a running version of PHP 7.3 (at the time of writing, current version is PHP 7.3RC2). Note2: Alternatively, if finding a working version is hard... the lib/environmentlib.php file can be edited replacing the two existing calls to phpversion() by, simply: '7.3.0' (quotes included). Using PHP 7.0.x - All upgrade work Install a Moodle 3.1.x site (MOODLE_31_STABLE) Upgrade to 3.3.x (MOODLE_33_STABLE) Upgrade to 3.4.x (MOODLE_34_STABLE) Upgrade to 3.5.x (MOODLE_35_STABLE) Upgrade to 3.6dev (master). Verify that all the upgrades above work without problem. Using PHP 7.0.x - Upgrade to 34 & 35 with PHP 7.3 don't work Install a Moodle 3.1.x site (MOODLE_31_STABLE) Switch to PHP 7.3 Try to upgrade to 3.3.x (MOODLE_33_STABLE) Verify that upgrade doesn't work and you get the "PHP version 7.3 is not supported" message. Try to upgrade to 3.4.x (MOODLE_34_STABLE) Verify that upgrade doesn't work and you get the "PHP version 7.3 is not supported" message. Try to upgrade to 3.5.x (MOODLE_35_STABLE) Verify that upgrade doesn't work and you get the "PHP version 7.3 is not supported" message. Try to upgrade to 3.6dev (master). Verify that the upgrade works without problem.

    Description

      On Moodle 3.4 and 3.5, add an environmental check about PHP 7.3 not being supported.

      See previous MDL-60543 as reference for this.

      Attachments

        Issue Links

          Activity

            People

              stronk7 Eloy Lafuente (stronk7)
              stronk7 Eloy Lafuente (stronk7)
              Damyon Wiese Damyon Wiese
              Andrew Lyons Andrew Lyons
              Andrew Lyons Andrew Lyons
              Adrian Greeve, David Woloszyn, Huong Nguyen, Jake Dallimore, Michael Hawkins, Stevani Andolo, Matteo Scaramuccia, David Woloszyn, Huong Nguyen, Jake Dallimore, Michael Hawkins, Stevani Andolo
              Votes:
              1 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:
                10/Sep/18