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

PHP 8.3: Added json_validate function

XMLWordPrintable

    • Icon: Improvement Improvement
    • Resolution: Won't Fix
    • Icon: Minor Minor
    • None
    • 4.2
    • General
    • None

      A new function for json_validate has been added to PHP. 8.3. We could look to use this instead of querying the json_last_error() function for this information (or just not checking properly at all).

      There is a polyfill available: https://php.watch/versions/8.3/json_validate#polyfill

      We could add this polyfill and recommend that any code working with JSON make use of the json validation.

      https://php.watch/versions/8.3/json_validate

            Unassigned Unassigned
            dobedobedoh Andrew Lyons
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved:

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