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

Question type calculate_raw() produces errors on PHP7

    XMLWordPrintable

Details

    • Bug
    • Status: Closed
    • Minor
    • Resolution: Fixed
    • 3.0
    • 3.0.1
    • 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
              Safat Shahin, Tim Hunt, Amaia Anabitarte, Bas Brands, Carlos Escobedo, Ferran Recio, Ilya Tregubov, Kevin Percy, Laurent David, Mathew May, Mihail Geshoski, Sabina Abellan, Sara Arjona (@sarjona), Shamim Rezaie
              Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:
                21/Dec/15