Uploaded image for project: 'Moodle'
  1. Moodle
  2. MDL-75976 META: Calls passing nulls to built in functions not accepting nulls
  3. MDL-75200

Function clean_param() must work correctly if null is passed as argument on PHP 8.1

    XMLWordPrintable

Details

    • Sub-task
    • Status: Closed
    • Minor
    • Resolution: Fixed
    • 4.0.2
    • 4.1
    • Other

    Description

      In PHP 8.1 various functions (i.e. trim, preg_match, etc) show debugging message if null is passed as an argument

      Make sure clean_param() does not show debugging messages when executed on null

      Also fixed here: get_string, unformat_float, html_is_blank

      Attachments

        Issue Links

          Activity

            People

              marina Marina Glancy
              marina Marina Glancy
              Eloy Lafuente (stronk7) Eloy Lafuente (stronk7)
              Andrew Lyons Andrew Lyons
              CiBoT CiBoT
              Adrian Greeve, David Woloszyn, Huong Nguyen, Jake Dallimore, Meirza, Michael Hawkins, Raquel Ortega, Safat Shahin, Stevani Andolo
              Votes:
              1 Vote for this issue
              Watchers:
              5 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:
                28/Nov/22

                Time Tracking

                  Estimated:
                  Original Estimate - Not Specified
                  Not Specified
                  Remaining:
                  Remaining Estimate - 0 minutes
                  0m
                  Logged:
                  Time Spent - 3 hours, 40 minutes
                  3h 40m