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

PEAR library - make sure string functions are not called on null - PHP 8.1 compatibility

XMLWordPrintable

    • Icon: Sub-task Sub-task
    • Resolution: Fixed
    • Icon: Minor Minor
    • 4.1
    • 4.1
    • Libraries

      Patch PEAR library for PHP 8.1 compatibility

      https://github.com/php/php-src/blob/PHP-8.1/UPGRADING

      Passing null to a non-nullable argument of a built-in function is
          deprecated. This matches the behavior of user-defined functions, where null
          is never accepted by non-nullable arguments.
          user-defined functions.
       
              var_dump(str_contains("foobar", null));
              // Deprecated: Passing null to parameter #2 ($needle) of type string
              //             is deprecated
      
      

            marina Marina Glancy
            marina Marina Glancy
            Eloy Lafuente (stronk7) Eloy Lafuente (stronk7)
            Andrew Lyons Andrew Lyons
            CiBoT CiBoT
            Votes:
            0 Vote for this issue
            Watchers:
            6 Start watching this issue

              Created:
              Updated:
              Resolved:

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

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