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

PHP 8.3: Built-in CLI Server $_SERVER['SERVER_SOFTWARE'] value changed for RFC3875 compliance

XMLWordPrintable

    • Icon: Improvement Improvement
    • Resolution: Done
    • Icon: Minor Minor
    • None
    • 4.3.1, 4.4
    • General

      https://php.watch/versions/8.3/cli-server-server-software-changes

      PHP has a built-in CGI-compatible server that can be used to test PHP applications without having to use a fully-fledged server software such as Apache, Nginx, or Caddy. It follows RFC3875, which defines the request meta variables and their characteristics, which are exposed to PHP applications in the $_SERVER super global variable.

      Prior to PHP 8.3, the $_SERVER['SERVER_SOFTWARE'] value was in the form of PHP %version% Development Server, and this was a violation of the RFC3875 - 4.1.17. This is fixed in PHP 8.3, and the built-in CLI server now follows the pattern required by the RFC.

      PHP 8.2.0 Development Server
      PHP/8.3.0 (Development Server)
      Note that the X-Powered-By value or its format has not changed.

      Required

      1. Confirm whether we make use of $_SERVER['SERVER_SOFTWARE'] (we do)
      2. Confirm whether we check for use of the PHP development server (we do)
      3. Confirm whether the change in format impacts us (It doesn't but please confirm)

            dobedobedoh Andrew Lyons
            dobedobedoh Andrew Lyons
            Raquel Ortega Raquel Ortega
            Votes:
            0 Vote for this issue
            Watchers:
            10 Start watching this issue

              Created:
              Updated:
              Resolved:

                Estimated:
                Original Estimate - Not Specified
                Not Specified
                Remaining:
                Remaining Estimate - 0 minutes
                0m
                Logged:
                Time Spent - 1 hour
                1h

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