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

Question type calculate_raw() produces errors on PHP7

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: 3.0
    • Fix Version/s: 3.0.1
    • Component/s: Questions
    • Labels:
    • Testing Instructions:
      Hide
      1. Run in both php 5 and php 7:
        • vendor/bin/phpunit question/type/calculated/tests/variablesubstituter_test.php
      2. Create a calculated question with a correct formula and preview it, it should work as usual
      3. Create a calculated question with an incorrect formula and preview it, it should notify you as usual
      Show
      Run in both php 5 and php 7: vendor/bin/phpunit question/type/calculated/tests/variablesubstituter_test.php Create a calculated question with a correct formula and preview it, it should work as usual Create a calculated question with an incorrect formula and preview it, it should notify you as usual
    • Affected Branches:
      MOODLE_30_STABLE
    • Fixed Branches:
      MOODLE_30_STABLE
    • Pull from Repository:
    • Pull Master Branch:
      MDL-52333_master

      Description

      Due to PHP7 changes in handling exceptions the method calculate_row() in some questions types generates errors

        Attachments

          Issue Links

            Activity

              People

              • Votes:
                0 Vote for this issue
                Watchers:
                4 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved:
                  Fix Release Date:
                  21/Dec/15