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

Question type calculate_raw() produces errors on PHP7

    XMLWordPrintable

Details

    • Bug
    • Resolution: Fixed
    • Minor
    • 3.0.1
    • 3.0
    • Questions
    • MOODLE_30_STABLE
    • MOODLE_30_STABLE
    • MDL-52333_master
    • 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

    Description

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

      Attachments

        Issue Links

          Activity

            People

              marina Marina Glancy
              marina Marina Glancy
              David Monllaó David Monllaó
              Dan Poltawski Dan Poltawski
              cameron1729 cameron1729
              Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Clockify

                  Error rendering 'clockify-timesheets-time-tracking-reports:timer-sidebar'. Please contact your Jira administrators.